[wp-trac] [WordPress Trac] #44951: Dont assign a variable inside an If statement in get_the_modified_author()

WordPress Trac noreply at wordpress.org
Sat Sep 15 18:14:23 UTC 2018


#44951: Dont assign a variable inside an If statement in get_the_modified_author()
------------------------------+-----------------------------
 Reporter:  promz             |      Owner:  (none)
     Type:  enhancement       |     Status:  assigned
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  General           |    Version:  trunk
 Severity:  normal            |   Keywords:  needs-patch
  Focuses:  coding-standards  |
------------------------------+-----------------------------
 In the wp-admin/author-template.php > get_the_modified_author() function,
 there is a $last_id variable being declared inside an if statement. It is
 not a good coding practice. One might think that there is a mistake of
 comparison operator.

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


More information about the wp-trac mailing list