mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Add hotkeys.js to all pages that list comments and prevent error if not loaded, see #7643
git-svn-id: https://develop.svn.wordpress.org/trunk@8780 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -51,8 +51,10 @@ wp_enqueue_script( 'admin-forms' );
|
||||
|
||||
list($post_mime_types, $avail_post_mime_types) = wp_edit_attachments_query();
|
||||
|
||||
if ( is_singular() )
|
||||
if ( is_singular() ) {
|
||||
wp_enqueue_script( 'admin-comments' );
|
||||
wp_enqueue_script( 'jquery-table-hotkeys' );
|
||||
}
|
||||
|
||||
require_once('admin-header.php');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user