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



undismiss_core_update › WordPress Function

Since2.7.0
Deprecatedn/a
undismiss_core_update ( $version, $locale )
Parameters: (2)
  • (string) $version
    Required: Yes
  • (string) $locale
    Required: Yes
Returns:
  • (bool)
Defined at:
Codex:

Undismisses core update.



Source

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