CoreFiles by mySites.guru
options-head.php18 lines, 548 bytes, from wordpress-6.6.2.zip
Raw History Compare with 6.6.1
md5
7a49982e091d1e88d08c286a98536ed7
sha1
e76fe0209d56dd8edf94b5fe1551847bfd662e4b
sha256
4cc7720981009e10ac8418634804f560cc73931362db1a07848aca3d6fae09d5
<?php
/**
 * WordPress Options Header.
 *
 * Displays updated message, if updated variable is part of the URL query.
 *
 * @package WordPress
 * @subpackage Administration
 */

$action = ! empty( $_REQUEST['action'] ) ? sanitize_text_field( $_REQUEST['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.' ), 'success' );
}

settings_errors();

The same content is in 46 releases, WordPress 6.6-beta1 to 6.7.11. See them all, or every version of this file.