[wp-trac] [WordPress Trac] #55977: Fix doc block for do_action

WordPress Trac noreply at wordpress.org
Tue Jun 14 14:23:51 UTC 2022


#55977: Fix doc block for do_action
--------------------------+-----------------------------
 Reporter:  leogermani    |      Owner:  leogermani
     Type:  defect (bug)  |     Status:  assigned
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  6.0
 Severity:  trivial       |   Keywords:  needs-patch
  Focuses:  docs          |
--------------------------+-----------------------------
 The code example in the do_action function code block assigns the return
 of the `do_action` call to a variable, even though `do_action` does not
 return anything.

 Code: https://core.trac.wordpress.org/browser/tags/6.0/src/wp-
 includes/plugin.php#L427

 As reported here:
 https://developer.wordpress.org/reference/functions/do_action/#comment-5351

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


More information about the wp-trac mailing list