[wp-trac] [WordPress Trac] #28672: add_settings_field & co don't return values
WordPress Trac
noreply at wordpress.org
Sun Jun 29 09:49:57 UTC 2014
#28672: add_settings_field & co don't return values
--------------------------------+-----------------------------
Reporter: TJNowell | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Options, Meta APIs | Version: trunk
Severity: normal | Keywords:
Focuses: administration |
--------------------------------+-----------------------------
When working with the current settings API it's easy to muddle up the
arguments or miss something out.
When this happens, there are no fields on the frontend, but aside from
that, there is no error, no warning, or indication of why the fields
aren't showing.
Currently the function `add_settings_field` and similar functions don't
return a false or error value if they've been misused, e.g. adding a
setting field to a section that doesn't exist. If it returned a `WP_Error`
saying so, it would be a lot easier to debug the API
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28672>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list