diff --git wp-admin/admin-ajax.php wp-admin/admin-ajax.php
index cd48d43..f387036 100644
|
|
case 'get-comments' : |
598 | 598 | |
599 | 599 | set_current_screen( 'edit-comments' ); |
600 | 600 | |
601 | | $wp_list_table = get_list_table('WP_Post_Comments_List_Table'); |
| 601 | $wp_list_table = _get_list_table('WP_Post_Comments_List_Table'); |
602 | 602 | |
603 | 603 | if ( !current_user_can( 'edit_post', $post_id ) ) |
604 | 604 | die('-1'); |
… |
… |
case 'replyto-comment' : |
675 | 675 | _wp_dashboard_recent_comments_row( $comment ); |
676 | 676 | } else { |
677 | 677 | if ( 'single' == $_REQUEST['mode'] ) { |
678 | | $wp_list_table = get_list_table('WP_Post_Comments_List_Table'); |
| 678 | $wp_list_table = _get_list_table('WP_Post_Comments_List_Table'); |
679 | 679 | } else { |
680 | | $wp_list_table = get_list_table('WP_Comments_List_Table'); |
| 680 | $wp_list_table = _get_list_table('WP_Comments_List_Table'); |
681 | 681 | } |
682 | 682 | $wp_list_table->single_row( $comment ); |
683 | 683 | } |
… |
… |
case 'edit-comment' : |
713 | 713 | $comments_status = isset($_POST['comments_listing']) ? $_POST['comments_listing'] : ''; |
714 | 714 | |
715 | 715 | $checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0; |
716 | | $wp_list_table = get_list_table( $checkbox ? 'WP_Comments_List_Table' : 'WP_Post_Comments_List_Table' ); |
| 716 | $wp_list_table = _get_list_table( $checkbox ? 'WP_Comments_List_Table' : 'WP_Post_Comments_List_Table' ); |
717 | 717 | |
718 | 718 | ob_start(); |
719 | 719 | $wp_list_table->single_row( get_comment( $comment_id ) ); |
diff --git wp-admin/js/edit-comments.dev.js wp-admin/js/edit-comments.dev.js
index 00ebe6b..5ca2fb6 100644
|
|
setCommentsList = function() { |
211 | 211 | |
212 | 212 | theList.get(0).wpList.add( theExtraList.children(':eq(0)').remove().clone() ); |
213 | 213 | |
214 | | refillTheExtraList(); |
| 214 | // refillTheExtraList(); |
215 | 215 | }; |
216 | 216 | |
217 | | var refillTheExtraList = function(ev) { |
| 217 | /* var refillTheExtraList = function(ev) { |
218 | 218 | var args = $.query.get(), total_pages = listTable.get_total_pages(), per_page = $('input[name=_per_page]', '#comments-form').val(); |
219 | 219 | |
220 | 220 | if (args.paged > total_pages) { |
… |
… |
setCommentsList = function() { |
236 | 236 | listTable.fetch_list(args, function(response) { |
237 | 237 | theExtraList.get(0).wpList.add( response.rows ); |
238 | 238 | }); |
239 | | }; |
| 239 | }; */ |
240 | 240 | |
241 | 241 | theExtraList = $('#the-extra-comment-list').wpList( { alt: '', delColor: 'none', addColor: 'none' } ); |
242 | 242 | theList = $('#the-comment-list').wpList( { alt: '', delBefore: delBefore, dimAfter: dimAfter, delAfter: delAfter, addColor: 'none' } ) |
… |
… |
setCommentsList = function() { |
246 | 246 | if ( s.target.className.indexOf(':trash=1') != -1 || s.target.className.indexOf(':spam=1') != -1 ) |
247 | 247 | $('#undo-' + id).fadeIn(300, function(){ $(this).show() }); |
248 | 248 | }); |
249 | | $(listTable).bind('changePage', refillTheExtraList); |
| 249 | // $(listTable).bind('changePage', refillTheExtraList); |
250 | 250 | }; |
251 | 251 | |
252 | 252 | commentReply = { |
… |
… |
commentReply = { |
278 | 278 | |
279 | 279 | this.comments_listing = $('#comments-form > input[name="comment_status"]').val() || ''; |
280 | 280 | |
281 | | $(listTable).bind('beforeChangePage', function(){ |
| 281 | /* $(listTable).bind('beforeChangePage', function(){ |
282 | 282 | commentReply.close(); |
283 | | }); |
| 283 | }); */ |
284 | 284 | }, |
285 | 285 | |
286 | 286 | addEvents : function(r) { |
… |
… |
commentReply = { |
462 | 462 | .animate( { 'backgroundColor':'#CCEEBB' }, 600 ) |
463 | 463 | .animate( { 'backgroundColor': bg }, 600 ); |
464 | 464 | |
465 | | $.fn.wpList.process($(id)); |
| 465 | // $.fn.wpList.process($(id)); |
466 | 466 | }, |
467 | 467 | |
468 | 468 | error : function(r) { |
diff --git wp-admin/js/theme.dev.js wp-admin/js/theme.dev.js
index 06f550f..c575429 100644
|
|
var ThemeViewer; |
24 | 24 | $( '#filter-click' ).text( text + ' (' + count + ')' ); |
25 | 25 | }); |
26 | 26 | |
27 | | $('#filter-box :submit').unbind( 'click' ).click(function() { |
| 27 | /* $('#filter-box :submit').unbind( 'click' ).click(function() { |
28 | 28 | var features = []; |
29 | 29 | $('#filter-box :checked').each(function() { |
30 | 30 | features.push($(this).val()); |
… |
… |
var ThemeViewer; |
37 | 37 | }); |
38 | 38 | |
39 | 39 | return false; |
40 | | }); |
| 40 | }); */ |
41 | 41 | } |
42 | 42 | |
43 | 43 | // These are the functions we expose |
diff --git wp-includes/script-loader.php wp-includes/script-loader.php
index 9253270..88e90e5 100644
|
|
function wp_default_scripts( &$scripts ) { |
299 | 299 | $scripts->add( 'admin-custom-fields', "/wp-admin/js/custom-fields$suffix.js", array('wp-lists'), '20090106' ); |
300 | 300 | $scripts->add_data( 'admin-custom-fields', 'group', 1 ); |
301 | 301 | |
302 | | $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'list-table', 'jquery-ui-resizable', 'quicktags'), '20101223' ); |
| 302 | $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'jquery-ui-resizable', 'quicktags'), '20101223' ); |
303 | 303 | $scripts->add_data( 'admin-comments', 'group', 1 ); |
304 | 304 | $scripts->localize( 'admin-comments', 'adminCommentsL10n', array( |
305 | 305 | 'hotkeys_highlight_first' => isset($_GET['hotkeys_highlight_first']), |
… |
… |
function wp_default_scripts( &$scripts ) { |
368 | 368 | 'l10n_print_after' => 'try{convertEntities(wordCountL10n);}catch(e){};' |
369 | 369 | )); |
370 | 370 | |
371 | | $scripts->add( 'theme', "/wp-admin/js/theme$suffix.js", array( 'thickbox', 'list-table' ), '20101123' ); |
| 371 | $scripts->add( 'theme', "/wp-admin/js/theme$suffix.js", array( 'thickbox' ), '20101123' ); |
372 | 372 | $scripts->add_data( 'theme', 'group', 1 ); |
373 | 373 | |
374 | 374 | $scripts->add( 'theme-preview', "/wp-admin/js/theme-preview$suffix.js", array( 'thickbox', 'jquery' ), '20100407' ); |