Media Library Assistant - Version 1.61

Version Description

  • Tested for compatibility with WordPress version 3.8 - no issues found.
  • Fix: For custom field mapping, the file_size data source is now populated when the file name contains characters outside the printable ASCII range.
  • Fix: For [mla_gallery], field-level markup substitution parameters in item-specific parameters such as mla_link_href are expanded properly. This corrects a defect introduced in v1.60.
  • Fix: For [mla_gallery], correct default style and markup templates are applied when the shortcode mla_style= and/or mla_markup= parameters name templates that do not exist. The previous version incorrectly supplied the "tag-cloud" template in this case.
Download this release

Release Info

Developer dglingren
Plugin Icon 128x128 Media Library Assistant
Version 1.61
Comparing to
See all releases

Code changes from version 1.60 to 1.61

includes/class-mla-main.php CHANGED
@@ -38,7 +38,7 @@ class MLA {
38
  *
39
  * @var string
40
  */
41
- const CURRENT_MLA_VERSION = '1.60';
42
 
43
  /**
44
  * Slug for registering and enqueueing plugin style sheet
38
  *
39
  * @var string
40
  */
41
+ const CURRENT_MLA_VERSION = '1.61';
42
 
43
  /**
44
  * Slug for registering and enqueueing plugin style sheet
includes/class-mla-options.php CHANGED
@@ -1731,7 +1731,7 @@ class MLAOptions {
1731
  $result = $file_info[ $data_source ];
1732
  break;
1733
  case 'file_size':
1734
- $filesize = @ filesize( $file_info['absolute_path_raw'] . $file_info['file_name'] );
1735
  if ( ! (false === $filesize ) )
1736
  $result = $filesize;
1737
  break;
1731
  $result = $file_info[ $data_source ];
1732
  break;
1733
  case 'file_size':
1734
+ $filesize = @ filesize( $file_info['absolute_file_name_raw'] );
1735
  if ( ! (false === $filesize ) )
1736
  $result = $filesize;
1737
  break;
includes/class-mla-shortcodes.php CHANGED
@@ -269,7 +269,7 @@ class MLAShortcodes {
269
  * attachment-specific Gallery Display Content parameters must be evaluated
270
  * later, when all of the information is available.
271
  */
272
- if ( in_array( $attr_key, $mla_item_specific_arguments ) )
273
  continue;
274
 
275
  $attr_value = str_replace( '{+', '[+', str_replace( '+}', '+]', $attr_value ) );
@@ -477,8 +477,12 @@ class MLAShortcodes {
477
  if ( apply_filters( 'use_mla_gallery_style', $use_mla_gallery_style, $style_values['mla_style'] ) ) {
478
  $style_template = MLAOptions::mla_fetch_gallery_template( $style_values['mla_style'], 'style' );
479
  if ( empty( $style_template ) ) {
480
- $style_values['mla_style'] = 'default';
481
- $style_template = MLAOptions::mla_fetch_gallery_template( 'default', 'style' );
 
 
 
 
482
  }
483
 
484
  if ( ! empty ( $style_template ) ) {
@@ -524,8 +528,12 @@ class MLAShortcodes {
524
 
525
  $open_template = MLAOptions::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-open', 'markup' );
526
  if ( false === $open_template ) {
527
- $markup_values['mla_markup'] = 'tag-cloud';
528
  $open_template = MLAOptions::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-open', 'markup' );
 
 
 
 
529
  }
530
  if ( empty( $open_template ) )
531
  $open_template = '';
@@ -1126,7 +1134,7 @@ class MLAShortcodes {
1126
  * item-specific Display Content parameters must be evaluated
1127
  * later, when all of the information is available.
1128
  */
1129
- if ( in_array( $attr_key, $mla_item_specific_arguments ) )
1130
  continue;
1131
 
1132
  $attr_value = str_replace( '{+', '[+', str_replace( '+}', '+]', $attr_value ) );
269
  * attachment-specific Gallery Display Content parameters must be evaluated
270
  * later, when all of the information is available.
271
  */
272
+ if ( array_key_exists( $attr_key, $mla_item_specific_arguments ) )
273
  continue;
274
 
275
  $attr_value = str_replace( '{+', '[+', str_replace( '+}', '+]', $attr_value ) );
477
  if ( apply_filters( 'use_mla_gallery_style', $use_mla_gallery_style, $style_values['mla_style'] ) ) {
478
  $style_template = MLAOptions::mla_fetch_gallery_template( $style_values['mla_style'], 'style' );
479
  if ( empty( $style_template ) ) {
480
+ $style_values['mla_style'] = $default_arguments['mla_style'];
481
+ $style_template = MLAOptions::mla_fetch_gallery_template( $style_values['mla_style'], 'style' );
482
+ if ( empty( $style_template ) ) {
483
+ $style_values['mla_style'] = 'default';
484
+ $style_template = MLAOptions::mla_fetch_gallery_template( 'default', 'style' );
485
+ }
486
  }
487
 
488
  if ( ! empty ( $style_template ) ) {
528
 
529
  $open_template = MLAOptions::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-open', 'markup' );
530
  if ( false === $open_template ) {
531
+ $markup_values['mla_markup'] = $default_arguments['mla_markup'];
532
  $open_template = MLAOptions::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-open', 'markup' );
533
+ if ( false === $open_template ) {
534
+ $markup_values['mla_markup'] = 'default';
535
+ $open_template = MLAOptions::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-open', 'markup' );
536
+ }
537
  }
538
  if ( empty( $open_template ) )
539
  $open_template = '';
1134
  * item-specific Display Content parameters must be evaluated
1135
  * later, when all of the information is available.
1136
  */
1137
+ if ( array_key_exists( $attr_key, $mla_item_specific_arguments ) )
1138
  continue;
1139
 
1140
  $attr_value = str_replace( '{+', '[+', str_replace( '+}', '+]', $attr_value ) );
index.php CHANGED
@@ -6,7 +6,7 @@
6
  * will the rest of the plugin be loaded and run.
7
  *
8
  * @package Media Library Assistant
9
- * @version 1.60
10
  */
11
 
12
  /*
@@ -14,7 +14,7 @@ Plugin Name: Media Library Assistant
14
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
15
  Description: Enhances the Media Library; powerful[mla_gallery], taxonomy support, IPTC/EXIF processing, bulk & quick edit actions and where-used reporting.
16
  Author: David Lingren
17
- Version: 1.60
18
  Author URI: http://fairtradejudaica.org/our-story/staff/
19
 
20
  Copyright 2011-2013 David Lingren
6
  * will the rest of the plugin be loaded and run.
7
  *
8
  * @package Media Library Assistant
9
+ * @version 1.61
10
  */
11
 
12
  /*
14
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
15
  Description: Enhances the Media Library; powerful[mla_gallery], taxonomy support, IPTC/EXIF processing, bulk & quick edit actions and where-used reporting.
16
  Author: David Lingren
17
+ Version: 1.61
18
  Author URI: http://fairtradejudaica.org/our-story/staff/
19
 
20
  Copyright 2011-2013 David Lingren
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: dglingren
3
  Donate link: http://fairtradejudaica.org/make-a-difference/donate/
4
  Tags: attachment, attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories, IPTC, EXIF, GPS, PDF, meta, metadata, photo, photos, photograph, photographs, photoblog, photo albums, lightroom, photoshop, MIME, mime-type, icon, upload, file extensions
5
  Requires at least: 3.3
6
- Tested up to: 3.7.1
7
- Stable tag: 1.60
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -121,6 +121,12 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
121
 
122
  == Changelog ==
123
 
 
 
 
 
 
 
124
  = 1.60 =
125
  * New: **`[mla_tag_cloud]` shortcode**. Enhanced tag cloud for any taxonomy, with "grid" format, full Display Content and custom template support along the lines of `[mla_gallery]`. Paginated clouds are also supported. Full details in the [Other Notes section](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Click here, then scroll down") and on the Settings/Media Library Assistant Documentation tab.
126
  * New: **`MLA Text Widget`**. You can add widgets containing `[mla_gallery]`, `[mla_tag_cloud]` or **any shortcode** to the sidebars on your site. More information in the [Other Notes section](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Click here, then scroll down").
@@ -204,8 +210,8 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
204
 
205
  == Upgrade Notice ==
206
 
207
- = 1.60 =
208
- New [mla_tag_cloud] shortcode and shortcode-enabled MLA Text Widget. Five other enhancements, four fixes.
209
 
210
  == Other Notes ==
211
 
3
  Donate link: http://fairtradejudaica.org/make-a-difference/donate/
4
  Tags: attachment, attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories, IPTC, EXIF, GPS, PDF, meta, metadata, photo, photos, photograph, photographs, photoblog, photo albums, lightroom, photoshop, MIME, mime-type, icon, upload, file extensions
5
  Requires at least: 3.3
6
+ Tested up to: 3.8
7
+ Stable tag: 1.61
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
121
 
122
  == Changelog ==
123
 
124
+ = 1.61 =
125
+ * Tested for compatibility with WordPress version 3.8 - no issues found.
126
+ * Fix: For custom field mapping, **the file_size data source** is now populated when the file name contains characters outside the printable ASCII range.
127
+ * Fix: For `[mla_gallery]`, **field-level markup substitution parameters in item-specific parameters such as mla_link_href** are expanded properly. This corrects a defect introduced in v1.60.
128
+ * Fix: For `[mla_gallery]`, **correct default style and markup templates** are applied when the shortcode `mla_style=` and/or `mla_markup=` parameters name templates that do not exist. The previous version incorrectly supplied the "tag-cloud" template in this case.
129
+
130
  = 1.60 =
131
  * New: **`[mla_tag_cloud]` shortcode**. Enhanced tag cloud for any taxonomy, with "grid" format, full Display Content and custom template support along the lines of `[mla_gallery]`. Paginated clouds are also supported. Full details in the [Other Notes section](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Click here, then scroll down") and on the Settings/Media Library Assistant Documentation tab.
132
  * New: **`MLA Text Widget`**. You can add widgets containing `[mla_gallery]`, `[mla_tag_cloud]` or **any shortcode** to the sidebars on your site. More information in the [Other Notes section](http://wordpress.org/extend/plugins/media-library-assistant/other_notes/ "Click here, then scroll down").
210
 
211
  == Upgrade Notice ==
212
 
213
+ = 1.61 =
214
+ Three fixes, including one significant fix for item-specific markup substitution parameters. Tested for compatibility with WP 3.8.
215
 
216
  == Other Notes ==
217