Changeset 49572
- Timestamp:
- 11/12/2020 05:53:41 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/upgrade.php
r49193 r49572 875 875 } 876 876 877 if ( $wp_current_db_version < 49572 ) { 878 upgrade_560(); 879 } 880 877 881 maybe_disable_link_manager(); 878 882 … … 2238 2242 2239 2243 /** 2244 * Executes changes made in WordPress 5.6.0. 2245 * 2246 * @ignore 2247 * @since 5.6.0 2248 */ 2249 function upgrade_560() { 2250 global $wpdb; 2251 2252 // Clean up the `post_category` column removed from schema in version 2.8.0. 2253 // Its presence may conflict with WP_Post::__get(). 2254 $post_category_exists = $wpdb->get_var( "SHOW COLUMNS FROM $wpdb->posts LIKE 'post_category'" ); 2255 if ( ! is_null( $post_category_exists ) ) { 2256 $wpdb->query( "ALTER TABLE $wpdb->posts DROP COLUMN `post_category`" ); 2257 } 2258 } 2259 2260 /** 2240 2261 * Executes network-level upgrade routines. 2241 2262 * -
trunk/src/wp-includes/version.php
r49557 r49572 21 21 * @global int $wp_db_version 22 22 */ 23 $wp_db_version = 495 34;23 $wp_db_version = 49572; 24 24 25 25 /**
Note: See TracChangeset
for help on using the changeset viewer.