Opened 14 years ago
Closed 14 years ago
#16341 closed defect (bug) (fixed)
Sorting is reset after searching
Reported by: | scribu | Owned by: | |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Administration | Keywords: | has-patch commit |
Focuses: | Cc: |
Description (last modified by )
- Go to /wp-admin/edit.php
- Sort by title
- Search for something
The search results are no longer sorted by title.
All list screens are affected.
Attachments (8)
Change History (26)
#1
@
14 years ago
16341.diff fixes the problem for edit.php, but the same needs to be done for all list screens.
#2
follow-up:
↓ 4
@
14 years ago
I like Sergey's patch better.
Maybe we should make it a method of WP_List_Table, to avoid code duplication.
#4
in reply to:
↑ 2
@
14 years ago
Replying to scribu:
Maybe we should make it a method of WP_List_Table, to avoid code duplication.
+1
ocean90: scribu: Wouldn't be something like $wp_list_table->hidden_fields() nice? scribu: exactly ocean90: Which has some default fields and is extendable for example for the edit screen (post_type & post_status) scribu: yep
#5
@
14 years ago
16341.2.patch should do it for Posts, Media Library, Links, Pages, Comments and Users screens. Going to check Network screens.
#6
@
14 years ago
16341.3.patch should do it for Network screens as well.
#9
follow-up:
↓ 10
@
14 years ago
Not a fan of all the churn here. Let's just add the method and call it hidden_order_fields(), call it everywhere, and don't bother with any other iterations at this point.
#10
in reply to:
↑ 9
@
14 years ago
Replying to nacin:
Let's just add the method and call it hidden_order_fields(), call it everywhere, and don't bother with any other iterations at this point.
Done.
#11
@
14 years ago
16341.6.patch may have better formatting in hidden_order_fields()
.
#12
@
14 years ago
We can also just sneak the logic into views() probably, as it's called on all the same pages. But thanks for the much simpler patch.
#13
@
14 years ago
views()
is currently called outside of the search forms. Not sure how it would help here.
#16
@
14 years ago
I can agree with hidden_order_fields(), but slapping them onto search_box() is wrong, IMO.
#17
@
14 years ago
- Keywords commit added; needs-testing removed
From IRC:
(07:36:52 PM) nacin: scribu: the first thing I'm doing when 3.1 is released is rearchitecting this mess.
So let's go with 16341.7.patch
for edit.php