Make WordPress Core


Ignore:
Timestamp:
10/20/2020 03:12:07 AM (3 years ago)
Author:
helen
Message:

Media: Indicate if item is or was used as a site option in the details modal.

Props Mista-Flo, melchoyce.
Fixes #42063.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/media.php

    r49209 r49223  
    39773977    }
    39783978
     3979    $media_states = get_media_states( $attachment );
     3980    if ( ! empty( $media_states ) ) {
     3981        $response['mediaStates'] = implode( ', ', $media_states );
     3982    }
     3983
    39793984    /**
    39803985     * Filters the attachment data prepared for JavaScript.
Note: See TracChangeset for help on using the changeset viewer.