undismiss_core_update( string $version, string $locale )

Undismisses core update.


Parameters Parameters

$version

(string) (Required)

$locale

(string) (Required)


Top ↑

Return Return

(bool)


Top ↑

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


Top ↑

Changelog Changelog

Changelog
Version Description
2.7.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.