do_undismiss_core_update

The WordPress Core do undismiss core update function.

Description

do_undismiss_core_update(); 

Usage

  1. if ( !function_exists( 'do_undismiss_core_update' ) ) { 
  2. require_once ABSPATH . '/wp-admin/update-core.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = do_undismiss_core_update(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/update-core.php  
  1. function do_undismiss_core_update() { 
  2. $version = isset( $_POST['version'] )? $_POST['version'] : false; 
  3. $locale = isset( $_POST['locale'] )? $_POST['locale'] : 'en_US'; 
  4. $update = find_core_update( $version, $locale ); 
  5. if ( !$update ) 
  6. return; 
  7. undismiss_core_update( $version, $locale ); 
  8. wp_redirect( wp_nonce_url('update-core.php?action=upgrade-core', 'upgrade-core') ); 
  9. exit;