[wp-trac] [WordPress Trac] #61944: Wrong argument type in documentation for hook new_user_email_content

WordPress Trac noreply at wordpress.org
Wed Aug 28 06:37:57 UTC 2024


#61944: Wrong argument type in documentation for hook new_user_email_content
--------------------------+-----------------------------
 Reporter:  roytanck      |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Users         |    Version:
 Severity:  normal        |   Keywords:
  Focuses:  docs          |
--------------------------+-----------------------------
 In wp-includes/user.php, the docs for the `new_user_email_content` hook
 specify that both arguments are of type `string`. The second argument,
 `new_user_email` is actually an array, containing the new address as well
 as a hash. It  is declared on line 3726 in the same file.

 https://core.trac.wordpress.org/browser/tags/6.6/src/wp-
 includes/user.php#L3774

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


More information about the wp-trac mailing list