CoreFiles by mySites.guru
options-head.php23 lines, 621 bytes, from wordpress-6.9.zip
Raw History Compare with 6.8.12
md5
63f76d734edbcdba1093fa4ee6c73b35
sha1
b1e4be4fec0a6e840b1c614db9bc1e88ae1122cc
sha256
9a8f14a2e9cf74683d6611ea9c4238b440bb5da128b9ebec9c35f7e0a586f24f
<?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' ) ) {
	die( '-1' );
}

$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 64 releases, WordPress 6.8-beta1 to 7.0.8. See them all, or every version of this file.