Version Description
- Fix: Corrected serious defect in
[mla_gallery]
that incorrectly limited the number of items returned for non-paginated galleries. - Fix: Eliminated "Strict Standards" messages issued from MLAModal functions.
Download this release
Release Info
Developer | dglingren |
Plugin | Media Library Assistant |
Version | 1.52 |
Comparing to | |
See all releases |
Code changes from version 1.51 to 1.52
- includes/class-mla-main.php +1 -1
- includes/class-mla-media-modal.php +2 -2
- includes/class-mla-shortcodes.php +3 -3
- index.php +2 -2
- readme.txt +7 -3
includes/class-mla-main.php
CHANGED
@@ -38,7 +38,7 @@ class MLA {
|
|
38 |
*
|
39 |
* @var string
|
40 |
*/
|
41 |
-
const CURRENT_MLA_VERSION = '1.
|
42 |
|
43 |
/**
|
44 |
* Slug for registering and enqueueing plugin style sheet
|
38 |
*
|
39 |
* @var string
|
40 |
*/
|
41 |
+
const CURRENT_MLA_VERSION = '1.52';
|
42 |
|
43 |
/**
|
44 |
* Slug for registering and enqueueing plugin style sheet
|
includes/class-mla-media-modal.php
CHANGED
@@ -84,7 +84,7 @@ class MLAModal {
|
|
84 |
*
|
85 |
* @return array ( value => label ) pairs
|
86 |
*/
|
87 |
-
private function _months_dropdown( $post_type ) {
|
88 |
global $wpdb, $wp_locale;
|
89 |
|
90 |
$months = $wpdb->get_results( $wpdb->prepare( "
|
@@ -123,7 +123,7 @@ class MLAModal {
|
|
123 |
*
|
124 |
* @return array ( value => label ) pairs
|
125 |
*/
|
126 |
-
private function _terms_options( $markup ) {
|
127 |
$match_count = preg_match_all( "#\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*#", $markup, $matches );
|
128 |
if ( ( $match_count == false ) || ( $match_count == 0 ) )
|
129 |
return array( 'class' => array( '' ), 'value' => array( '0' ), 'text' => array( 'Show all terms' ) );
|
84 |
*
|
85 |
* @return array ( value => label ) pairs
|
86 |
*/
|
87 |
+
private static function _months_dropdown( $post_type ) {
|
88 |
global $wpdb, $wp_locale;
|
89 |
|
90 |
$months = $wpdb->get_results( $wpdb->prepare( "
|
123 |
*
|
124 |
* @return array ( value => label ) pairs
|
125 |
*/
|
126 |
+
private static function _terms_options( $markup ) {
|
127 |
$match_count = preg_match_all( "#\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*#", $markup, $matches );
|
128 |
if ( ( $match_count == false ) || ( $match_count == 0 ) )
|
129 |
return array( 'class' => array( '' ), 'value' => array( '0' ), 'text' => array( 'Show all terms' ) );
|
includes/class-mla-shortcodes.php
CHANGED
@@ -188,8 +188,8 @@ class MLAShortcodes {
|
|
188 |
if ( ! isset( $attr[ $mla_page_parameter ] ) )
|
189 |
if ( isset( $_REQUEST[ $mla_page_parameter ] ) )
|
190 |
$attr[ $mla_page_parameter ] = $_REQUEST[ $mla_page_parameter ];
|
191 |
-
else
|
192 |
-
$attr[ $mla_page_parameter ] = '';
|
193 |
|
194 |
/*
|
195 |
* These are the parameters for gallery display
|
@@ -1534,7 +1534,7 @@ class MLAShortcodes {
|
|
1534 |
if ( isset( $attr[ $mla_page_parameter ] ) )
|
1535 |
$arguments[ $mla_page_parameter ] = $attr[ $mla_page_parameter ];
|
1536 |
else
|
1537 |
-
$arguments[ $mla_page_parameter ] =
|
1538 |
|
1539 |
/*
|
1540 |
* 'RAND' is not documented in the codex, but is present in the code.
|
188 |
if ( ! isset( $attr[ $mla_page_parameter ] ) )
|
189 |
if ( isset( $_REQUEST[ $mla_page_parameter ] ) )
|
190 |
$attr[ $mla_page_parameter ] = $_REQUEST[ $mla_page_parameter ];
|
191 |
+
// else
|
192 |
+
// $attr[ $mla_page_parameter ] = '';
|
193 |
|
194 |
/*
|
195 |
* These are the parameters for gallery display
|
1534 |
if ( isset( $attr[ $mla_page_parameter ] ) )
|
1535 |
$arguments[ $mla_page_parameter ] = $attr[ $mla_page_parameter ];
|
1536 |
else
|
1537 |
+
$arguments[ $mla_page_parameter ] = NULL;
|
1538 |
|
1539 |
/*
|
1540 |
* 'RAND' is not documented in the codex, but is present in the code.
|
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.
|
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.
|
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.52
|
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.52
|
18 |
Author URI: http://fairtradejudaica.org/our-story/staff/
|
19 |
|
20 |
Copyright 2011-2013 David Lingren
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ 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
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -121,6 +121,10 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
|
|
121 |
|
122 |
== Changelog ==
|
123 |
|
|
|
|
|
|
|
|
|
124 |
= 1.51 =
|
125 |
* New: For `[mla_gallery]`, **twenty-five new `apply_filters` hooks** let you modify gallery output with PHP code in your theme or another plugin. More information in the "Other Notes" section here. A complete, working example is provided in the Settings/Media Library Assistant Documentation tab.
|
126 |
* New: **Attachment Metadata mapping**. Add or change values in the WordPress `_wp_attachment_metadata` array. For example, add GPS data to the `image_meta` array. Full details in the "Other Notes" section and in the Settings/Media Library Assistant Documentation tab.
|
@@ -187,8 +191,8 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
|
|
187 |
|
188 |
== Upgrade Notice ==
|
189 |
|
190 |
-
= 1.
|
191 |
-
|
192 |
|
193 |
== Other Notes ==
|
194 |
|
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
|
7 |
+
Stable tag: 1.52
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
121 |
|
122 |
== Changelog ==
|
123 |
|
124 |
+
= 1.52 =
|
125 |
+
* Fix: **Corrected serious defect in `[mla_gallery]`** that incorrectly limited the number of items returned for non-paginated galleries.
|
126 |
+
* Fix: Eliminated "Strict Standards" messages issued from MLAModal functions.
|
127 |
+
|
128 |
= 1.51 =
|
129 |
* New: For `[mla_gallery]`, **twenty-five new `apply_filters` hooks** let you modify gallery output with PHP code in your theme or another plugin. More information in the "Other Notes" section here. A complete, working example is provided in the Settings/Media Library Assistant Documentation tab.
|
130 |
* New: **Attachment Metadata mapping**. Add or change values in the WordPress `_wp_attachment_metadata` array. For example, add GPS data to the `image_meta` array. Full details in the "Other Notes" section and in the Settings/Media Library Assistant Documentation tab.
|
191 |
|
192 |
== Upgrade Notice ==
|
193 |
|
194 |
+
= 1.52 =
|
195 |
+
Corrects serious defect in [mla_gallery] that incorrectly limits the number of items returned for non-paginated galleries. One other fix.
|
196 |
|
197 |
== Other Notes ==
|
198 |
|