From dcf23c5e2a7c81ae1bfa61f859d84a72cd7474df Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 16 Oct 2015 18:23:27 +0000 Subject: [PATCH] In `WP_Media_List_Table`, rename `$pending_count` to `$comment_pending_count` and mark it as protected, for consistency with `WP_Posts_List_Table`. See #11381. Built from https://develop.svn.wordpress.org/trunk@35222 git-svn-id: http://core.svn.wordpress.org/trunk@35188 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-media-list-table.php | 12 ++++++------ wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/wp-admin/includes/class-wp-media-list-table.php b/wp-admin/includes/class-wp-media-list-table.php index 53110cb459..0897d3fcb3 100644 --- a/wp-admin/includes/class-wp-media-list-table.php +++ b/wp-admin/includes/class-wp-media-list-table.php @@ -9,13 +9,13 @@ */ class WP_Media_List_Table extends WP_List_Table { /** - * Store the pending comment count for each post + * Holds the number of pending comments for each post. * - * @access public * @since 4.4.0 * @var array + * @access protected */ - public $pending_count = array(); + protected $comment_pending_count = array(); private $detached; @@ -505,8 +505,8 @@ class WP_Media_List_Table extends WP_List_Table { public function column_comments( $post ) { echo '
'; - if ( isset( $this->pending_count[ $post->ID ] ) ) { - $pending_comments = $this->pending_count[ $post->ID ]; + if ( isset( $this->comment_pending_count[ $post->ID ] ) ) { + $pending_comments = $this->comment_pending_count[ $post->ID ]; } else { $pending_comments = get_pending_comments_num( $post->ID ); } @@ -582,7 +582,7 @@ class WP_Media_List_Table extends WP_List_Table { $post_ids = wp_list_pluck( $wp_query->posts, 'ID' ); reset( $wp_query->posts ); - $this->pending_count = get_pending_comments_num( $post_ids ); + $this->comment_pending_count = get_pending_comments_num( $post_ids ); add_filter( 'the_title','esc_html' ); diff --git a/wp-includes/version.php b/wp-includes/version.php index d21045d131..06f1c12b98 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-35221'; +$wp_version = '4.4-alpha-35222'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.