upgrade_270()
Execute changes made in WordPress 2.7.
No Hooks.
Return
null
. Nothing (null).
Usage
upgrade_270();
Notes
- Global. Int. $wp_current_db_version The old (current) database version.
- Global. wpdb. $wpdb WordPress database abstraction object.
Changelog
Since 2.7.0 | Introduced. |
upgrade_270() upgrade 270 code WP 6.8
function upgrade_270() { global $wp_current_db_version, $wpdb; if ( $wp_current_db_version < 8980 ) { populate_roles_270(); } // Update post_date for unpublished posts with empty timestamp. if ( $wp_current_db_version < 8921 ) { $wpdb->query( "UPDATE $wpdb->posts SET post_date = post_modified WHERE post_date = '0000-00-00 00:00:00'" ); } }