[wp-trac] [WordPress Trac] #9900: allow larger value for thread_comments_depth_max

WordPress Trac wp-trac at lists.automattic.com
Thu May 21 23:28:46 GMT 2009


#9900: allow larger value for thread_comments_depth_max
--------------------------+-------------------------------------------------
 Reporter:  hailin        |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  General       |     Version:            
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 Current thread_comments_depth_max is set to be at most 10.
 In some cases, users want deeper levels, such as 12, they will
 do
 add_filter('pre_option_thread_comments_depth', create_function('', 'return
 12;'));

 It causes some confusion because the in options-discussion.php

 if ( get_option('thread_comments_depth') == $i )

        thread_comments_depth .= " selected='selected'";
 $i will be at most 10, so it couldn't find any matching entry,
 so the dropdown menu will display 1. It will always display 1 even if the
 user tries to change the value to 8, or 10.

  So I think it's better to allow a larger max value to avoid this
 confusion.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9900>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list