Make WordPress Core

Ticket #28677: 28677.patch

File 28677.patch, 877 bytes (added by gauravmittal1995, 11 years ago)

Patch for the ticket

  • wp-includes/media-template.php

     
    174174
    175175                <?php else : ?>
    176176                        <div class="upload-ui">
    177                                 <h3 class="upload-instructions drop-instructions"><?php _e( 'Drop files anywhere to upload' ); ?></h3>
     177                            <# if ( document.getElementById("media-search-input").value ) { #>
     178                                <h3 class="upload-instructions drop-instructions"><?php _e( 'Media not found' . "<br>" . "Drop files anywhere to upload" ); ?></h3>
     179                                <# } else { #>
     180                                    <h3 class="upload-instructions drop-instructions"><?php _e( 'Library empty' . "<br>" . 'Drop files anywhere to upload' ); ?></h3>
     181                                <# } #>
    178182                                <a href="#" class="browser button button-hero"><?php _e( 'Select Files' ); ?></a>
    179183                        </div>
    180184