[wp-trac] [WordPress Trac] #28672: add_settings_field & co don't return values

WordPress Trac noreply at wordpress.org
Mon Nov 10 16:37:17 UTC 2014


#28672: add_settings_field & co don't return values
---------------------------------------------+-----------------------------
 Reporter:  TJNowell                         |       Owner:
     Type:  enhancement                      |      Status:  new
 Priority:  normal                           |   Milestone:  Awaiting
Component:  Options, Meta APIs               |  Review
 Severity:  normal                           |     Version:  2.7
 Keywords:  needs-unit-tests good-first-bug  |  Resolution:
                                             |     Focuses:  administration
---------------------------------------------+-----------------------------

Comment (by mattshaw):

 Replying to [comment:10 GunGeekATX]:
 > Yeah, my fix should only be returning a true or a WP_Error at the end of
 the function and not exiting sooner if it does not find the page.  That
 will prevent it from breaking any existing plugins.

 My mistake, sorry for the confusion!

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


More information about the wp-trac mailing list