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:
Sergey Biryukov
2019-08-16 00:38:42 +00:00
parent e961891e1b
commit f3241f4883
6 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -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();