Changeset 9217
- Timestamp:
- 10/16/2008 10:23:32 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 11 edited
-
wp-admin/edit-comments.php (modified) (1 diff)
-
wp-admin/edit-pages.php (modified) (1 diff)
-
wp-admin/edit.php (modified) (1 diff)
-
wp-admin/includes/comment.php (modified) (1 diff)
-
wp-admin/includes/user.php (modified) (1 diff)
-
wp-admin/js/edit-comments.js (modified) (1 diff)
-
wp-admin/post.php (modified) (1 diff)
-
wp-admin/upload.php (modified) (1 diff)
-
wp-admin/user-edit.php (modified) (1 diff)
-
wp-includes/registration.php (modified) (2 diffs)
-
wp-includes/script-loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-comments.php
r9215 r9217 13 13 wp_enqueue_script( 'admin-comments' ); 14 14 wp_enqueue_script( 'admin-forms' ); 15 wp_enqueue_script( 'jquery-table-hotkeys');15 enqueue_comment_hotkeys_js(); 16 16 17 17 if ( ( isset( $_POST['delete_all_spam'] ) || isset( $_POST['delete_all_spam2'] ) ) && !empty( $_POST['pagegen_timestamp'] ) ) { -
trunk/wp-admin/edit-pages.php
r9122 r9217 96 96 if ( is_singular() ) { 97 97 wp_enqueue_script( 'admin-comments' ); 98 wp_enqueue_script( 'jquery-table-hotkeys');98 enqueue_comment_hotkeys_js(); 99 99 } 100 100 -
trunk/wp-admin/edit.php
r9122 r9217 78 78 if ( 1 == count($posts) && is_singular() ) { 79 79 wp_enqueue_script( 'admin-comments' ); 80 wp_enqueue_script( 'jquery-table-hotkeys');80 enqueue_comment_hotkeys_js(); 81 81 } 82 82 -
trunk/wp-admin/includes/comment.php
r9119 r9217 152 152 } 153 153 154 function enqueue_comment_hotkeys_js() { 155 if ( 'true' == get_user_option( 'comment_shortcuts' ) ) 156 wp_enqueue_script( 'jquery-table-hotkeys' ); 157 } 158 154 159 if ( is_admin() && ('edit-comments.php' == $pagenow || 'edit.php' == $pagenow) ) { 155 160 if ( get_option('show_avatars') ) -
trunk/wp-admin/includes/user.php
r9072 r9217 99 99 $user->rich_editing = 'true'; 100 100 101 $user->comment_shortcuts = isset( $_POST['comment_shortcuts'] )? $_POST['comment_shortcuts'] : ''; 102 101 103 $user->use_ssl = 0; 102 104 if ( !empty($_POST['use_ssl']) ) -
trunk/wp-admin/js/edit-comments.js
r9162 r9217 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')} -
trunk/wp-admin/post.php
r9103 r9217 141 141 wp_enqueue_script('word-count'); 142 142 wp_enqueue_script( 'admin-comments' ); 143 wp_enqueue_script( 'jquery-table-hotkeys');143 enqueue_comment_hotkeys_js(); 144 144 145 145 if ( current_user_can('edit_post', $post_ID) ) { -
trunk/wp-admin/upload.php
r9122 r9217 141 141 if ( is_singular() ) { 142 142 wp_enqueue_script( 'admin-comments' ); 143 wp_enqueue_script( 'jquery-table-hotkeys');143 enqueue_comment_hotkeys_js(); 144 144 } 145 145 -
trunk/wp-admin/user-edit.php
r9191 r9217 220 220 <?php endforeach; ?> 221 221 </fieldset></td> 222 </tr> 223 <tr> 224 <th scope="row"><?php _e( 'Keyboard Shortcuts' ); ?></th> 225 <td><label for="comment_shortcuts"><input type="checkbox" name="comment_shortcuts" id="comment_shortcuts" value="true" <?php checked('true', $profileuser->comment_shortcuts); ?> /> <?php _e( 'Enable keyboard shortcuts for comment moderation. <a href="http://codex.wordpress.org/Keyboard_Shortcuts">More information</a>' ); ?></label></td> 222 226 </tr> 223 227 <?php -
trunk/wp-includes/registration.php
r8969 r9217 155 155 $rich_editing = 'true'; 156 156 157 if ( empty($comment_shortcuts) ) 158 $comment_shortcuts = 'false'; 159 157 160 if ( empty($admin_color) ) 158 161 $admin_color = 'fresh'; … … 184 187 update_usermeta( $user_id, 'yim', $yim ); 185 188 update_usermeta( $user_id, 'rich_editing', $rich_editing); 189 update_usermeta( $user_id, 'comment_shortcuts', $comment_shortcuts); 186 190 update_usermeta( $user_id, 'admin_color', $admin_color); 187 191 update_usermeta( $user_id, 'use_ssl', $use_ssl); -
trunk/wp-includes/script-loader.php
r9184 r9217 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"
Note: See TracChangeset
for help on using the changeset viewer.