undismiss_core_update() –

You appear to be a bot. Output may be restricted

Description

Undismisses core update.

Usage

$bool = undismiss_core_update( $version, $locale );

Parameters

$version
( string ) required
$locale
( string ) required

Returns

bool

Source

File name: wordpress/wp-admin/includes/update.php
Lines:

1 to 11 of 11
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 );
}
 

 View on GitHub View on Trac