[wp-trac] [WordPress Trac] #12785: Add sorting and limit to default links widget
WordPress Trac
wp-trac at lists.automattic.com
Thu Sep 22 12:39:56 UTC 2011
#12785: Add sorting and limit to default links widget
-----------------------------------+---------------------
Reporter: yoavf | Owner: azaozz
Type: enhancement | Status: new
Priority: normal | Milestone: 3.3
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: has-patch ux-feedback |
-----------------------------------+---------------------
Comment (by duck_):
Replying to [comment:4 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';
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12785#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list