[wp-trac] [WordPress Trac] #39649: $doaction variable doesn't follow the naming conventions in edit-comments.php:98

WordPress Trac noreply at wordpress.org
Fri Jan 20 10:48:23 UTC 2017


#39649: $doaction variable doesn't follow the naming conventions in edit-
comments.php:98
-----------------------------+-----------------------------
 Reporter:  xayer            |      Owner:
     Type:  enhancement      |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Quick/Bulk Edit  |    Version:  4.7
 Severity:  normal           |   Keywords:
  Focuses:                   |
-----------------------------+-----------------------------
 Hi, on line edit-comments.php:98
 (https://core.trac.wordpress.org/browser/tags/4.7/src/wp-admin/edit-
 comments.php#L98), there's a variable that doesn't follow the guidelines.
 According to the Naming Conventions
 (https://make.wordpress.org/core/handbook/best-practices/coding-
 standards/php/#naming-conventions) it should be '''$do_action'''.

 {{{#!php
 <?php
 $redirect_to = apply_filters( 'handle_bulk_actions-' .
 get_current_screen()->id, $redirect_to, $do_action, $comment_ids ); ?>
 }}}


 Even the documentation doesn't follow the guidelines on:
 [https://developer.wordpress.org/reference/hooks/handle_bulk_actions-
 get_current_screen-id/()]

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


More information about the wp-trac mailing list