Opened 18 years ago
Closed 17 years ago
#9023 closed enhancement (wontfix)
paged comments should use simple logic
| Reported by: | hailin | Owned by: | hailin |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
Description
When comment_order is set to "desc", I think we can just assume default_comment_page is "newest", this is what most people would expect,
and the existing plugins use this logic: http://stuffwhitepeoplelike.com/2008/06/27/104-girls-with-bangs/
Using both control var increases the complexity and users may not know the difference. I suggest we use use the simple logic instead.
Attachments (2)
Change History (8)
#2
@
18 years ago
- Owner changed from to
- Status new → assigned
With this patch, the discussion options page reads:
"Break comments into pages with 5 top level comments per page and display newer/older comments first". It's more clear to the end user.
The new logic is in line with existing widely used paged-threaded-comments plugins, which have been used for many VIP blogs successfully for a long time.
The keyword "reverse-top-level" really means "reverse-order" now, but to keep backward compatibility, I kept it the same.
Carefully tested.
#4
@
18 years ago
- Milestone 2.7.1 → 2.8
I've seen a lot of sites that specify asc and newest when using the paged comments plugin, which is a major reason why we included support for both options. That plugin supports asc|desc and newest|oldest|auto.
#5
@
18 years ago
That sounds good.
For WordPress.com VIP blogs,
$paged_comments->default_page = 'auto'; is always set, which is equivalent to
my proposed logic. But I guess in this case, it's ok to vote for functionality completeness.
One minor change: when reverse_top_level is set, we should really also reverse
children. It's just "reverse_order", for both parents and children. Keeping reverse_children around while not utilizing it is confusing.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
And the current complex logic causes bad issues such as:
http://trac.wordpress.org/ticket/8755
My proposed logic is:
Only use comment_order, which has default value of "asc".
When it is "asc", we assume default_comment_page as "oldest";
when it is "desc", we assume default_comments_page "newest".
This is more natual, less error-prone, and easier to maintain.