undismiss_core_update

Advertisement

Summery Summery

Undismisses core update.

Syntax Syntax

undismiss_core_update( string $version, string $locale )

Parameters Parameters

$version

(Required)

$locale

(Required)

Return Return

(bool)

Source Source

File: wp-admin/includes/update.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Advertisement

Leave a Reply