[wp-trac] [WordPress Trac] #39888: Right after delete author - PHP notices on '%s is currently editing'

WordPress Trac noreply at wordpress.org
Thu Feb 16 11:14:13 UTC 2017


#39888: Right after delete author - PHP notices on '%s is currently editing'
--------------------------+-----------------------------
 Reporter:  esemlabel     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Users         |    Version:  4.7.2
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 After deleting autor, who has just edited some post, the error will occur
 in the next few minutes in posts list table:

 ''PHP Notice:  Trying to get property of non-object in \wp-admin\includes
 \class-wp-posts-list-table.php on line 910''

 {{{#!php
 $locked_text = esc_html( sprintf( __( '%s is currently editing' ),
 $lock_holder->display_name ) );
 }}}

 Need some fix to immediately remove edit_lock meta with deleted author id
 from posts.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39888>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list