[wp-trac] [WordPress Trac] #7957: Consolidate table header actions
code, allow filtering of actions
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 24 12:01:44 GMT 2008
#7957: Consolidate table header actions code, allow filtering of actions
--------------------+-------------------------------------------------------
Reporter: DD32 | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: UI | Version: 2.7
Severity: normal | Keywords: has-patch dev-feedback
--------------------+-------------------------------------------------------
The attached patch consolidates all the {{{<select name="action">}}} code
into a function {{{print_table_actions()}}} which also allows the
filtering of the actions.
My primary motivation was due to me personally not liking the dropdown
lists, esp. when theres usually only one or 2 actions in the table.
Allowing filtering allows a plugin to step in and replace it with buttons
(Which i've also attached)
Plugins which add actions, will have to hook in on {{{load-$pagenow}}} and
perform their actions there i believe.
--
Ticket URL: <http://trac.wordpress.org/ticket/7957>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list