upgrade_270

Execute changes made in WordPress 2.7.

Description

upgrade_270(); 

Usage

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

Defined (1)

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

/wp-admin/includes/upgrade.php  
  1. function upgrade_270() { 
  2. global $wpdb, $wp_current_db_version; 
  3.  
  4. if ( $wp_current_db_version < 8980 ) 
  5.  
  6. // Update post_date for unpublished posts with empty timestamp 
  7. if ( $wp_current_db_version < 8921 ) 
  8. $wpdb->query( "UPDATE $wpdb->posts SET post_date = post_modified WHERE post_date = '0000-00-00 00:00:00'" );