do_dismiss_core_update() – Dismiss a core update.

You appear to be a bot. Output may be restricted

Description

Dismiss a core update.

Usage

do_dismiss_core_update();

Parameters

Returns

void

Source

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

1 to 11 of 11
function do_dismiss_core_update() {
  $version = isset( $_POST['version'] ) ? $_POST['version'] : false;
  $locale  = isset( $_POST['locale'] ) ? $_POST['locale'] : 'en_US';
  $update  = find_core_update( $version, $locale );
  if ( ! $update ) {
    return;
  }
  dismiss_core_update( $update );
  wp_redirect( wp_nonce_url( 'update-core.php?action=upgrade-core', 'upgrade-core' ) );
  exit;
}
 

 View on GitHub View on Trac