Attachments - Version 3.5.4

Version Description

  • Fixed assumption of field keys (props bukka)
  • Improved documentation (props Lane Goldberg, Roman Kokarev, Ore Landau)
  • Added rewind() method to reset Attachments reference array (props joost de keijzer)
  • TinyMCE fix to support WordPress 3.9+
  • Fixed an issue where nonce was potentially wrongly flagged as sent if an instance was filtered
  • Added post_parent argument support for instances, setting to true will populate the Uploaded to column in Media
  • New filter: attachments_default_instance to disable/enable the default instance (default is true, ATTACHMENTS_DEFAULT_INSTANCE constant is deprecated)
  • New filter: attachments_settings_screen to hide/show the settings screen (default is true, ATTACHMENTS_SETTINGS_SCREEN constant is deprecated)
  • Fixed an issue where Attachments meta box(es) would not show up when creating new posts whose post_type had a dash in it
  • Updated Italian translation (props Luca Speranza)
Download this release

Release Info

Developer jchristopher
Plugin Icon wp plugin Attachments
Version 3.5.4
Comparing to
See all releases

Code changes from version 3.5.3 to 3.5.4

classes/class.attachments.php CHANGED
@@ -55,7 +55,7 @@ if( !class_exists( 'Attachments' ) ) :
55
  global $_wp_additional_image_sizes;
56
 
57
  // establish our environment variables
58
- $this->version = '3.5.3';
59
  $this->url = ATTACHMENTS_URL;
60
  $this->dir = ATTACHMENTS_DIR;
61
  $plugin = 'attachments/index.php';
@@ -98,8 +98,7 @@ if( !class_exists( 'Attachments' ) ) :
98
  add_action( 'save_post', array( $this, 'save' ) );
99
 
100
  // only show the Settings screen if it hasn't been explicitly disabled
101
- if( !( defined( 'ATTACHMENTS_SETTINGS_SCREEN' ) && ATTACHMENTS_SETTINGS_SCREEN === false ) )
102
- add_action( 'admin_menu', array( $this, 'admin_page' ) );
103
 
104
  add_action( 'admin_head', array( $this, 'field_inits' ) );
105
  add_action( 'admin_print_footer_scripts', array( $this, 'field_assets' ) );
@@ -336,6 +335,18 @@ if( !class_exists( 'Attachments' ) ) :
336
 
337
 
338
 
 
 
 
 
 
 
 
 
 
 
 
 
339
  /**
340
  * Returns the next Attachment for the current object and increments the index
341
  *
@@ -625,8 +636,10 @@ if( !class_exists( 'Attachments' ) ) :
625
  function setup_instances()
626
  {
627
  // implement our default instance if appropriate
628
- if( !defined( 'ATTACHMENTS_DEFAULT_INSTANCE' ) )
629
- $this->register();
 
 
630
 
631
  // facilitate user-defined instance registration
632
  do_action( 'attachments_register', $this );
@@ -684,21 +697,22 @@ if( !class_exists( 'Attachments' ) ) :
684
  $position = isset($instance->position) ? $instance->position : 'normal';
685
  $priority = isset($instance->priority) ? $instance->priority : 'high';
686
 
687
- if( $applicable )
688
- add_meta_box(
689
- 'attachments-' . $instance_name,
690
- __( esc_attr( $instance->label ) ),
691
- array( $this, 'meta_box_markup' ),
692
- $this->get_post_type(),
693
- $position,
694
- $priority,
695
- array(
696
- 'instance' => $instance,
697
- 'setup_nonce' => !$nonce_sent
698
- )
699
- );
 
 
700
 
701
- $nonce_sent = true;
702
  }
703
  }
704
  }
@@ -721,8 +735,8 @@ if( !class_exists( 'Attachments' ) ) :
721
  ?>
722
 
723
  <div id="attachments-<?php echo $instance->name; ?>" class="attachments-parent-container<?php if( $instance->append == false ) : ?> attachments-prepend<?php endif; ?>">
724
- <?php if( !empty( $instance->note ) ) : ?>
725
- <div class="attachments-note"><?php echo apply_filters( 'the_content', $instance->note ); ?></div>
726
  <?php endif; ?>
727
  <?php if( $instance->append == false ) : ?>
728
  <div class="attachments-invoke-wrapper">
@@ -1222,7 +1236,7 @@ if( !class_exists( 'Attachments' ) ) :
1222
  // TODO: Retrieving the post_type at this point is ugly to say the least. This needs major cleanup.
1223
  if( empty( $post->ID ) && isset( $_GET['post_type'] ) )
1224
  {
1225
- $post_type = str_replace( '-', '_', sanitize_title( $_GET['post_type'] ) ); // TODO: Better sanitization
1226
  }
1227
  elseif( !empty( $post->ID ) )
1228
  {
@@ -1543,18 +1557,20 @@ if( !class_exists( 'Attachments' ) ) :
1543
  // loop through each Attachment of this instance
1544
  foreach( $instance_attachments as $key => $attachment )
1545
  {
1546
- // see if it was pulled as JSON from a delete cleanup
1547
- if( is_object( $attachment ) )
1548
- {
1549
- $attachment = get_object_vars( $attachment );
1550
- if( is_array( $attachment ) && !empty( $attachment ) )
1551
- {
1552
- if( isset( $attachment['fields'] ) && is_object( $attachment['fields'] ) )
1553
- $attachment['fields'] = get_object_vars( $attachment['fields'] );
1554
- }
1555
- }
1556
-
1557
- $attachment_exists = isset( $attachment['id'] ) ? get_post( absint( $attachment['id'] ) ) : false;
 
 
1558
  // make sure the attachment exists
1559
  if( $attachment_exists )
1560
  {
@@ -1587,6 +1603,19 @@ if( !class_exists( 'Attachments' ) ) :
1587
  }
1588
  }
1589
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1590
  $attachments[$instance][] = $attachment;
1591
  }
1592
  }
@@ -1847,9 +1876,12 @@ if( !class_exists( 'Attachments' ) ) :
1847
  *
1848
  * @since 3.0
1849
  */
1850
- function admin_page()
1851
- {
1852
- add_options_page( 'Settings', __( 'Attachments', 'attachments' ), 'manage_options', 'attachments', array( $this, 'options_page' ) );
 
 
 
1853
  }
1854
 
1855
 
55
  global $_wp_additional_image_sizes;
56
 
57
  // establish our environment variables
58
+ $this->version = '3.5.4';
59
  $this->url = ATTACHMENTS_URL;
60
  $this->dir = ATTACHMENTS_DIR;
61
  $plugin = 'attachments/index.php';
98
  add_action( 'save_post', array( $this, 'save' ) );
99
 
100
  // only show the Settings screen if it hasn't been explicitly disabled
101
+ add_action( 'admin_menu', array( $this, 'admin_page' ) );
 
102
 
103
  add_action( 'admin_head', array( $this, 'field_inits' ) );
104
  add_action( 'admin_print_footer_scripts', array( $this, 'field_assets' ) );
335
 
336
 
337
 
338
+ /**
339
+ * Resets the attachment index
340
+ *
341
+ * @since 3.6
342
+ */
343
+ function rewind()
344
+ {
345
+ $this->attachments_ref = -1;
346
+ }
347
+
348
+
349
+
350
  /**
351
  * Returns the next Attachment for the current object and increments the index
352
  *
636
  function setup_instances()
637
  {
638
  // implement our default instance if appropriate
639
+ $filtered = apply_filters( 'attachments_default_instance', true );
640
+ if( $filtered && ( ! defined( 'ATTACHMENTS_DEFAULT_INSTANCE' ) || true == ATTACHMENTS_DEFAULT_INSTANCE ) ) {
641
+ $this->register();
642
+ }
643
 
644
  // facilitate user-defined instance registration
645
  do_action( 'attachments_register', $this );
697
  $position = isset($instance->position) ? $instance->position : 'normal';
698
  $priority = isset($instance->priority) ? $instance->priority : 'high';
699
 
700
+ if( $applicable ) {
701
+ add_meta_box(
702
+ 'attachments-' . $instance_name,
703
+ __( esc_attr( $instance->label ) ),
704
+ array( $this, 'meta_box_markup' ),
705
+ $this->get_post_type(),
706
+ $position,
707
+ $priority,
708
+ array(
709
+ 'instance' => $instance,
710
+ 'setup_nonce' => !$nonce_sent
711
+ )
712
+ );
713
+ $nonce_sent = true;
714
+ }
715
 
 
716
  }
717
  }
718
  }
735
  ?>
736
 
737
  <div id="attachments-<?php echo $instance->name; ?>" class="attachments-parent-container<?php if( $instance->append == false ) : ?> attachments-prepend<?php endif; ?>">
738
+ <?php if( ! empty( $instance->note ) ) : ?>
739
+ <div class="attachments-note"><?php echo wpautop( $instance->note ); ?></div>
740
  <?php endif; ?>
741
  <?php if( $instance->append == false ) : ?>
742
  <div class="attachments-invoke-wrapper">
1236
  // TODO: Retrieving the post_type at this point is ugly to say the least. This needs major cleanup.
1237
  if( empty( $post->ID ) && isset( $_GET['post_type'] ) )
1238
  {
1239
+ $post_type = esc_attr( $_GET['post_type'] );
1240
  }
1241
  elseif( !empty( $post->ID ) )
1242
  {
1557
  // loop through each Attachment of this instance
1558
  foreach( $instance_attachments as $key => $attachment )
1559
  {
1560
+ // see if it was pulled as JSON from a delete cleanup
1561
+ if( is_object( $attachment ) )
1562
+ {
1563
+ $attachment = get_object_vars( $attachment );
1564
+ if( is_array( $attachment ) && !empty( $attachment ) )
1565
+ {
1566
+ if( isset( $attachment['fields'] ) && is_object( $attachment['fields'] ) ) {
1567
+ $attachment['fields'] = get_object_vars( $attachment['fields'] );
1568
+ }
1569
+ }
1570
+ }
1571
+
1572
+ $attachment_exists = isset( $attachment['id'] ) ? get_post( absint( $attachment['id'] ) ) : false;
1573
+
1574
  // make sure the attachment exists
1575
  if( $attachment_exists )
1576
  {
1603
  }
1604
  }
1605
 
1606
+ // set the post parent if applicable
1607
+ // need to first check to make sure we're not overwriting a native Attach
1608
+ $attach_post_ref = $attachment_exists;
1609
+ if( $attach_post_ref->post_parent == 0 && !empty( $this->instances[$instance]['post_parent'] ) ) {
1610
+ // no current Attach, we can add ours
1611
+ $attach_post = array(
1612
+ 'ID' => absint( $attachment['id'] ),
1613
+ 'post_parent' => $post_id,
1614
+ );
1615
+
1616
+ wp_update_post( $attach_post );
1617
+ }
1618
+
1619
  $attachments[$instance][] = $attachment;
1620
  }
1621
  }
1876
  *
1877
  * @since 3.0
1878
  */
1879
+ function admin_page() {
1880
+ if( !( defined( 'ATTACHMENTS_SETTINGS_SCREEN' ) && ATTACHMENTS_SETTINGS_SCREEN === false ) ) {
1881
+ if( apply_filters( 'attachments_settings_screen', true ) ) {
1882
+ add_options_page( 'Settings', __( 'Attachments', 'attachments' ), 'manage_options', 'attachments', array( $this, 'options_page' ) );
1883
+ }
1884
+ }
1885
  }
1886
 
1887
 
classes/fields/class.field.wysiwyg.php CHANGED
@@ -75,46 +75,55 @@ class Attachments_Field_WYSIWYG extends Attachments_Field
75
  <script>
76
  (function($) {
77
 
78
- var wpautop = true;
79
-
80
- // handle both initial and subsequent additions
81
- $(function() {
82
- wpautop = tinyMCE.settings.wpautop;
83
- $(document).on( 'attachments/new', function( event ) {
84
- $('.attachments-field-wysiwyg:not(.ready)').init_wysiwyg();
85
- });
86
- $('.attachments-field-wysiwyg').init_wysiwyg();
87
- });
88
-
89
- $.fn.init_wysiwyg = function() {
90
- this.each(function() {
91
-
92
- $(this).addClass('ready');
93
-
94
- var input_id = $(this).attr('id');
95
-
96
- // create wysiwyg
97
-
98
- tinyMCE.settings.theme_advanced_buttons2 += ',code';
99
- tinyMCE.settings.wpautop = false;
100
- tinyMCE.execCommand('mceAddControl', false, input_id);
101
- tinyMCE.settings.wpautop = wpautop;
102
- });
103
- };
104
-
105
- $(document).on('attachments/sortable_start', function(event, ui) {
106
- tinyMCE.settings.wpautop = false;
107
- $('.attachments-field-wysiwyg').each(function() {
108
- tinyMCE.execCommand('mceRemoveControl', false, $(this).attr('id'));
109
- });
110
- });
111
-
112
- $(document).on('attachments/sortable_stop', function(event, ui) {
113
- $('.attachments-field-wysiwyg').each(function() {
114
- tinyMCE.execCommand('mceAddControl', false, $(this).attr('id'));
115
- });
116
- tinyMCE.settings.wpautop = wpautop;
117
- });
 
 
 
 
 
 
 
 
 
118
  })(jQuery);
119
  </script>
120
  <?php
75
  <script>
76
  (function($) {
77
 
78
+ var wpautop = true;
79
+
80
+ // handle both initial and subsequent additions
81
+ $(function() {
82
+ if (typeof tinyMCE !== 'undefined') {
83
+ wpautop = tinyMCE.settings.wpautop;
84
+ $(document).on( 'attachments/new', function( event ) {
85
+ $('.attachments-field-wysiwyg:not(.ready)').init_wysiwyg();
86
+ });
87
+ $('.attachments-field-wysiwyg').init_wysiwyg();
88
+ }
89
+ });
90
+
91
+ $.fn.init_wysiwyg = function() {
92
+ if (typeof tinyMCE !== 'undefined') {
93
+ this.each(function() {
94
+
95
+ $(this).addClass('ready');
96
+
97
+ var input_id = $(this).attr('id');
98
+
99
+ // create wysiwyg
100
+
101
+ tinyMCE.settings.theme_advanced_buttons2 += ',code';
102
+ tinyMCE.settings.wpautop = false;
103
+ tinyMCE.execCommand('mceAddEditor', false, input_id);
104
+ tinyMCE.settings.wpautop = wpautop;
105
+ });
106
+ }
107
+ };
108
+
109
+ $(document).on('attachments/sortable_start', function(event, ui) {
110
+ if (typeof tinyMCE !== 'undefined') {
111
+ tinyMCE.settings.wpautop = false;
112
+ $('.attachments-field-wysiwyg').each(function() {
113
+ tinyMCE.execCommand('mceRemoveEditor', false, $(this).attr('id'));
114
+ });
115
+ }
116
+ });
117
+
118
+ $(document).on('attachments/sortable_stop', function(event, ui) {
119
+ if (typeof tinyMCE !== 'undefined') {
120
+ $('.attachments-field-wysiwyg').each(function() {
121
+ tinyMCE.execCommand('mceAddEditor', false, $(this).attr('id'));
122
+ });
123
+ tinyMCE.settings.wpautop = wpautop;
124
+ }
125
+ });
126
+
127
  })(jQuery);
128
  </script>
129
  <?php
docs/changelog.md CHANGED
@@ -3,6 +3,29 @@ 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.1.1</dt>
7
  <dd>Fixed an issue where Featured Images may have become inadvertently disabled, props @deborre</dd>
8
 
@@ -147,4 +170,4 @@ This is a WordPress plugin. [Official download available on WordPress.org](http:
147
 
148
  -----
149
 
150
- #### Next: [Roadmap](roadmap.md)
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>
9
+ <dd>Added <code>rewind()</code> method to reset Attachments reference array (props joost de keijzer)</dd>
10
+ <dd>TinyMCE fix to support WordPress 3.9+</dd>
11
+ <dd>Fixed an issue where nonce was potentially wrongly flagged as sent if an instance was filtered</dd>
12
+ <dd>Added <code>post_parent</code> argument support for instances, setting to <code>true</code> will populate the <strong>Uploaded to</strong> column in Media</dd>
13
+ <dd>New filter: <code>attachments_default_instance</code> to disable/enable the default instance (default is <code>true</code>, <code>ATTACHMENTS_DEFAULT_INSTANCE</code> constant is deprecated)</dd>
14
+ <dd>New filter: <code>attachments_settings_screen</code> to hide/show the settings screen (default is <code>true</code>, <code>ATTACHMENTS_SETTINGS_SCREEN</code> constant is deprecated)</dd>
15
+ <dd>Fixed an issue where Attachments meta box(es) would not show up when creating new posts whose <code>post_type</code> had a dash in it</dd>
16
+ <dd>Updated Italian translation (props Luca Speranza)</dd>
17
+
18
+ <dt>3.5.3</dt>
19
+ <dd>Fixed a Fatal error when deleting Media that was attached to a post (props Clearsite)</dd>
20
+ <dd>Warning cleanup</dd>
21
+
22
+ <dt>3.5.2</dt>
23
+ <dd>Added ability to force an instance name</dd>
24
+ <dd>Documentation updates</dd>
25
+ <dd>Warning and Notice cleanup</dd>
26
+ <dd>Fixed an issue with newline character retrieval</dd>
27
+ <dd>Fixed assumption of array (props Jakub Zelenka)</dd>
28
+
29
  <dt>3.5.1.1</dt>
30
  <dd>Fixed an issue where Featured Images may have become inadvertently disabled, props @deborre</dd>
31
 
170
 
171
  -----
172
 
173
+ #### Next: [Roadmap](roadmap.md)
docs/installation.md CHANGED
@@ -5,9 +5,9 @@ This is a WordPress plugin. [Official download available on WordPress.org](http:
5
  1. Download the plugin and extract the files
6
  1. Upload `attachments` to your `~/wp-content/plugins/` directory
7
  1. Activate the plugin through the 'Plugins' menu in WordPress
8
- 1. Implement Attachments in your theme's `functions.php` or your own plugin (see **[Usage](#usage)**)
9
- 1. Update your templates where applicable (see **[Usage](#usage)**)
10
 
11
  -----
12
 
13
- #### Next: [Upgrade Notice](upgrade.md)
5
  1. Download the plugin and extract the files
6
  1. Upload `attachments` to your `~/wp-content/plugins/` directory
7
  1. Activate the plugin through the 'Plugins' menu in WordPress
8
+ 1. Implement Attachments in your theme's `functions.php` or your own plugin (see **[Usage](usage.md)**)
9
+ 1. Update your templates where applicable (see **[Usage](usage.md)**)
10
 
11
  -----
12
 
13
+ #### Next: [Upgrade Notice](upgrade.md)
docs/usage.md CHANGED
@@ -9,7 +9,7 @@ Attachments is based on *instances* which correlate directly with the meta boxes
9
  Attachments ships with a `Settings` screen (found under the `Settings` menu in the main WordPress admin navigation) that facilitates data migration from version 1.x and also offers some code snippets. If you would like to *disable the Settings screen* add the following to your `wp-config.php` *before* `require_once(ABSPATH . 'wp-settings.php');`
10
 
11
  ```php
12
- define( 'ATTACHMENTS_SETTINGS_SCREEN', false ); // disable the Settings screen
13
  ```
14
 
15
  ### Setting Up Instances
@@ -21,10 +21,10 @@ When Attachments is first activated, a default instance is created titled Attach
21
 
22
  #### Disable the Default Instance
23
 
24
- If you would like to *disable the default instance* (meta box titled 'Attachments' with a 'Title' and 'Caption' field) add the following to your `wp-config.php` *before* `require_once(ABSPATH . 'wp-settings.php');`:
25
 
26
  ```php
27
- define( 'ATTACHMENTS_DEFAULT_INSTANCE', false );
28
  ```
29
 
30
  #### Create Custom Instances
@@ -84,6 +84,9 @@ function my_attachments( $attachments )
84
  // which tab should be the default in the modal (string) (browse|upload)
85
  'router' => 'browse',
86
 
 
 
 
87
  // fields array
88
  'fields' => $fields,
89
 
@@ -241,7 +244,9 @@ If you don't want to use the above implementation to loop through your Attachmen
241
  URL: <?php echo $attachments->url( $my_index ); ?><br />
242
  Image: <?php echo $attachments->image( 'thumbnail', $my_index ); ?><br />
243
  Source: <?php echo $attachments->src( 'full', $my_index ); ?><br />
244
- Size: <?php echo $attachments->filesize( $my_index ); ?><br />
 
 
245
  Title Field: <?php echo $attachments->field( 'title', $my_index ); ?><br />
246
  Caption Field: <?php echo $attachments->field( 'caption', $my_index ); ?>
247
  </li>
9
  Attachments ships with a `Settings` screen (found under the `Settings` menu in the main WordPress admin navigation) that facilitates data migration from version 1.x and also offers some code snippets. If you would like to *disable the Settings screen* add the following to your `wp-config.php` *before* `require_once(ABSPATH . 'wp-settings.php');`
10
 
11
  ```php
12
+ add_filter( 'attachments_settings_screen', '__return_false' ); // disable the Settings screen
13
  ```
14
 
15
  ### Setting Up Instances
21
 
22
  #### Disable the Default Instance
23
 
24
+ If you would like to *disable the default instance* (meta box titled 'Attachments' with a 'Title' and 'Caption' field) add the following to your theme's `functions.php`:
25
 
26
  ```php
27
+ add_filter( 'attachments_default_instance', '__return_false' ); // disable the default instance
28
  ```
29
 
30
  #### Create Custom Instances
84
  // which tab should be the default in the modal (string) (browse|upload)
85
  'router' => 'browse',
86
 
87
+ // whether Attachments should set 'Uploaded to' (if not already set)
88
+ 'post_parent' => false,
89
+
90
  // fields array
91
  'fields' => $fields,
92
 
244
  URL: <?php echo $attachments->url( $my_index ); ?><br />
245
  Image: <?php echo $attachments->image( 'thumbnail', $my_index ); ?><br />
246
  Source: <?php echo $attachments->src( 'full', $my_index ); ?><br />
247
+ Size: <?php echo $attachments->filesize( $my_index ); ?><br />'
248
+ Width: <?php echo $attachments->width('thumbnail', $my_index ); ?><br />
249
+ Height: <?php echo $attachments->height('thumbnail', $my_index ); ?><br />
250
  Title Field: <?php echo $attachments->field( 'title', $my_index ); ?><br />
251
  Caption Field: <?php echo $attachments->field( 'caption', $my_index ); ?>
252
  </li>
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.3
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.4
10
  * Text Domain: attachments
11
  * Domain Path: /languages/
12
  * License: GPLv2 or later
languages/attachments-it_IT.mo CHANGED
Binary file
languages/attachments-it_IT.po CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: Attachments v3.4\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2013-05-09 18:09+0100\n"
6
- "PO-Revision-Date: 2013-05-09 18:58+0100\n"
7
  "Last-Translator: Marco <marco@blackstudio.it>\n"
8
  "Language-Team: Black Studio <info@blackstudio.it>\n"
9
  "Language: it_IT\n"
@@ -14,7 +14,7 @@ msgstr ""
14
  "X-Poedit-Basepath: ../\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
- "X-Generator: Poedit 1.5.5\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
  #: index.php:30
@@ -114,6 +114,10 @@ msgstr "La migrazione è già stata eseguita. Il processo non è stato ripetuto.
114
  msgid "Title"
115
  msgstr "Titolo"
116
 
 
 
 
 
117
  #: classes/class.attachments.php:805 classes/class.attachments.php:1524
118
  #: deprecated/attachments.php:417 views/options.php:24
119
  msgid "Attachments"
@@ -128,6 +132,10 @@ msgstr "Allega"
128
  msgid "Caption"
129
  msgstr "Didascalia"
130
 
 
 
 
 
131
  #: classes/class.attachments.php:1100
132
  msgid "Remove"
133
  msgstr "Rimuovi"
3
  "Project-Id-Version: Attachments v3.4\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2013-05-09 18:09+0100\n"
6
+ "PO-Revision-Date: 2013-11-15 23:58+0100\n"
7
  "Last-Translator: Marco <marco@blackstudio.it>\n"
8
  "Language-Team: Black Studio <info@blackstudio.it>\n"
9
  "Language: it_IT\n"
14
  "X-Poedit-Basepath: ../\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
  "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "X-Generator: Poedit 1.5.7\n"
18
  "X-Poedit-SearchPath-0: .\n"
19
 
20
  #: index.php:30
114
  msgid "Title"
115
  msgstr "Titolo"
116
 
117
+ #: classes/class.attachments.php:769
118
+ msgid "Currently limited to"
119
+ msgstr "Limite impostato a"
120
+
121
  #: classes/class.attachments.php:805 classes/class.attachments.php:1524
122
  #: deprecated/attachments.php:417 views/options.php:24
123
  msgid "Attachments"
132
  msgid "Caption"
133
  msgstr "Didascalia"
134
 
135
+ #: classes/class.attachments.php:903
136
+ msgid "Change"
137
+ msgstr "Cambia"
138
+
139
  #: classes/class.attachments.php:1100
140
  msgid "Remove"
141
  msgstr "Rimuovi"
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: jchristopher
3
  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: 3.7
7
- Stable tag: 3.5.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -91,6 +91,18 @@ 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.3 =
95
  * Cleaned up PHP Warning/Notice (props Mike C.)
96
  * Fixed a potential fatal error triggered by deleting something from the Media library that was an Attachment
3
  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: 3.9
7
+ Stable tag: 3.5.4
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.4 =
95
+ * Fixed assumption of field keys (props bukka)
96
+ * Improved documentation (props Lane Goldberg, Roman Kokarev, Ore Landau)
97
+ * Added <code>rewind()</code> method to reset Attachments reference array (props joost de keijzer)
98
+ * TinyMCE fix to support WordPress 3.9+
99
+ * Fixed an issue where nonce was potentially wrongly flagged as sent if an instance was filtered
100
+ * Added <code>post_parent</code> argument support for instances, setting to <code>true</code> will populate the <strong>Uploaded to</strong> column in Media
101
+ * New filter: <code>attachments_default_instance</code> to disable/enable the default instance (default is <code>true</code>, <code>ATTACHMENTS_DEFAULT_INSTANCE</code> constant is deprecated)
102
+ * New filter: <code>attachments_settings_screen</code> to hide/show the settings screen (default is <code>true</code>, <code>ATTACHMENTS_SETTINGS_SCREEN</code> constant is deprecated)
103
+ * Fixed an issue where Attachments meta box(es) would not show up when creating new posts whose <code>post_type</code> had a dash in it
104
+ * Updated Italian translation (props Luca Speranza)
105
+
106
  = 3.5.3 =
107
  * Cleaned up PHP Warning/Notice (props Mike C.)
108
  * Fixed a potential fatal error triggered by deleting something from the Media library that was an Attachment