CoreFiles by mySites.guru
options-head.php23 lines, 614 bytes, from wordpress-7.1.4.zip
Raw History Compare with 7.1.3
md5
db8a76a210be12048398bfdd97a56449
sha1
d89547d533f348841ab799d6ddb3f2ed798212a3
sha256
7748f709960033b4ffe618dcc0300c908076f48799c3c41b3f48acfdd72c576f
<?php
/**
 * WordPress Options Header.
 *
 * Displays updated message, if updated variable is part of the URL query.
 *
 * @package WordPress
 * @subpackage Administration
 */

// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

$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 19 releases, WordPress 7.1-beta1 to 7.2-beta5. See them all, or every version of this file.