Settings API notices/errors can get lost by checking for errors for a specific setting
|Reported by:||kobenland||Owned by:||ryan|
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 //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.
Change History (7)
- Owner set to ryan
- Resolution set to fixed
- Status changed from new to closed
- Keywords dev-feedback removed
- Resolution fixed deleted
- Status changed from closed to reopened