upgrade_280()
Execute changes made in WordPress 2.8.
No Hooks.
Return
null
. Nothing (null).
Usage
upgrade_280();
Notes
- Global. Int. $wp_current_db_version The old (current) database version.
- Global. wpdb. $wpdb WordPress database abstraction object.
Changelog
Since 2.8.0 | Introduced. |
upgrade_280() upgrade 280 code WP 6.5.2
function upgrade_280() { global $wp_current_db_version, $wpdb; if ( $wp_current_db_version < 10360 ) { populate_roles_280(); } if ( is_multisite() ) { $start = 0; while ( $rows = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options ORDER BY option_id LIMIT $start, 20" ) ) { foreach ( $rows as $row ) { $value = maybe_unserialize( $row->option_value ); if ( $value === $row->option_value ) { $value = stripslashes( $value ); } if ( $value !== $row->option_value ) { update_option( $row->option_name, $value ); } } $start += 20; } clean_blog_cache( get_current_blog_id() ); } }