Changeset 3459452
- Timestamp:
- 02/12/2026 01:16:44 AM (6 weeks ago)
- Location:
- media-library-assistant/trunk
- Files:
-
- 9 edited
-
includes/class-mla-ajax.php (modified) (1 diff)
-
includes/class-mla-core-options.php (modified) (1 diff)
-
includes/class-mla-core.php (modified) (4 diffs)
-
includes/class-mla-objects.php (modified) (2 diffs)
-
includes/class-mla-shortcode-support.php (modified) (1 diff)
-
includes/mla-plugin-loader.php (modified) (6 diffs)
-
index.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
-
tests/class-mla-tests.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
media-library-assistant/trunk/includes/class-mla-ajax.php
r3379043 r3459452 631 631 if ( ( ( 'checked' === MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_TOOLBAR, false, false, MLACoreOptions::$mla_prelocalize_option_definitions ) ) || ( 'checked' === MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_GRID_TOOLBAR, false, false, MLACoreOptions::$mla_prelocalize_option_definitions ) ) ) ) { 632 632 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-media-modal-ajax.php' ); 633 add_action( 'init', 'MLAModal_Ajax::initialize', 0x 7FFFFFFF );633 add_action( 'init', 'MLAModal_Ajax::initialize', 0x800 ); // 0x7FFFFFFF ); 634 634 } 635 635 ?> -
media-library-assistant/trunk/includes/class-mla-core-options.php
r3448291 r3459452 541 541 */ 542 542 public static function mla_localize_option_definitions_array() { 543 // error_log( __LINE__ . ' DEBUG: MLACoreOptions::mla_localize_option_definitions_array', 0 ); 544 543 545 self::$mla_option_definitions = array ( 544 546 // This option records the highest MLA version so-far installed -
media-library-assistant/trunk/includes/class-mla-core.php
r3457611 r3459452 31 31 * @var string 32 32 */ 33 const MLA_DEVELOPMENT_VERSION = '202602 09';33 const MLA_DEVELOPMENT_VERSION = '20260211'; 34 34 35 35 /** … … 436 436 */ 437 437 public static function initialize( ) { 438 // error_log( __LINE__ . ' DEBUG: MLACore::initialize $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );438 // error_log( __LINE__ . ' DEBUG: MLACore::initialize $_REQUEST = ' . var_export( $_REQUEST, true ), 0 ); 439 439 // if ( isset( $_SERVER['REQUEST_URI'] ) ) error_log( __LINE__ . ' DEBUG: MLACore::initialize $_SERVER[REQUEST_URI] = ' . var_export( $_SERVER['REQUEST_URI'], true ), 0 ); 440 440 441 $text_domain = 'media-library-assistant'; 441 442 $locale = function_exists( 'get_user_locale' ) ? get_user_locale() : get_locale(); … … 684 685 */ 685 686 public static function mla_plugins_loaded_action(){ 686 /* $text_domain = 'media-library-assistant'; 687 $locale = function_exists( 'get_user_locale' ) ? get_user_locale() : get_locale(); 688 $locale = apply_filters( 'mla_plugin_locale', $locale, $text_domain ); 689 690 if ( is_admin() && 'en_US' === $locale ) { 691 $result = unload_textdomain( $text_domain ); 692 } 693 694 /* 695 * To override the plugin's translation files for one, some or all strings, 696 * create a sub-directory named 'media-library-assistant' in the WordPress 697 * WP_LANG_DIR (e.g., /wp-content/languages) directory. 698 * / 699 load_textdomain( $text_domain, trailingslashit( WP_LANG_DIR ) . $text_domain . '/' . $text_domain . '-' . $locale . '.mo' ); 700 load_plugin_textdomain( $text_domain, false, MLA_PLUGIN_BASENAME . '/languages/' ); 701 702 // This must/will be repeated in class-mla-tests.php to reflect translations 703 MLACoreOptions::mla_localize_option_definitions_array(); 687 // error_log( __LINE__ . ' DEBUG: MLACore::mla_plugins_loaded_action', 0 ); 704 688 705 689 MLACore::$original_php_log = ini_get( 'error_log' ); 706 MLACore::$original_php_reporting = sprintf( '0x%1$04X', error_reporting() ); // */690 MLACore::$original_php_reporting = sprintf( '0x%1$04X', error_reporting() ); 707 691 708 692 // Do not process debug options unless MLA_DEBUG_LEVEL is set in wp-config.php … … 2199 2183 // Custom Taxonomies and WordPress objects. 2200 2184 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-objects.php' ); 2201 add_action( 'init', 'MLAObjects::initialize', 0x 7FFFFFFF );2185 add_action( 'init', 'MLAObjects::initialize', 0x800 ); // 0x7FFFFFFF ); 2202 2186 2203 2187 // MIME Type functions; some filters required in all modes. 2204 2188 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-mime-types.php' ); 2205 add_action( 'init', 'MLAMime::initialize', 0x 7FFFFFFF );2189 add_action( 'init', 'MLAMime::initialize', 0x800 ); // 0x7FFFFFFF ); 2206 2190 2207 2191 // Intermediate image sizes functions; some filters required in all modes. 2208 2192 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-image-sizes.php' ); 2209 add_action( 'init', 'MLAImage_Size::initialize', 0x 7FFFFFFF );2193 add_action( 'init', 'MLAImage_Size::initialize', 0x800 ); // 0x7FFFFFFF ); 2210 2194 2211 2195 // Admin Columns plugin support -
media-library-assistant/trunk/includes/class-mla-objects.php
r3199663 r3459452 33 33 */ 34 34 public static function mla_build_taxonomies( ) { 35 // error_log( __LINE__ . ' DEBUG: MLAObjects::mla_build_taxonomies', 0 ); 36 35 37 if ( MLACore::mla_taxonomy_support('attachment_category') ) { 36 38 $object_type = apply_filters( 'mla_attachment_category_types', array( … … 114 116 */ 115 117 private static function _add_taxonomy_support( ) { 118 //error_log( __LINE__ . ' DEBUG: MLAObjects::_add_taxonomy_support', 0 ); 119 116 120 MLACore::mla_initialize_tax_checked_on_top(); 117 121 $taxonomies = get_taxonomies( array ( 'show_ui' => true ), 'names' ); -
media-library-assistant/trunk/includes/class-mla-shortcode-support.php
r3457611 r3459452 2257 2257 2258 2258 $parts = wp_parse_url( $link_url ); 2259 2260 if ( empty( $parts['scheme'] ) ) { 2261 if ( 'HTTPS' === substr( $_SERVER["SERVER_PROTOCOL"], 0, 5 ) ) { // phpcs:ignore 2262 $parts['scheme'] = 'https'; 2263 } else { 2264 $parts['scheme'] = 'http'; 2265 } 2266 } 2267 2268 if ( empty( $parts['host'] ) ) { 2269 $parts['host'] = $_SERVER['HTTP_HOST']; // phpcs:ignore 2270 } 2271 2272 //error_log( __LINE__ . ' mla_process_pagination_link link_url = ' . var_export( $link_url, true ), 0 ); 2273 //error_log( __LINE__ . ' mla_process_pagination_link parts = ' . var_export( $parts, true ), 0 ); 2259 2274 $uri_path = empty( $parts['path'] ) ? '' : $parts['path']; 2260 2275 $uri_query = empty( $parts['query'] ) ? '' : $parts['query']; -
media-library-assistant/trunk/includes/mla-plugin-loader.php
r3322044 r3459452 63 63 } else { 64 64 // MLATest is loaded above 65 add_action( 'init', 'MLATest::initialize', 0x 7FFFFFFF );65 add_action( 'init', 'MLATest::initialize', 0x800 ); // 0x7FFFFFFF ); 66 66 67 67 // Minimum support functions required by all other components 68 68 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-core.php' ); 69 69 add_action( 'plugins_loaded', 'MLACore::mla_plugins_loaded_action', 0x7FFFFFFF ); 70 add_action( 'init', 'MLACore::initialize', 0x 7FFFFFFF );70 add_action( 'init', 'MLACore::initialize', 0x800 ); // 0x7FFFFFFF ); 71 71 72 72 // WP/LR Sync plugin has its own protocol to process uploads … … 95 95 if ( $front_end_only ) { 96 96 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-shortcodes.php' ); 97 add_action( 'init', 'MLAShortcodes::initialize', 0x 7FFFFFFF );97 add_action( 'init', 'MLAShortcodes::initialize', 0x800 ); // 0x7FFFFFFF ); 98 98 return; 99 99 } … … 109 109 // Ajax handlers 110 110 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-ajax.php' ); 111 add_action( 'init', 'MLA_Ajax::initialize', 0x 7FFFFFFF );111 add_action( 'init', 'MLA_Ajax::initialize', 0x800 ); // 0x7FFFFFFF ); 112 112 113 113 /* … … 152 152 if ( $ajax_only ) { 153 153 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-data-query.php' ); 154 add_action( 'init', 'MLAQuery::initialize', 0x 7FFFFFFF );154 add_action( 'init', 'MLAQuery::initialize', 0x800 ); // 0x7FFFFFFF ); 155 155 156 156 // Other plugins such as "No Cache AJAX Widgets" might need shortcodes 157 157 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-shortcodes.php' ); 158 add_action( 'init', 'MLAShortcodes::initialize', 0x 7FFFFFFF );158 add_action( 'init', 'MLAShortcodes::initialize', 0x800 ); // 0x7FFFFFFF ); 159 159 160 160 return; … … 164 164 // Template file and database access functions. 165 165 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-data-query.php' ); 166 add_action( 'init', 'MLAQuery::initialize', 0x 7FFFFFFF );166 add_action( 'init', 'MLAQuery::initialize', 0x800 ); // 0x7FFFFFFF ); 167 167 168 168 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-data.php' ); 169 add_action( 'init', 'MLAData::initialize', 0x 7FFFFFFF );169 add_action( 'init', 'MLAData::initialize', 0x800 ); // 0x7FFFFFFF ); 170 170 171 171 // Shortcode shim functions 172 172 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-shortcodes.php' ); 173 add_action( 'init', 'MLAShortcodes::initialize', 0x 7FFFFFFF );173 add_action( 'init', 'MLAShortcodes::initialize', 0x800 ); // 0x7FFFFFFF ); 174 174 175 175 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-shortcode-support.php' ); … … 181 181 add_action( 'init', 'MLAOptions::initialize', 9 ); 182 182 } else { 183 add_action( 'init', 'MLAOptions::initialize', 0x 7FFFFFFF );183 add_action( 'init', 'MLAOptions::initialize', 0x800 ); // 0x7FFFFFFF ); 184 184 } 185 185 186 186 // Plugin settings management page 187 187 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-settings.php' ); 188 add_action( 'init', 'MLASettings::initialize', 0x 7FFFFFFF );188 add_action( 'init', 'MLASettings::initialize', 0x800 ); // 0x7FFFFFFF ); 189 189 190 190 // Main program 191 191 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-main.php' ); 192 add_action( 'init', 'MLA::initialize', 0x 7FFFFFFF );192 add_action( 'init', 'MLA::initialize', 0x800 ); // 0x7FFFFFFF ); 193 193 194 194 // Edit Media screen additions, e.g., meta boxes 195 195 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-edit-media.php' ); 196 add_action( 'init', 'MLAEdit::initialize', 0x 7FFFFFFF );196 add_action( 'init', 'MLAEdit::initialize', 0x800 ); // 0x7FFFFFFF ); 197 197 198 198 // Media Manager (Modal window) additions 199 199 require_once( MLA_PLUGIN_PATH . 'includes/class-mla-media-modal.php' ); 200 add_action( 'init', 'MLAModal::initialize', 0x 7FFFFFFF );200 add_action( 'init', 'MLAModal::initialize', 0x800 ); // 0x7FFFFFFF ); 201 201 202 202 /* -
media-library-assistant/trunk/index.php
r3457611 r3459452 16 16 Plugin Name: Media Library Assistant 17 17 Plugin URI: http://davidlingren.com/#two 18 Description: 202602 09Enhances the Media Library; powerful [mla_gallery] [mla_tag_cloud] [mla_term_list], [mla_custom_list], [mla_archive_list], taxonomy support, IPTC/EXIF/XMP/PDF processing, bulk/quick edit.18 Description: 20260211 Enhances the Media Library; powerful [mla_gallery] [mla_tag_cloud] [mla_term_list], [mla_custom_list], [mla_archive_list], taxonomy support, IPTC/EXIF/XMP/PDF processing, bulk/quick edit. 19 19 Version: 3.32 20 20 Requires at least: 4.7 -
media-library-assistant/trunk/readme.txt
r3457611 r3459452 201 201 * Fix: IMPORTANT: For the `[mla_tag_cloud]` and `[mla_term_list]` shortcodes, an SQL injection security risk has been mitigated. 202 202 * Fix: A WPML support defect causing a critical site error when duplicating an attachment in a new language has been corrected. 203 203 * Fix: For all of the shortcodes, a defect in handling relative paths in pagination output formats has been corrected. 204 * Fix: The priority of the hooks MLA adds to the "init" action has been adjusted to avoid a taxonomy registration conflict with the "Breadcrumb NavXT" plugin. 204 205 = 3.32 = 205 206 * Fix: A defect with taxonomy labels in the MMMW ATTACHMENT DETAILS pane causing a PHP "Undefined variable $label" message has been corrected. -
media-library-assistant/trunk/tests/class-mla-tests.php
r1718460 r3459452 49 49 @error_reporting( 0 + $php_reporting ); 50 50 } 51 52 // This is the earliest effective place to localize values in other plugin components53 MLACoreOptions::mla_localize_option_definitions_array();54 51 } 55 52
Note: See TracChangeset
for help on using the changeset viewer.