Skip to content

Commit c4633bb

Browse files
committed
The big renaming of the list-table class files.
See #14579 git-svn-id: https://develop.svn.wordpress.org/trunk@16128 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 78d95aa commit c4633bb

30 files changed

Lines changed: 66 additions & 65 deletions

wp-admin/admin-ajax.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ function _wp_ajax_add_hierarchical_term() {
518518
if ( isset($_POST['screen']) )
519519
set_current_screen($_POST['screen']);
520520

521-
$wp_list_table = get_list_table('WP_Terms_Table');
521+
$wp_list_table = get_list_table('WP_Terms_List_Table');
522522

523523
$level = 0;
524524
if ( is_taxonomy_hierarchical($taxonomy) ) {
@@ -582,7 +582,7 @@ function _wp_ajax_add_hierarchical_term() {
582582
if ( !current_user_can( 'edit_posts' ) )
583583
die('-1');
584584

585-
$wp_list_table = get_list_table('WP_Comments_Table');
585+
$wp_list_table = get_list_table('WP_Comments_List_Table');
586586
$wp_list_table->from_ajax = true;
587587

588588
$wp_list_table->prepare_items();
@@ -611,7 +611,7 @@ function _wp_ajax_add_hierarchical_term() {
611611
if ( !current_user_can( 'edit_post', $post_ID ) )
612612
die('-1');
613613

614-
$wp_list_table = get_list_table('WP_Post_Comments_Table');
614+
$wp_list_table = get_list_table('WP_Post_Comments_List_Table');
615615

616616
$wp_list_table->prepare_items();
617617

@@ -636,7 +636,7 @@ function _wp_ajax_add_hierarchical_term() {
636636
case 'replyto-comment' :
637637
check_ajax_referer( $action, '_ajax_nonce-replyto-comment' );
638638

639-
$wp_list_table = get_list_table('WP_Comments_Table');
639+
$wp_list_table = get_list_table('WP_Comments_List_Table');
640640
$wp_list_table->checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0;
641641

642642
$comment_post_ID = (int) $_POST['comment_post_ID'];
@@ -717,7 +717,7 @@ function _wp_ajax_add_hierarchical_term() {
717717
$comments_status = isset($_POST['comments_listing']) ? $_POST['comments_listing'] : '';
718718

719719
$checkbox = ( isset($_POST['checkbox']) && true == $_POST['checkbox'] ) ? 1 : 0;
720-
$wp_list_table = get_list_table( $checkbox ? 'WP_Comments_Table' : 'WP_Post_Comments_Table' );
720+
$wp_list_table = get_list_table( $checkbox ? 'WP_Comments_List_Table' : 'WP_Post_Comments_List_Table' );
721721

722722
ob_start();
723723
$wp_list_table->single_row( get_comment( $comment_id ) );
@@ -894,7 +894,7 @@ function _wp_ajax_add_hierarchical_term() {
894894
}
895895
$user_object = new WP_User( $user_id );
896896

897-
$wp_list_table = get_list_table('WP_Users_Table');
897+
$wp_list_table = get_list_table('WP_Users_List_Table');
898898

899899
$x = new WP_Ajax_Response( array(
900900
'what' => 'user',
@@ -1193,7 +1193,7 @@ function _wp_ajax_add_hierarchical_term() {
11931193
// update the post
11941194
edit_post();
11951195

1196-
$wp_list_table = get_list_table('WP_Posts_Table');
1196+
$wp_list_table = get_list_table('WP_Posts_List_Table');
11971197

11981198
$mode = $_POST['post_view'];
11991199
$wp_list_table->display_rows( array( get_post( $_POST['post_ID'] ) ) );
@@ -1203,7 +1203,7 @@ function _wp_ajax_add_hierarchical_term() {
12031203
case 'inline-save-tax':
12041204
check_ajax_referer( 'taxinlineeditnonce', '_inline_edit' );
12051205

1206-
$wp_list_table = get_list_table('WP_Terms_Table');
1206+
$wp_list_table = get_list_table('WP_Terms_List_Table');
12071207

12081208
$wp_list_table->check_permissions('edit');
12091209

wp-admin/edit-comments.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/** WordPress Administration Bootstrap */
1010
require_once('./admin.php');
1111

12-
$wp_list_table = get_list_table('WP_Comments_Table');
12+
$wp_list_table = get_list_table('WP_Comments_List_Table');
1313
$wp_list_table->check_permissions();
1414

1515
$doaction = $wp_list_table->current_action();

wp-admin/edit-tags.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/** WordPress Administration Bootstrap */
1010
require_once('./admin.php');
1111

12-
$wp_list_table = get_list_table('WP_Terms_Table');
12+
$wp_list_table = get_list_table('WP_Terms_List_Table');
1313
$wp_list_table->check_permissions();
1414

1515
$title = $tax->labels->name;

wp-admin/edit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
/** WordPress Administration Bootstrap */
1010
require_once( './admin.php' );
1111

12-
$wp_list_table = get_list_table('WP_Posts_Table');
12+
$wp_list_table = get_list_table('WP_Posts_List_Table');
1313
$wp_list_table->check_permissions();
1414

1515
// Back-compat for viewing comments of an entry

wp-admin/includes/list-table-comments.php renamed to wp-admin/includes/class-wp-comments-list-table.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
* @subpackage List_Table
1515
* @since 3.1.0
1616
*/
17-
class WP_Comments_Table extends WP_List_Table {
17+
class WP_Comments_List_Table extends WP_List_Table {
1818

1919
var $checkbox = true;
2020
var $from_ajax = false;
2121

2222
var $pending_count = array();
2323

24-
function WP_Comments_Table() {
24+
function WP_Comments_List_Table() {
2525
global $mode;
2626

2727
$mode = ( empty( $_REQUEST['mode'] ) ) ? 'detail' : $_REQUEST['mode'];
@@ -502,7 +502,7 @@ function column_default( $comment, $column_name ) {
502502
*
503503
* @see WP_Comments_Table
504504
*/
505-
class WP_Post_Comments_Table extends WP_Comments_Table {
505+
class WP_Post_Comments_List_Table extends WP_Comments_List_Table {
506506

507507
function get_columns() {
508508
return array(

wp-admin/includes/list-table-links.php renamed to wp-admin/includes/class-wp-links-list-table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* @subpackage List_Table
77
* @since 3.1.0
88
*/
9-
class WP_Links_Table extends WP_List_Table {
9+
class WP_Links_List_Table extends WP_List_Table {
1010

11-
function WP_Links_Table() {
11+
function WP_Links_List_Table() {
1212
parent::WP_List_Table( array(
1313
'screen' => 'link-manager',
1414
'plural' => 'bookmarks',

wp-admin/includes/list-table-media.php renamed to wp-admin/includes/class-wp-media-list-table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* @subpackage List_Table
77
* @since 3.1.0
88
*/
9-
class WP_Media_Table extends WP_List_Table {
9+
class WP_Media_List_Table extends WP_List_Table {
1010

11-
function WP_Media_Table() {
11+
function WP_Media_List_Table() {
1212
global $detached;
1313

1414
$detached = isset( $_REQUEST['detached'] ) || isset( $_REQUEST['find_detached'] );

wp-admin/includes/list-table-sites.php renamed to wp-admin/includes/class-wp-ms-sites-list-table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* @subpackage List_Table
77
* @since 3.1.0
88
*/
9-
class WP_Sites_Table extends WP_List_Table {
9+
class WP_MS_Sites_List_Table extends WP_List_Table {
1010

11-
function WP_Sites_Table() {
11+
function WP_MS_Sites_List_Table() {
1212
parent::WP_List_Table( array(
1313
'screen' => 'sites-network',
1414
'plural' => 'sites',

wp-admin/includes/list-table-ms-themes.php renamed to wp-admin/includes/class-wp-ms-themes-list-table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* @subpackage List_Table
77
* @since 3.1.0
88
*/
9-
class WP_MS_Themes_Table extends WP_List_Table {
9+
class WP_MS_Themes_List_Table extends WP_List_Table {
1010

11-
function WP_MS_Themes_Table() {
11+
function WP_MS_Themes_List_Table() {
1212
global $status, $page;
1313

1414
$default_status = get_user_option( 'themes_last_view' );

wp-admin/includes/list-table-ms-users.php renamed to wp-admin/includes/class-wp-ms-users-list-table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
* @subpackage List_Table
77
* @since 3.1.0
88
*/
9-
class WP_MS_Users_Table extends WP_List_Table {
9+
class WP_MS_Users_List_Table extends WP_List_Table {
1010

11-
function WP_MS_Users_Table() {
11+
function WP_MS_Users_List_Table() {
1212
parent::WP_List_Table( array(
1313
'screen' => 'users-network',
1414
) );

0 commit comments

Comments
 (0)