Ticket #16150: 16150.diff
| File 16150.diff, 1.2 KB (added by markjaquith, 2 years ago) |
|---|
-
wp-includes/version.php
15 15 * 16 16 * @global int $wp_db_version 17 17 */ 18 $wp_db_version = 17 056;18 $wp_db_version = 17240; 19 19 20 20 /** 21 21 * Holds the TinyMCE version -
wp-admin/includes/upgrade.php
451 451 if ( $wp_current_db_version < 15260 ) 452 452 upgrade_300(); 453 453 454 if ( $wp_current_db_version < 17240 ) 455 upgrade_310(); 456 454 457 maybe_disable_automattic_widgets(); 455 458 456 459 update_option( 'db_version', $wp_db_version ); … … 1147 1150 } 1148 1151 1149 1152 /** 1153 * Execute changes made in WordPress 3.1. 1154 * 1155 * @since 3.1.0 1156 */ 1157 function upgrade_310() { 1158 global $wp_current_db_version; 1159 if ( $wp_current_db_version < 17240 ) { 1160 foreach ( get_post_format_slugs() as $slug ) { 1161 if ( ! term_exists( 'post-format-' . $slug, 'post_format' ) ) 1162 wp_insert_term( 'post-format-' . $slug, 'post_format' ); 1163 } 1164 } 1165 } 1166 1167 /** 1150 1168 * Execute network level changes 1151 1169 * 1152 1170 * @since 3.0.0