Opened 17 years ago
Closed 15 years ago
#12785 closed enhancement (fixed)
Add sorting and limit to default links widget
| Reported by: | yoavf | Owned by: | azaozz |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.4 |
| Component: | Widgets | Version: | |
| Severity: | normal | Keywords: | has-patch ux-feedback |
| Cc: | Focuses: |
Description
The default links widget is kinda dull, and to tell truth - he's really jealous of his brothers recent post and pages widgets.
So here's a little patch to add sorting order and limit to the widget.
Attachments (2)
Change History (11)
#2
@
17 years ago
- Keywords early added
- Milestone 3.0 → 3.1
- Type defect (bug) → enhancement
Sorry to have to be a pain, But since this isn't a regression, is an enhancement over what we've currently got & we're in a feature freeze, I'm going to bump this to early 3.1.
#3
@
16 years ago
- Keywords ux-feedback added; early removed
- Milestone Awaiting Triage → Future Release
Let's get Jane to weigh in on this before proceeding.
#5
@
15 years ago
- Milestone Future Release → 3.3
Freeze has arrived. @rboren: I hear this has been running on .com for a while. Any issues? If you want to commit, its fine with me.
#6
in reply to: ↑ 4
@
15 years ago
Replying to yoavf:
Refreshed patch for trunk.
WP_Widget_Links::widget() contains
$order = isset($instance['order']) ? $instance['order'] : 'ASC';
but order is not an option in the form and is never set on update.
I think that either the user should be allowed to choose the ordering via the form, or:
$order = 'rating' == $orderby ? 'DESC' : 'ASC';
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
+1 - I've heard a lot of requests for this.