mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Administration: Replace legacy updated message type in add_settings_error() calls with success.
See #44640. git-svn-id: https://develop.svn.wordpress.org/trunk@45818 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -12,7 +12,7 @@ wp_reset_vars( array( 'action' ) );
|
||||
|
||||
if ( isset( $_GET['updated'] ) && isset( $_GET['page'] ) ) {
|
||||
// For back-compat with plugins that don't use the Settings API and just set updated=1 in the redirect.
|
||||
add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'updated' );
|
||||
add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'success' );
|
||||
}
|
||||
|
||||
settings_errors();
|
||||
|
||||
Reference in New Issue
Block a user