Ticket #7643: hotkeys-shift-u.diff
| File hotkeys-shift-u.diff, 1.9 KB (added by nbachiyski, 5 years ago) |
|---|
-
wp-includes/script-loader.php
155 155 'good' => __('Medium'), 156 156 'strong' => __('Strong') 157 157 ) ); 158 $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags', 'columns', 'settings-box'), '2008101 4' );158 $scripts->add( 'admin-comments', '/wp-admin/js/edit-comments.js', array('wp-lists', 'jquery-ui-resizable', 'quicktags', 'columns', 'settings-box'), '20081016' ); 159 159 $scripts->localize( 'admin-comments', 'adminCommentsL10n', array( 160 160 'pending' => __('%i% pending'), // must look like: "# blah blah" 161 161 'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']), … … 435 435 add_filter( 'print_scripts_array', 'wp_prototype_before_jquery' ); 436 436 437 437 add_action( 'wp_default_styles', 'wp_default_styles' ); 438 add_filter( 'style_loader_src', 'wp_style_loader_src', 10, 2 ); 439 No newline at end of file 438 add_filter( 'style_loader_src', 'wp_style_loader_src', 10, 2 ); -
wp-admin/js/edit-comments.js
320 320 }; 321 321 $.table_hotkeys($('table.widefat'),['a', 'u', 's', 'd', 'r', ['e', edit_comment], 322 322 ['shift+a', make_bulk('approve')], ['shift+s', make_bulk('markspam')], 323 ['shift+d', make_bulk('delete')], ['shift+x', toggle_all]], 323 ['shift+d', make_bulk('delete')], ['shift+x', toggle_all], 324 ['shift+u', make_bulk('unapprove')]], 324 325 {highlight_first: adminCommentsL10n.hotkeys_highlight_first, highlight_last: adminCommentsL10n.hotkeys_highlight_last, 325 326 prev_page_link_cb: make_hotkeys_redirect('prev'), next_page_link_cb: make_hotkeys_redirect('next')} 326 327 );