Changeset 11958
- Timestamp:
- 09/22/2009 06:00:46 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/upgrade.php
r11884 r11958 347 347 upgrade_280(); 348 348 349 if ( $wp_current_db_version < 11958 ) 350 upgrade_290(); 351 349 352 maybe_disable_automattic_widgets(); 350 353 … … 982 985 if ( $wp_current_db_version < 10360 ) 983 986 populate_roles_280(); 987 } 988 989 /** 990 * Execute changes made in WordPress 2.9. 991 * 992 * @since 2.9.0 993 */ 994 function upgrade_290() { 995 global $wp_current_db_version; 996 997 if ( $wp_current_db_version < 11958 ) { 998 // Previously, setting depth to 1 would redundantly disable threading, but now 2 is the minimum depth to avoid confusion 999 if ( get_option( 'thread_comments_depth' ) == '1' ) { 1000 update_option( 'thread_comments_depth', 2 ); 1001 update_option( 'thread_comments', 0 ); 1002 } 1003 } 984 1004 } 985 1005 -
trunk/wp-admin/options-discussion.php
r11761 r11958 67 67 68 68 $thread_comments_depth = '</label><select name="thread_comments_depth" id="thread_comments_depth">'; 69 for ( $i = 1; $i <= $maxdeep; $i++ ) {69 for ( $i = 2; $i <= $maxdeep; $i++ ) { 70 70 $thread_comments_depth .= "<option value='" . esc_attr($i) . "'"; 71 71 if ( get_option('thread_comments_depth') == $i ) $thread_comments_depth .= " selected='selected'"; -
trunk/wp-includes/version.php
r11943 r11958 16 16 * @global int $wp_db_version 17 17 */ 18 $wp_db_version = 119 43;18 $wp_db_version = 11958; 19 19 20 20 /**
Note: See TracChangeset
for help on using the changeset viewer.