[wp-trac] [WordPress Trac] #40636: Can you have duplicate hook names?

WordPress Trac noreply at wordpress.org
Tue May 2 16:05:09 UTC 2017


#40636: Can you have duplicate hook names?
--------------------------+-----------------------------
 Reporter:  chunkford     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  4.7.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 do_action( 'quick_edit_custom_box' ... can be found in the below files:

 class-wp-posts-list-table.php - Line 1743
 class-wp-terms-list-table.php - Line 616

 I'm querying it as one has 2 (class-wp-posts-list-table.php) inputs while
 the other has 3 (class-wp-terms-list-table.php)

 This fills the debug.log with errors when you want to use the hook in in
 class-wp-terms-list-table.php as the class-wp-posts-list-table.php hook
 produces Missing argument and Undefined variable errors.

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


More information about the wp-trac mailing list