Ticket #10829: 10829.diff
File 10829.diff, 2.0 KB (added by , 15 years ago) |
---|
-
wp-includes/version.php
15 15 * 16 16 * @global int $wp_db_version 17 17 */ 18 $wp_db_version = 119 43;18 $wp_db_version = 11958; 19 19 20 20 /** 21 21 * Holds the TinyMCE version -
wp-admin/includes/upgrade.php
346 346 if ( $wp_current_db_version < 10360 ) 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 351 354 update_option( 'db_version', $wp_db_version ); … … 983 986 populate_roles_280(); 984 987 } 985 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; 986 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 } 1004 } 1005 1006 987 1007 // The functions we use to actually do stuff 988 1008 989 1009 // General -
wp-admin/options-discussion.php
66 66 $maxdeep = (int) apply_filters( 'thread_comments_depth_max', 10 ); 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'"; 72 72 $thread_comments_depth .= ">$i</option>";