[wp-trac] [WordPress Trac] #42786: get_settings_errors() inline docs return should reflect the array in detail

WordPress Trac noreply at wordpress.org
Wed Dec 20 15:40:34 UTC 2017


#42786: get_settings_errors() inline docs return should reflect the array in detail
----------------------------+------------------------------
 Reporter:  webdevmattcrom  |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  General         |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:  docs
----------------------------+------------------------------
Changes (by stevenlinx):

 * keywords:   => has-patch


Comment:

 Agreed to clarify the inline doc; however, we should use the same
 descriptions as the inline doc of add_settings_error().

 The function handles the same "@global array $wp_settings_errors"

 The inline doc description for $wp_settings_errors in both
 add_settings_error() and get_settings_errors() is also the same.

 line in the code:
 https://core.trac.wordpress.org/browser/tags/4.9/src/wp-
 admin/includes/template.php#L1384

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42786#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list