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:
@@ -302,7 +302,7 @@ if ( 'update' == $action ) {
|
||||
*/
|
||||
// If no settings errors were registered add a general 'updated' message.
|
||||
if ( ! count( get_settings_errors() ) ) {
|
||||
add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'updated' );
|
||||
add_settings_error( 'general', 'settings_updated', __( 'Settings saved.' ), 'success' );
|
||||
}
|
||||
set_transient( 'settings_errors', get_settings_errors(), 30 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user