Make WordPress Core


Ignore:
Timestamp:
09/03/2014 02:16:32 AM (10 years ago)
Author:
nacin
Message:

Only media grid (not modal) should show "Uploaded by" and "Uploaded to".

props wonderboymusic.
fixes #29482.

File:
1 edited

Legend:

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

    r29609 r29683  
    566566            <textarea {{ maybeReadOnly }}>{{ data.description }}</textarea>
    567567        </label>
    568         <label class="setting">
    569                 <span class="name"><?php _e( 'Uploaded By' ); ?></span>
    570                 <span class="value">{{ data.authorName }}</span>
    571             </label>
    572         <# if ( data.uploadedTo ) { #>
    573             <label class="setting">
    574                 <span class="name"><?php _e( 'Uploaded To' ); ?></span>
    575                 <# if ( data.uploadedToLink ) { #>
    576                     <span class="value"><a href="{{ data.uploadedToLink }}">{{ data.uploadedToTitle }}</a></span>
    577                 <# } else { #>
    578                     <span class="value">{{ data.uploadedToTitle }}</span>
    579                 <# } #>
    580             </label>
    581         <# } #>
    582568    </script>
    583569
Note: See TracChangeset for help on using the changeset viewer.