Administration: Replace legacy updated message type in add_settings_error() calls with success.

See #44640.
Built from https://develop.svn.wordpress.org/trunk@45818


git-svn-id: http://core.svn.wordpress.org/trunk@45629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2019-08-16 00:39:55 +00:00
parent 3f1186166d
commit be6bbe4b5d
7 changed files with 9 additions and 9 deletions

View File

@@ -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 );