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:
Andrew Ozz
2008-08-30 07:16:16 +00:00
parent c6f94a0dd4
commit 8dfe80eefb
5 changed files with 12 additions and 4 deletions
+3 -1
View File
@@ -66,8 +66,10 @@ $query_str = "post_type=page&orderby=menu_order title&what_to_show=posts$post_st
$query_str = apply_filters('manage_pages_query', $query_str);
wp($query_str);
if ( is_singular() )
if ( is_singular() ) {
wp_enqueue_script( 'admin-comments' );
wp_enqueue_script( 'jquery-table-hotkeys' );
}
require_once('admin-header.php');