From b8eb35359033e2dbe63265ba22a98eab0e1e9672 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 13 Jun 2015 15:14:24 +0000 Subject: [PATCH] In `WP_Posts_List_Table`, move the `` markup out of `->column_cb()`. See #29881, [32740]. Built from https://develop.svn.wordpress.org/trunk@32752 git-svn-id: http://core.svn.wordpress.org/trunk@32723 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- .../includes/class-wp-posts-list-table.php | 18 +++++++++--------- wp-includes/version.php | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/wp-admin/includes/class-wp-posts-list-table.php b/wp-admin/includes/class-wp-posts-list-table.php index 7dfe27ff5f..6897ce6bde 100644 --- a/wp-admin/includes/class-wp-posts-list-table.php +++ b/wp-admin/includes/class-wp-posts-list-table.php @@ -682,17 +682,13 @@ class WP_Posts_List_Table extends WP_List_Table { * @param WP_Post $post */ public function column_cb( $post ) { - $can_edit_post = current_user_can( 'edit_post', $post->ID ); - $title = _draft_or_post_title(); - ?> - - - + if ( current_user_can( 'edit_post', $post->ID ) ): ?> +
- - - '; + $this->column_cb( $item ); + + echo ''; } else { echo ""; diff --git a/wp-includes/version.php b/wp-includes/version.php index 0072a61e6d..d031fb820d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.3-alpha-32751'; +$wp_version = '4.3-alpha-32752'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.