[wp-trac] [WordPress Trac] #20833: Settings API notices/errors can get lost by checking for errors for a specific setting
WordPress Trac
wp-trac at lists.automattic.com
Mon Jun 4 17:09:00 UTC 2012
#20833: Settings API notices/errors can get lost by checking for errors for a
specific setting
----------------------------+------------------------------------
Reporter: kobenland | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 2.9
Severity: normal | Keywords: has-patch dev-feedback
----------------------------+------------------------------------
When using the Settings API, setting errors are saved in a transient to be
available after redirection.
After the redirect, when a plugin now checks for errors:
{{{
#!php
<?php
//by checking
get_settings_errors( 'settings-name' );
// or displaying
settings_errors( 'settings-name' );
}}}
any existing errors retrieved from the transient gets lost, because they
share the same variable and every error that does '''not''' match the
requested setting gets unset.
This was introduced in [13177] (#11474).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20833>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list