WordPress at Your Fingertips
function is not described

do_dismiss_core_update() WP 2.7.0

Dismiss a core update.

No Hooks.

Return

null. Nothing.

Usage

do_dismiss_core_update();

Changelog

Since 2.7.0 Introduced.

Code of do_dismiss_core_update() WP 5.8.2

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;
}