wpseek.com
A WordPress-centric search engine for devs and theme authors



do_dismiss_core_update › WordPress Function

Since2.7.0
Deprecatedn/a
do_dismiss_core_update ( No parameters )
Defined at:
Codex:

Dismiss a core update.



Source

function do_dismiss_core_update() {
	$version = isset( $_POST['version'] ) ? $_POST['version'] : false;
	$locale  = isset( $_POST['locale'] ) ? $_POST['locale'] : 'en_US';
	$update  = find_core_update( $version, $locale );
	if ( ! $update ) {
		return;
	}
	dismiss_core_update( $update );
	wp_redirect( wp_nonce_url( 'update-core.php?action=upgrade-core', 'upgrade-core' ) );
	exit;
}