Make WordPress Core


Ignore:
Timestamp:
10/20/2020 03:12:07 AM (4 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-template.php

    r49222 r49223  
    460460                <# } #>
    461461
     462                <# if ( data.mediaStates ) { #>
     463                    <div class="media-states"><strong><?php _e( 'Used as:' ); ?></strong> {{ data.mediaStates }}</div>
     464                <# } #>
     465
    462466                <div class="compat-meta">
    463467                    <# if ( data.compat && data.compat.meta ) { #>
     
    672676                        <span class="screen-reader-text">{{ data.fileLengthHumanReadable }}</span>
    673677                    </div>
     678                <# } #>
     679
     680                <# if ( data.mediaStates ) { #>
     681                    <div class="media-states"><strong><?php _e( 'Used as:' ); ?></strong> {{ data.mediaStates }}</div>
    674682                <# } #>
    675683
Note: See TracChangeset for help on using the changeset viewer.