[wp-trac] [WordPress Trac] #28672: add_settings_field & co don't return values
WordPress Trac
noreply at wordpress.org
Wed Oct 29 17:54:12 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 GunGeekATX):
I stand corrected. It looks like this would work in
add_settings_section()
{{{
global $_registered_pages;
if ( !isset( $_registered_pages[$page] ) )
// return wp_error here
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28672#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list