allow larger value for thread_comments_depth_max
|Reported by:||hailin||Owned by:|
Current thread_comments_depth_max is set to be at most 10.
In some cases, users want deeper levels, such as 12, they will
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.
Change History (14)
- Component changed from General to Comments
- Milestone changed from Unassigned to 2.8