Plugin Directory

Changeset 3345314


Ignore:
Timestamp:
08/15/2025 11:06:18 PM (4 months ago)
Author:
dglingren
Message:

Eliminate PHP warning when filtering "Featured image" Media Manager Modal (popup) Window content with a custom field view/query.

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

Legend:

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

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

    r3258833 r3345314  
    700700
    701701        if ( isset( $query['post_mime_type'] ) ) {
    702             if ( 'detached' == $query['post_mime_type'] ) {
     702            if ( 'detached' === $query['post_mime_type'] ) {
    703703                $query['detached'] = '1';
    704704                unset( $query['post_mime_type'] );
    705             } elseif ( 'attached' == $query['post_mime_type'] ) {
     705            } elseif ( 'attached' === $query['post_mime_type'] ) {
    706706                $query['detached'] = '0';
    707707                unset( $query['post_mime_type'] );
    708             } elseif ( 'mine' == $query['post_mime_type'] ) {
     708            } elseif ( 'mine' === $query['post_mime_type'] ) {
    709709                $query['author'] = get_current_user_id();
    710710                unset( $query['post_mime_type'] );
    711             } elseif ( 'trash' == $query['post_mime_type'] ) {
     711            } elseif ( 'trash' === $query['post_mime_type'] ) {
    712712                $query['status'] = 'trash';
    713713                unset( $query['post_mime_type'] );
     
    725725        // Set Featured Image queries must use only images
    726726        if ( isset( $raw_query['mla_state'] ) && ( 'featured-image' === $raw_query['mla_state'] ) ) {
    727             if ( 0 !== strpos( $query['post_mime_type'], 'image' ) ) {
     727            if ( isset( $query['post_mime_type'] ) ) {
     728                if ( 0 !== strpos( $query['post_mime_type'], 'image' ) ) {
     729                    $query['post_mime_type'] = 'image';
     730                }
     731            } else {
    728732                $query['post_mime_type'] = 'image';
    729733            }
  • media-library-assistant/trunk/index.php

    r3344918 r3345314  
    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: 20250815 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.28
    2020Requires at least: 4.7
  • media-library-assistant/trunk/readme.txt

    r3344918 r3345314  
    199199
    200200== Changelog ==
     201
     202= 3.29 =
     203* Fix: For the "Featured image" Media Manager Modal (popup) Window, a PHP warning when filtering the content with a custom field view/query has been eliminated.
    201204
    202205= 3.28 =
Note: See TracChangeset for help on using the changeset viewer.