A WordPress-centric search engine for devs and theme authors



undismiss_core_update ›

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

No description yet.



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