[wp-trac] [WordPress Trac] #57323: get_settings_errors() inline docs return should reflect the array of arrays

WordPress Trac noreply at wordpress.org
Tue Dec 13 15:51:41 UTC 2022


#57323: get_settings_errors() inline docs return should reflect the array of arrays
--------------------------------+-----------------------------
 Reporter:  mcaskill            |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Options, Meta APIs  |    Version:  6.1.1
 Severity:  normal              |   Keywords:  has-patch
  Focuses:  docs                |
--------------------------------+-----------------------------
 The function returns an array of setting error arrays but the inline doc
 suggests it returns only a single setting error array. This causes
 problems with static analysis tools and can be misinterpreted by
 developers.

 This issue is present since 5.6:
 https://core.trac.wordpress.org/changeset/48760

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


More information about the wp-trac mailing list