Make WordPress Core

Opened 15 years ago

Closed 14 years ago

#7957 closed defect (bug) (wontfix)

Consolidate table header actions code, allow filtering of actions

Reported by: dd32's profile DD32 Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.7
Component: UI Keywords: needs-patch dev-feedback
Focuses: Cc:


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.

Attachments (3)

select2buttons.php (1.0 KB) - added by DD32 15 years ago.
Plugin which replaces selects with buttons
print-table-headers.diff (19.1 KB) - added by DD32 15 years ago.
7957.diff (18.9 KB) - added by DD32 15 years ago.
patch refresh.

Download all attachments as: .zip

Change History (8)

15 years ago

Plugin which replaces selects with buttons

#1 @DD32
15 years ago

Theres probably a better way to deal with some of the params of the function really. I somewhat doubt its needed to include them all, but i'm unsure

15 years ago

patch refresh.

#2 @DD32
15 years ago

(Patch will be refreshed upon request, With a better streamlined arg list if anyone actually goes for it.)

#3 @ryan
15 years ago

  • Milestone changed from 2.7 to 2.9

Postponing for consideration after 2.7.

#4 @Denis-de-Bernardy
14 years ago

  • Keywords needs-patch added; has-patch removed

patch needs a refresh. some core dev feedback would be sweet here.

#5 @ryan
14 years ago

  • Milestone 2.9 deleted
  • Resolution set to wontfix
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.