Plugin Directory

Changeset 3408564


Ignore:
Timestamp:
12/02/2025 10:29:00 PM (12 days ago)
Author:
dglingren
Message:

Investigate and perhaps fix NULL label issue in mla-media-modal-ajax.php.

Location:
media-library-assistant/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • media-library-assistant/trunk/includes/class-mla-core.php

    r3381004 r3408564  
    3131     * @var string
    3232     */
    33     const MLA_DEVELOPMENT_VERSION = '';
     33    const MLA_DEVELOPMENT_VERSION = '20251202';
    3434
    3535    /**
  • media-library-assistant/trunk/includes/class-mla-media-modal-ajax.php

    r3345314 r3408564  
    254254     */
    255255    public static function mla_attachment_fields_to_edit_filter( $form_fields, $post ) {
     256        static $log_error = true;
     257       
    256258        $id = $post->ID;
    257259
     
    295297                     */
    296298                    $post_id = $post->ID;
    297                     $label = $field['labels']->name;
     299
     300                    if ( true || empty( $field['labels'] ) ) {
     301                        if ( $log_error ) {
     302                            $log_error = false;
     303                            MLACore::mla_debug_add( __LINE__ . " DEBUG: MLAModal_Ajax::mla_attachment_fields_to_edit_filter( {$id} ) \$field = " . var_export( $field, true ), 0x400 );
     304                            MLACore::mla_debug_add( __LINE__ . " DEBUG: MLAModal_Ajax::mla_attachment_fields_to_edit_filter( {$key} ) \$value = " . var_export( $value, true ), 0x400 );
     305                        }
     306
     307                        if ( ! empty( $field['label'] ) ) {
     308                            $label = $field['label'];
     309                        } else {
     310                            $label = 'No Label';
     311                        }
     312                    } else {
     313                        $label = $field['labels']->name;
     314                    }
     315
    298316                    $terms = get_object_term_cache( $post_id, $key );
    299317
  • media-library-assistant/trunk/index.php

    r3381004 r3408564  
    1616Plugin Name: Media Library Assistant
    1717Plugin URI: http://davidlingren.com/#two
    18 Description: Enhances the Media Library; powerful [mla_gallery] [mla_tag_cloud] [mla_term_list], taxonomy support, IPTC/EXIF/XMP/PDF processing, bulk/quick edit.
     18Description: 20251202 Enhances the Media Library; powerful [mla_gallery] [mla_tag_cloud] [mla_term_list], taxonomy support, IPTC/EXIF/XMP/PDF processing, bulk/quick edit.
    1919Version: 3.30
    2020Requires at least: 4.7
Note: See TracChangeset for help on using the changeset viewer.