Make sure we're on the media grid page before calling wp.media().

props azaozz.
fixes #29520 for trunk.

git-svn-id: https://develop.svn.wordpress.org/trunk@29725 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2014-09-09 10:13:33 +00:00
parent 00bfc5bc34
commit 9c48d0f495
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -57,7 +57,7 @@ if ( 'grid' === $mode ) {
require_once( ABSPATH . 'wp-admin/admin-header.php' );
?>
<div class="wrap">
<div class="wrap" id="wp-media-grid">
<h2>
<?php
echo esc_html( $title );