After [32740], in WP_Posts_List_Table::single_row() - $lock_holder is checked but unused, so the call to get_userdata() is unnecessary.

See #29881.


git-svn-id: https://develop.svn.wordpress.org/trunk@32742 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor 2015-06-12 20:47:46 +00:00
parent 7fbeffec20
commit 52cfab850f

View File

@ -1016,7 +1016,6 @@ class WP_Posts_List_Table extends WP_List_Table {
$lock_holder = wp_check_post_lock( $post->ID ); $lock_holder = wp_check_post_lock( $post->ID );
if ( $lock_holder ) { if ( $lock_holder ) {
$classes .= ' wp-locked'; $classes .= ' wp-locked';
$lock_holder = get_userdata( $lock_holder );
} }
if ( $post->post_parent ) { if ( $post->post_parent ) {