No-JS fallback for the Media Library grid view. props michalzuber. fixes #28830, see #24716.

git-svn-id: https://develop.svn.wordpress.org/trunk@29175 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Helen Hou-Sandi 2014-07-15 20:44:38 +00:00
parent a9f6a727eb
commit 0db107498a
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@ if ( 'grid' === $mode ) {
} }
?> ?>
</h2> </h2>
<div class="error hide-if-js">
<p><?php _e( 'The grid view for the Media Library requires JavaScript. <a href="upload.php?mode=list">Switch to the list view</a>.' ); ?></p>
</div>
</div> </div>
<?php <?php
include( ABSPATH . 'wp-admin/admin-footer.php' ); include( ABSPATH . 'wp-admin/admin-footer.php' );