undismiss_core_update()WP 2.7.0

Undismisses core update.

No Hooks.

Return

true|false.

Usage

undismiss_core_update( $version, $locale );
$version(string) (required)
-
$locale(string) (required)
-

Changelog

Since 2.7.0 Introduced.

undismiss_core_update() code WP 6.6.2

function undismiss_core_update( $version, $locale ) {
	$dismissed = get_site_option( 'dismissed_update_core' );
	$key       = $version . '|' . $locale;

	if ( ! isset( $dismissed[ $key ] ) ) {
		return false;
	}

	unset( $dismissed[ $key ] );

	return update_site_option( 'dismissed_update_core', $dismissed );
}