Version Description
- Fixed an issue where changing an Attachment on more than one Attachment would continually update the first Attachment
- Media modal now includes filters (props marcochiesi)
- Added German translation (props bessl)
- Added filter to manipulate Attachments metadata before it's saved:
attachments_meta_before_save
- Underscores are no longer enforced over hyphens
- More entropy for Attachments uid's to prevent collisions (props sketchpad)
Download this release
Release Info
Developer | jchristopher |
Plugin | Attachments |
Version | 3.5.6 |
Comparing to | |
See all releases |
Code changes from version 3.5.5 to 3.5.6
- classes/class.attachments.migrate.php +6 -6
- classes/class.attachments.php +22 -8
- docs/changelog.md +9 -0
- index.php +1 -1
- languages/attachments-de_DE.mo +0 -0
- languages/attachments-de_DE.po +326 -0
- readme.txt +9 -1
- views/index.php +3 -1
classes/class.attachments.migrate.php
CHANGED
@@ -27,9 +27,9 @@ class AttachmentsMigrate extends Attachments {
|
|
27 |
return false;
|
28 |
}
|
29 |
|
30 |
-
$instance =
|
31 |
-
$title = empty( $title ) ? false :
|
32 |
-
$caption = empty( $caption ) ? false :
|
33 |
|
34 |
// we need our deprecated functions
|
35 |
include_once( ATTACHMENTS_DIR . '/deprecated/get-attachments.php' );
|
@@ -329,7 +329,7 @@ class AttachmentsMigrate extends Attachments {
|
|
329 |
$fields = array(<?php if( is_array( $attachments_pro_instance['fields'] ) ) : foreach( $attachments_pro_instance['fields'] as $field ) : if( $field['type'] == 'textfield' ) { $field['type'] = 'text'; } ?>
|
330 |
|
331 |
array(
|
332 |
-
'name' => '<?php echo
|
333 |
'type' => '<?php echo esc_html( $field['type'] ); ?>',
|
334 |
'label' => '<?php echo esc_html( $field['label'] ); ?>',
|
335 |
'default' => '<?php echo isset( $field['mapped_to'] ) ? esc_html( $field['mapped_to'] ) : ''; ?>',
|
@@ -747,7 +747,7 @@ EOD;
|
|
747 |
Source: <?php echo $attachments->src( 'full' ); ?><br />
|
748 |
Size: <?php echo $attachments->filesize(); ?><br /><?php if( is_array( $attachments_pro_instance['fields'] ) ) : ?><?php foreach( $attachments_pro_instance['fields'] as $field ) : ?><?php if( $field['type'] == 'textfield' ) { $field['type'] = 'text'; } ?>
|
749 |
|
750 |
-
<?php echo $field['label']; ?>: <?php echo $attachments->field( '<?php echo
|
751 |
|
752 |
</li>
|
753 |
<?php endwhile; ?>
|
@@ -840,7 +840,7 @@ EOD;
|
|
840 |
foreach( $instance_attachment['fields'] as $instance_attachment_field_key => $instance_attachment_field )
|
841 |
{
|
842 |
$destination_field_name = $instance['fields'][$instance_attachment_field_key]['label'];
|
843 |
-
$destination_field_name =
|
844 |
|
845 |
$converted_attachment['fields'][$destination_field_name] = $instance_attachment_field;
|
846 |
}
|
27 |
return false;
|
28 |
}
|
29 |
|
30 |
+
$instance = sanitize_text_field( $instance );
|
31 |
+
$title = empty( $title ) ? false : sanitize_text_field( $title ) ;
|
32 |
+
$caption = empty( $caption ) ? false : sanitize_text_field( $caption );
|
33 |
|
34 |
// we need our deprecated functions
|
35 |
include_once( ATTACHMENTS_DIR . '/deprecated/get-attachments.php' );
|
329 |
$fields = array(<?php if( is_array( $attachments_pro_instance['fields'] ) ) : foreach( $attachments_pro_instance['fields'] as $field ) : if( $field['type'] == 'textfield' ) { $field['type'] = 'text'; } ?>
|
330 |
|
331 |
array(
|
332 |
+
'name' => '<?php echo esc_html( sanitize_text_field( $field['label'] ) ); ?>',
|
333 |
'type' => '<?php echo esc_html( $field['type'] ); ?>',
|
334 |
'label' => '<?php echo esc_html( $field['label'] ); ?>',
|
335 |
'default' => '<?php echo isset( $field['mapped_to'] ) ? esc_html( $field['mapped_to'] ) : ''; ?>',
|
747 |
Source: <?php echo $attachments->src( 'full' ); ?><br />
|
748 |
Size: <?php echo $attachments->filesize(); ?><br /><?php if( is_array( $attachments_pro_instance['fields'] ) ) : ?><?php foreach( $attachments_pro_instance['fields'] as $field ) : ?><?php if( $field['type'] == 'textfield' ) { $field['type'] = 'text'; } ?>
|
749 |
|
750 |
+
<?php echo $field['label']; ?>: <?php echo $attachments->field( '<?php echo esc_html( sanitize_text_field( $field['label'] ) ); ?>' ); ?><br /><?php endforeach; endif; ?>
|
751 |
|
752 |
</li>
|
753 |
<?php endwhile; ?>
|
840 |
foreach( $instance_attachment['fields'] as $instance_attachment_field_key => $instance_attachment_field )
|
841 |
{
|
842 |
$destination_field_name = $instance['fields'][$instance_attachment_field_key]['label'];
|
843 |
+
$destination_field_name = sanitize_text_field( $destination_field_name );
|
844 |
|
845 |
$converted_attachment['fields'][$destination_field_name] = $instance_attachment_field;
|
846 |
}
|
classes/class.attachments.php
CHANGED
@@ -726,7 +726,7 @@ if ( ! class_exists( 'Attachments' ) ) :
|
|
726 |
if ( isset( $instance->attachments ) && !empty( $instance->attachments ) ) {
|
727 |
foreach( $instance->attachments as $attachment ) {
|
728 |
// we need to give our Attachment a uid to carry through to all the fields
|
729 |
-
|
730 |
|
731 |
// we'll create the attachment
|
732 |
$this->create_attachment( $instance->name, $attachment );
|
@@ -785,7 +785,14 @@ if ( ! class_exists( 'Attachments' ) ) :
|
|
785 |
button: {
|
786 |
// Set the text of the button.
|
787 |
text: button
|
788 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
789 |
});
|
790 |
|
791 |
// set up our select handler
|
@@ -872,11 +879,13 @@ if ( ! class_exists( 'Attachments' ) ) :
|
|
872 |
|
873 |
});
|
874 |
|
|
|
|
|
875 |
$element.on( 'click', '.edit-attachment-asset', function( event ) {
|
876 |
|
877 |
event.preventDefault();
|
878 |
|
879 |
-
|
880 |
|
881 |
if ( editframe ) {
|
882 |
editframe.open();
|
@@ -892,7 +901,12 @@ if ( ! class_exists( 'Attachments' ) ) :
|
|
892 |
},
|
893 |
button: {
|
894 |
text: '<?php _e( "Change", 'attachments' ); ?>'
|
895 |
-
}
|
|
|
|
|
|
|
|
|
|
|
896 |
});
|
897 |
|
898 |
editframe.on( 'select', function(){
|
@@ -939,8 +953,6 @@ if ( ! class_exists( 'Attachments' ) ) :
|
|
939 |
|
940 |
$element.on( 'click', '.delete-attachment a', function( event ) {
|
941 |
|
942 |
-
var targetAttachment;
|
943 |
-
|
944 |
event.preventDefault();
|
945 |
|
946 |
targetAttachment = $(this).parents('.attachments-attachment');
|
@@ -1040,7 +1052,7 @@ if ( ! class_exists( 'Attachments' ) ) :
|
|
1040 |
|
1041 |
// sanitize
|
1042 |
if ( isset( $params['name'] ) ) {
|
1043 |
-
$params['name'] =
|
1044 |
}
|
1045 |
|
1046 |
if ( isset( $params['label'] ) ) {
|
@@ -1149,7 +1161,7 @@ if ( ! class_exists( 'Attachments' ) ) :
|
|
1149 |
}
|
1150 |
|
1151 |
// make sure the instance name is proper
|
1152 |
-
$instance =
|
1153 |
|
1154 |
// register the fields
|
1155 |
if ( isset( $params['fields'] ) && is_array( $params['fields'] ) && count( $params['fields'] ) ) {
|
@@ -1506,6 +1518,8 @@ if ( ! class_exists( 'Attachments' ) ) :
|
|
1506 |
// final data store
|
1507 |
$attachments = array();
|
1508 |
|
|
|
|
|
1509 |
// loop through each submitted instance
|
1510 |
foreach ( $attachments_meta as $instance => $instance_attachments ) {
|
1511 |
// loop through each Attachment of this instance
|
726 |
if ( isset( $instance->attachments ) && !empty( $instance->attachments ) ) {
|
727 |
foreach( $instance->attachments as $attachment ) {
|
728 |
// we need to give our Attachment a uid to carry through to all the fields
|
729 |
+
$attachment->uid = esc_attr( str_replace( '.', '', uniqid( '', true ) ) );
|
730 |
|
731 |
// we'll create the attachment
|
732 |
$this->create_attachment( $instance->name, $attachment );
|
785 |
button: {
|
786 |
// Set the text of the button.
|
787 |
text: button
|
788 |
+
},
|
789 |
+
|
790 |
+
// Enable filters
|
791 |
+
states: [
|
792 |
+
new wp.media.controller.Library({
|
793 |
+
filterable: 'all'
|
794 |
+
})
|
795 |
+
]
|
796 |
});
|
797 |
|
798 |
// set up our select handler
|
879 |
|
880 |
});
|
881 |
|
882 |
+
var targetAttachment;
|
883 |
+
|
884 |
$element.on( 'click', '.edit-attachment-asset', function( event ) {
|
885 |
|
886 |
event.preventDefault();
|
887 |
|
888 |
+
targetAttachment = $(event.target).parents(".attachments-attachment");
|
889 |
|
890 |
if ( editframe ) {
|
891 |
editframe.open();
|
901 |
},
|
902 |
button: {
|
903 |
text: '<?php _e( "Change", 'attachments' ); ?>'
|
904 |
+
},
|
905 |
+
states: [
|
906 |
+
new wp.media.controller.Library({
|
907 |
+
filterable: 'all'
|
908 |
+
})
|
909 |
+
]
|
910 |
});
|
911 |
|
912 |
editframe.on( 'select', function(){
|
953 |
|
954 |
$element.on( 'click', '.delete-attachment a', function( event ) {
|
955 |
|
|
|
|
|
956 |
event.preventDefault();
|
957 |
|
958 |
targetAttachment = $(this).parents('.attachments-attachment');
|
1052 |
|
1053 |
// sanitize
|
1054 |
if ( isset( $params['name'] ) ) {
|
1055 |
+
$params['name'] = sanitize_text_field( $params['name'] );
|
1056 |
}
|
1057 |
|
1058 |
if ( isset( $params['label'] ) ) {
|
1161 |
}
|
1162 |
|
1163 |
// make sure the instance name is proper
|
1164 |
+
$instance = sanitize_text_field( $name );
|
1165 |
|
1166 |
// register the fields
|
1167 |
if ( isset( $params['fields'] ) && is_array( $params['fields'] ) && count( $params['fields'] ) ) {
|
1518 |
// final data store
|
1519 |
$attachments = array();
|
1520 |
|
1521 |
+
$attachments_meta = apply_filters( 'attachments_meta_before_save', $attachments_meta, $post_id );
|
1522 |
+
|
1523 |
// loop through each submitted instance
|
1524 |
foreach ( $attachments_meta as $instance => $instance_attachments ) {
|
1525 |
// loop through each Attachment of this instance
|
docs/changelog.md
CHANGED
@@ -3,6 +3,15 @@ This is a WordPress plugin. [Official download available on WordPress.org](http:
|
|
3 |
## [Docs TOC](TOC.md) / Changelog
|
4 |
|
5 |
<dl>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
<dt>3.5.4</dt>
|
7 |
<dd>Fixed assumption of field keys (props bukka)</dd>
|
8 |
<dd>Improved documentation (props Lane Goldberg, Roman Kokarev, Ore Landau)</dd>
|
3 |
## [Docs TOC](TOC.md) / Changelog
|
4 |
|
5 |
<dl>
|
6 |
+
<dt>3.5.6</dt>
|
7 |
+
<dd>Fixed an issue where changing an Attachment on more than one Attachment would continually update the first Attachment</dd>
|
8 |
+
<dd>Media modal now includes filters (props marcochiesi)</dd>
|
9 |
+
<dd>Added German translation (props bessl)</dd>
|
10 |
+
<dd>Added filter to manipulate Attachments metadata before it's saved: <code>attachments_meta_before_save</code></dd>
|
11 |
+
<dd>Underscores are no longer enforced over hyphens</dd>
|
12 |
+
<dd>More entropy for Attachments uid's to prevent collisions (props sketchpad)</dd>
|
13 |
+
<dt>3.5.5</dt>
|
14 |
+
<dd>Fixed an issue where field values were improperly overwritten when the instance was set to prepend in some cases</dd>
|
15 |
<dt>3.5.4</dt>
|
16 |
<dd>Fixed assumption of field keys (props bukka)</dd>
|
17 |
<dd>Improved documentation (props Lane Goldberg, Roman Kokarev, Ore Landau)</dd>
|
index.php
CHANGED
@@ -6,7 +6,7 @@
|
|
6 |
* Description: Attachments gives the ability to append any number of Media Library items to Pages, Posts, and Custom Post Types
|
7 |
* Author: Jonathan Christopher
|
8 |
* Author URI: http://mondaybynoon.com/
|
9 |
-
* Version: 3.5.
|
10 |
* Text Domain: attachments
|
11 |
* Domain Path: /languages/
|
12 |
* License: GPLv2 or later
|
6 |
* Description: Attachments gives the ability to append any number of Media Library items to Pages, Posts, and Custom Post Types
|
7 |
* Author: Jonathan Christopher
|
8 |
* Author URI: http://mondaybynoon.com/
|
9 |
+
* Version: 3.5.6
|
10 |
* Text Domain: attachments
|
11 |
* Domain Path: /languages/
|
12 |
* License: GPLv2 or later
|
languages/attachments-de_DE.mo
ADDED
Binary file
|
languages/attachments-de_DE.po
ADDED
@@ -0,0 +1,326 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
msgid ""
|
2 |
+
msgstr ""
|
3 |
+
"Project-Id-Version: attachments-0.1\n"
|
4 |
+
"POT-Creation-Date: 2013-04-10 01:55+0100\n"
|
5 |
+
"PO-Revision-Date: 2014-09-04 17:42+0100\n"
|
6 |
+
"Last-Translator: Bernhard Essl <bernhardessl@gmail.com>\n"
|
7 |
+
"MIME-Version: 1.0\n"
|
8 |
+
"Content-Type: text/plain; charset=UTF-8\n"
|
9 |
+
"Content-Transfer-Encoding: 8bit\n"
|
10 |
+
"X-Generator: Poedit 1.6.9\n"
|
11 |
+
"X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e;_n:1,2;_n_noop:1,2;"
|
12 |
+
"_nx:1,2;_nx_noop:1,2\n"
|
13 |
+
"X-Poedit-Basepath: .\n"
|
14 |
+
"X-Poedit-SourceCharset: UTF-8\n"
|
15 |
+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
16 |
+
"Language: de\n"
|
17 |
+
"X-Poedit-SearchPath-0: ..\n"
|
18 |
+
"X-Poedit-SearchPath-1: ../views\n"
|
19 |
+
"X-Poedit-SearchPath-2: ../classes\n"
|
20 |
+
"X-Poedit-SearchPath-3: ../classes/fields\n"
|
21 |
+
"X-Poedit-SearchPath-4: ..\n"
|
22 |
+
|
23 |
+
#: ../index.php:30
|
24 |
+
msgid ""
|
25 |
+
"Attachments requires PHP 5.2+. Attachments has been automatically "
|
26 |
+
"deactivated."
|
27 |
+
msgstr ""
|
28 |
+
"Attachments benötigt PHP 5.2+. Attachments wurde automatisch deaktiviert."
|
29 |
+
|
30 |
+
#: ../classes/class.attachments.legacy.php:112
|
31 |
+
msgid ""
|
32 |
+
"<strong>Attachments has detected legacy Attachments data.</strong> A lot has "
|
33 |
+
"changed since Attachments 1.x."
|
34 |
+
msgstr ""
|
35 |
+
"<strong>Attachments hat veraltete Attachments Daten gefunden.</strong> Viele "
|
36 |
+
"Neuerungen gibt es seit Attachments 1.x."
|
37 |
+
|
38 |
+
#: ../classes/class.attachments.legacy.php:112
|
39 |
+
msgid "Find out more"
|
40 |
+
msgstr "Mehr herausfinden"
|
41 |
+
|
42 |
+
#: ../classes/class.attachments.migrate.php:162
|
43 |
+
#: ../classes/class.attachments.migrate.php:218 ../views/options.php:13
|
44 |
+
msgid "Invalid request"
|
45 |
+
msgstr "Fehlerhafte Anfrage"
|
46 |
+
|
47 |
+
#: ../classes/class.attachments.migrate.php:164
|
48 |
+
msgid "Migration Step 1"
|
49 |
+
msgstr "Migration Schritt 1"
|
50 |
+
|
51 |
+
#: ../classes/class.attachments.migrate.php:165
|
52 |
+
msgid ""
|
53 |
+
"In order to migrate Attachments 1.x data, you need to set which instance and "
|
54 |
+
"fields in version 3.0+ you'd like to use:"
|
55 |
+
msgstr ""
|
56 |
+
"Um Daten von Attachments 1.x zu migrieren, müssen Instanzen und Felder "
|
57 |
+
"ausgewählt werden welche weiter in Version 3.0+ verwendet werden sollen:"
|
58 |
+
|
59 |
+
#: ../classes/class.attachments.migrate.php:174
|
60 |
+
msgid "Attachments 3.x Instance"
|
61 |
+
msgstr "Attachments 3.x Instanz"
|
62 |
+
|
63 |
+
#: ../classes/class.attachments.migrate.php:178
|
64 |
+
msgid "The instance name you would like to use in the migration. Required."
|
65 |
+
msgstr ""
|
66 |
+
"Der Instanz Name welcher für die Migration verwendet werden soll. Notwendig."
|
67 |
+
|
68 |
+
#: ../classes/class.attachments.migrate.php:183
|
69 |
+
msgid "Attachments 3.x Title"
|
70 |
+
msgstr "Attachments 3.x Titel"
|
71 |
+
|
72 |
+
#: ../classes/class.attachments.migrate.php:187
|
73 |
+
msgid ""
|
74 |
+
"The <code>Title</code> field data will be migrated to this field name in "
|
75 |
+
"Attachments 3.x. Leave empty to disregard."
|
76 |
+
msgstr ""
|
77 |
+
"Die Daten aus dem <code>Title</code> Feld werden migriert zu diesen Feld "
|
78 |
+
"Namen in Attachments 3.x. Leer lassen um es zu übergehen."
|
79 |
+
|
80 |
+
#: ../classes/class.attachments.migrate.php:192
|
81 |
+
msgid "Attachments 3.x Caption"
|
82 |
+
msgstr "Attachments 3.x Überschrift"
|
83 |
+
|
84 |
+
#: ../classes/class.attachments.migrate.php:196
|
85 |
+
msgid ""
|
86 |
+
"The <code>Caption</code> field data will be migrated to this field name in "
|
87 |
+
"Attachments 3.x. Leave empty to disregard."
|
88 |
+
msgstr ""
|
89 |
+
"Das <code>Caption</code> Feld Daten wird migriert zu den Feld Namen in "
|
90 |
+
"Attachments 3.x. Leer lassen um es zu übergehen."
|
91 |
+
|
92 |
+
#: ../classes/class.attachments.migrate.php:224
|
93 |
+
msgid "Migration Complete!"
|
94 |
+
msgstr "Migration abgeschlossen!"
|
95 |
+
|
96 |
+
#: ../classes/class.attachments.migrate.php:225
|
97 |
+
msgid "The migration has completed."
|
98 |
+
msgstr "Die Migration ist fertig."
|
99 |
+
|
100 |
+
#: ../classes/class.attachments.migrate.php:225
|
101 |
+
msgid "Migrated"
|
102 |
+
msgstr "Migriert"
|
103 |
+
|
104 |
+
#: ../classes/class.attachments.migrate.php:227
|
105 |
+
msgid "Migration has already Run!"
|
106 |
+
msgstr "Migration ist bereits gelaufen!"
|
107 |
+
|
108 |
+
#: ../classes/class.attachments.migrate.php:228
|
109 |
+
msgid ""
|
110 |
+
"The migration has already been run. The migration process has not been "
|
111 |
+
"repeated."
|
112 |
+
msgstr ""
|
113 |
+
"Die Migration wurde bereits durchgeführt. Der Migration Prozess wurde nicht "
|
114 |
+
"fortgesetzt."
|
115 |
+
|
116 |
+
#: ../classes/class.attachments.php:769 ../classes/class.attachments.php:843
|
117 |
+
#: ../deprecated/attachments.php:365 ../languages/class.attachments.php:769
|
118 |
+
#: ../languages/class.attachments.php:843
|
119 |
+
msgid "Title"
|
120 |
+
msgstr "Titel"
|
121 |
+
|
122 |
+
#: ../classes/class.attachments.php:805 ../classes/class.attachments.php:1524
|
123 |
+
#: ../deprecated/attachments.php:417 ../languages/class.attachments.php:805
|
124 |
+
#: ../languages/class.attachments.php:1524 ../views/options.php:24
|
125 |
+
msgid "Attachments"
|
126 |
+
msgstr "Anhänge"
|
127 |
+
|
128 |
+
#: ../classes/class.attachments.php:830 ../classes/class.attachments.php:833
|
129 |
+
#: ../deprecated/attachments.php:312 ../languages/class.attachments.php:830
|
130 |
+
#: ../languages/class.attachments.php:833
|
131 |
+
msgid "Attach"
|
132 |
+
msgstr "Anhang"
|
133 |
+
|
134 |
+
#: ../classes/class.attachments.php:849 ../deprecated/attachments.php:369
|
135 |
+
#: ../languages/class.attachments.php:849
|
136 |
+
msgid "Caption"
|
137 |
+
msgstr "Überschrift"
|
138 |
+
|
139 |
+
#: ../classes/class.attachments.php:1100
|
140 |
+
#: ../languages/class.attachments.php:1100
|
141 |
+
msgid "Remove"
|
142 |
+
msgstr "Entfernen"
|
143 |
+
|
144 |
+
#: ../classes/class.attachments.php:1101
|
145 |
+
#: ../languages/class.attachments.php:1101
|
146 |
+
msgid "Toggle Fields"
|
147 |
+
msgstr "Felder ein- und ausschalten"
|
148 |
+
|
149 |
+
#: ../deprecated/attachments.php:51
|
150 |
+
msgid ""
|
151 |
+
"Attachments requires PHP 5.2 or higher, as does WordPress 3.2+. Attachments "
|
152 |
+
"has been automatically deactivated."
|
153 |
+
msgstr ""
|
154 |
+
"Attachments benötigt PHP 5.2 oder höhere und WordPress 3.2+. Attachments "
|
155 |
+
"wurde automatisch deaktiviert."
|
156 |
+
|
157 |
+
#: ../deprecated/attachments.php:361
|
158 |
+
msgid "Delete"
|
159 |
+
msgstr "Löschen"
|
160 |
+
|
161 |
+
#: ../views/options.php:29
|
162 |
+
msgid ""
|
163 |
+
"<strong>Attachments has changed significantly since it's last update.</"
|
164 |
+
"strong> These changes <em>will affect your themes and plugins</em>."
|
165 |
+
msgstr ""
|
166 |
+
"<strong>Attachments hat sich stark verändert seit dem letzten Update.</"
|
167 |
+
"strong> Diese Änderungen <em>haben Auswirkungen auf Themes und Plugins</em>."
|
168 |
+
|
169 |
+
#: ../views/options.php:32
|
170 |
+
msgid "Immediate Reversal to Attachments 1.x"
|
171 |
+
msgstr "Sofortige Rückstellung zu Attachments 1.x"
|
172 |
+
|
173 |
+
#: ../views/options.php:34
|
174 |
+
msgid ""
|
175 |
+
"If you would like to immediately <em>revert to the old version of "
|
176 |
+
"Attachments</em> you may do so by downgrading the plugin install itself, or "
|
177 |
+
"adding the following to your"
|
178 |
+
msgstr ""
|
179 |
+
"Wenn eine sofortige <em>Rücksetzung auf die alte Version von Attachments</"
|
180 |
+
"em> gewünscht ist, wäre es möglich die Plugin Installation selbst "
|
181 |
+
"auszuführen, oder durch hinzufügen von"
|
182 |
+
|
183 |
+
#: ../views/options.php:38
|
184 |
+
msgid "Overview of changes from Attachments 1.x"
|
185 |
+
msgstr "Übersicht der Änderungen von Attachments 1.x"
|
186 |
+
|
187 |
+
#: ../views/options.php:40
|
188 |
+
msgid ""
|
189 |
+
"A lot has changed since Attachments 1.x. The entire codebase was rewritten "
|
190 |
+
"to not only make better use of the stellar Media updates in WordPress 3.5, "
|
191 |
+
"but to also facilitate some exciting features coming down the line. With "
|
192 |
+
"this rewrite came significant changes to the way you will work with "
|
193 |
+
"Attachments. One of the biggest changes in Attachments 3.0 is the ability to "
|
194 |
+
"create multiple meta boxes of Attachments, each with any number of custom "
|
195 |
+
"fields you define. By default, Attachments will re-implement the meta box "
|
196 |
+
"you've been using until now, but <strong>you will need to trigger a "
|
197 |
+
"migration to the new format</strong>."
|
198 |
+
msgstr ""
|
199 |
+
"Vieles hat sich seit Attachments 1.x geändert Die gesamte Codebasis wurde "
|
200 |
+
"neu geschrieben, um eine bessere Nutzung der stellaren Medium Updates nicht "
|
201 |
+
"nur in Wordpress 3.5, sondern auch einige spannende Features kommen auf der "
|
202 |
+
"ganzen Linie zu erleichtern. Mit dieser Neufassung kam wesentliche "
|
203 |
+
"Änderungen an der Art und Weise werden Sie mit Anlagen zu arbeiten. Eine der "
|
204 |
+
"größten Veränderungen in den Anlagen 3.0 ist die Möglichkeit, mehrere Meta-"
|
205 |
+
"Boxen von Attachments zu erstellen, die jeweils mit einer beliebigen Anzahl "
|
206 |
+
"von benutzerdefinierten Feldern, die Sie definieren. Standardmäßig werden "
|
207 |
+
"Anlagen neu implementieren die Meta-Box Sie schon mit bis jetzt, aber "
|
208 |
+
"<strong> Sie müssen eine Migration auf das neue Format </ strong> auslösen."
|
209 |
+
|
210 |
+
#: ../views/options.php:42
|
211 |
+
msgid "Migrating Attachments 1.x data to Attachments 3.x"
|
212 |
+
msgstr "Migrieren von Attachments 1.x Daten zu Attachments 3.x"
|
213 |
+
|
214 |
+
#: ../views/options.php:44
|
215 |
+
msgid ""
|
216 |
+
"If you have existing Attachments 1.x data and are using it, a migration "
|
217 |
+
"script has been bundled here and you can use it below. If you would like to "
|
218 |
+
"directly migrate from Attachments 1.x to Attachments 3.x you can use the "
|
219 |
+
"defaults put in place and your data will be migrated to the new format "
|
220 |
+
"quickly and easily. Alternatively, if you'd like to customize the fields "
|
221 |
+
"you're using a bit, you can do that first and then adjust the migration "
|
222 |
+
"parameters to map the old fields to your new ones."
|
223 |
+
msgstr ""
|
224 |
+
"Wenn Sie vorhandene Attachments 1.x Daten haben und diese verwenden, wurde "
|
225 |
+
"ein Migrationsskript hier erstellt und Sie können es unten zu verwenden. "
|
226 |
+
"Wenn Sie möchten, um direkt von Attachments 1.x migrieren, um Attachments 3."
|
227 |
+
"x können Sie die Standardwerte in Kraft gesetzt zu verwenden und Ihre Daten "
|
228 |
+
"werden in das neue Format schnell und einfach migriert werden. Alternativ, "
|
229 |
+
"wenn Sie möchten, dass die Felder, die Sie mit ein bisschen bist anpassen, "
|
230 |
+
"dass Sie zuerst tun kann und dann die Migrationsparameter anpassen, um die "
|
231 |
+
"alten Felder zu Ihren neuen Karte."
|
232 |
+
|
233 |
+
#: ../views/options.php:46
|
234 |
+
msgid "Setting up Instances"
|
235 |
+
msgstr "Setup für Instanz"
|
236 |
+
|
237 |
+
#: ../views/options.php:48
|
238 |
+
msgid ""
|
239 |
+
"Attachments 3.0 ships with what are called <em>instances</em>. An instance "
|
240 |
+
"is equivalent to a meta box on an edit screen and it has a number of "
|
241 |
+
"properties you can customize. Please read the README for more information."
|
242 |
+
msgstr ""
|
243 |
+
"Attachments 3.0 verfügt nun über sogenannten <em>Instanzen</ em>. Eine "
|
244 |
+
"Instanz ist gleichbedeutend mit einer Meta-Box auf einem Bildschirm, die Sie "
|
245 |
+
"anpassen können. Bitte lesen Sie die README für weitere Informationen."
|
246 |
+
|
247 |
+
#: ../views/options.php:48 ../views/options.php:52
|
248 |
+
msgid "Additinoal instructions"
|
249 |
+
msgstr "Zusätzliche Anleitungen"
|
250 |
+
|
251 |
+
#: ../views/options.php:50
|
252 |
+
msgid "Retrieving Attachments in your theme"
|
253 |
+
msgstr "Empfangene Anhänge im Theme"
|
254 |
+
|
255 |
+
#: ../views/options.php:52
|
256 |
+
msgid ""
|
257 |
+
"As always has been the case with Attachments, editing your theme files is "
|
258 |
+
"required. The syntax to do so has changed in Attachments 3.0. Please read the"
|
259 |
+
msgstr ""
|
260 |
+
"Wie immer war der Fall mit Anlagen, die Bearbeitung Ihrer Theme Dateien "
|
261 |
+
"erforderlich ist. Die Syntax hat sich in Attachments 3.0 geändert. Bitte "
|
262 |
+
"lesen Sie die"
|
263 |
+
|
264 |
+
#: ../views/options.php:85
|
265 |
+
msgid "Migrate legacy Attachments data"
|
266 |
+
msgstr "Migrieren von veralteten Attachments Daten"
|
267 |
+
|
268 |
+
#: ../views/options.php:86
|
269 |
+
msgid ""
|
270 |
+
"Attachments has found records from version 1.x. Would you like to migrate "
|
271 |
+
"them to version 3?"
|
272 |
+
msgstr ""
|
273 |
+
"Attachments hat Daten von Version 1.x gefunden. Sollen diese zu der Version "
|
274 |
+
"3 migriert werden?"
|
275 |
+
|
276 |
+
#: ../views/options.php:87
|
277 |
+
msgid "Migrate legacy data"
|
278 |
+
msgstr "Alte Daten migrieren"
|
279 |
+
|
280 |
+
#: ../views/options.php:89
|
281 |
+
msgid "You have already migrated your legacy Attachments data."
|
282 |
+
msgstr "Es wurden bereits veraltete Attachments Daten migriert."
|
283 |
+
|
284 |
+
#: ../views/options.php:92
|
285 |
+
msgid "Revert to version 1.x"
|
286 |
+
msgstr "Umstellen zu der Version 1.x"
|
287 |
+
|
288 |
+
#: ../views/options.php:93
|
289 |
+
msgid ""
|
290 |
+
"If you would like to forcefully revert to the 1.x version branch of "
|
291 |
+
"Attachments, add the following to your"
|
292 |
+
msgstr "Wenn sie zu der Version 1.x zurücksetzen wollen, dann "
|
293 |
+
|
294 |
+
#: ../views/options.php:95
|
295 |
+
msgid "Meta box customization"
|
296 |
+
msgstr "Metabox Anpassungen"
|
297 |
+
|
298 |
+
#: ../views/options.php:96
|
299 |
+
msgid ""
|
300 |
+
"By default, Attachments implements a single meta box on Posts and Pages with "
|
301 |
+
"two fields. You can disable this default instance by adding the following to "
|
302 |
+
"your"
|
303 |
+
msgstr ""
|
304 |
+
"Standardmäßig wird von Attachments eine Meta Box zu den Posts und Pages mit "
|
305 |
+
"2 Feldern hinzugefügt. Sie können dieses mit folgenden deaktivieren"
|
306 |
+
|
307 |
+
#: ../views/options.php:98
|
308 |
+
msgid ""
|
309 |
+
"Your Attachments meta box(es) can be customized by adding the following to "
|
310 |
+
"your theme's"
|
311 |
+
msgstr "Die Attachments Meta Box(es) können angepasst werden im Theme"
|
312 |
+
|
313 |
+
#: ../views/options.php:100
|
314 |
+
msgid "Using Attachments data in your theme"
|
315 |
+
msgstr "Attachments Daten im Theme verwenden"
|
316 |
+
|
317 |
+
#: ../views/options.php:101
|
318 |
+
msgid ""
|
319 |
+
"Attachments does not directly integrate with your theme out of the box, you "
|
320 |
+
"will need to edit your theme's template files where appropriate. You can add "
|
321 |
+
"the following within The Loop to retrieve all Attachments data for the "
|
322 |
+
"current post:"
|
323 |
+
msgstr ""
|
324 |
+
"Attachments ist nicht direkt integriert im Theme, es müssen Veränderungen an "
|
325 |
+
"der Template Datei vorgenommen werden. Folgendes kann im Loop im aktuellen "
|
326 |
+
"Post hinzugefügt werden um alle Attachments zu erhalten:"
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://mondaybynoon.com/donate/
|
|
4 |
Tags: post, page, posts, pages, images, PDF, doc, Word, image, jpg, jpeg, picture, pictures, photos, attachment
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.2
|
7 |
-
Stable tag: 3.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -91,6 +91,14 @@ Please see [Issues on GitHub](https://github.com/jchristopher/attachments/issues
|
|
91 |
|
92 |
Please see [Attachments' changelog on GitHub](https://github.com/jchristopher/attachments/docs/changelog.md)
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
= 3.5.5 =
|
95 |
* Fixed an issue where field values were improperly overwritten when the instance was set to prepend in some cases
|
96 |
|
4 |
Tags: post, page, posts, pages, images, PDF, doc, Word, image, jpg, jpeg, picture, pictures, photos, attachment
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.2
|
7 |
+
Stable tag: 3.5.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
91 |
|
92 |
Please see [Attachments' changelog on GitHub](https://github.com/jchristopher/attachments/docs/changelog.md)
|
93 |
|
94 |
+
= 3.5.6 =
|
95 |
+
* Fixed an issue where changing an Attachment on more than one Attachment would continually update the first Attachment
|
96 |
+
* Media modal now includes filters (props marcochiesi)
|
97 |
+
* Added German translation (props bessl)
|
98 |
+
* Added filter to manipulate Attachments metadata before it's saved: `attachments_meta_before_save`
|
99 |
+
* Underscores are no longer enforced over hyphens
|
100 |
+
* More entropy for Attachments uid's to prevent collisions (props sketchpad)
|
101 |
+
|
102 |
= 3.5.5 =
|
103 |
* Fixed an issue where field values were improperly overwritten when the instance was set to prepend in some cases
|
104 |
|
views/index.php
CHANGED
@@ -1 +1,3 @@
|
|
1 |
-
<?php
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
// silence is golden
|