From 6c6638c163dfd69e6b585462cbb6be9f15452a40 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Sat, 13 Jun 2015 15:13:47 +0000 Subject: [PATCH] In `WP_Posts_List_Table`, move the `` markup out of `->column_cb()`. See #29881, [32740]. git-svn-id: https://develop.svn.wordpress.org/trunk@32752 602fd350-edb4-49c9-b593-d223f7449a82 --- .../includes/class-wp-posts-list-table.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/wp-admin/includes/class-wp-posts-list-table.php b/src/wp-admin/includes/class-wp-posts-list-table.php index 7dfe27ff5f..6897ce6bde 100644 --- a/src/wp-admin/includes/class-wp-posts-list-table.php +++ b/src/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 "";