Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#20913 closed defect (bug) (invalid)

Ability to add custom column to list pages (plugins,users,links,comments,terms,ms)

Reported by: axelseaa's profile axelseaa Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Multisite Keywords: has-patch
Focuses: Cc:

Description

Currently the ms-themes page has a hook to add in custom column content, however it does not have a hook to add in a custom column heading.

I am requesting that the attached patch (or something similar) be implemented to permit plugins to add columns to the themes table.

Attachments (2)

ms-themes-addcolumn.patch (997 bytes) - added by axelseaa 13 years ago.
20913.patch (4.2 KB) - added by axelseaa 13 years ago.

Download all attachments as: .zip

Change History (8)

#1 @axelseaa
13 years ago

  • Type changed from defect (bug) to enhancement

#2 @axelseaa
13 years ago

  • Summary changed from enhancement: Ability to add custom column to manage themes page to Ability to add custom column to list pages (plugins,users,links,comments,terms,ms)
  • Type changed from enhancement to defect (bug)

After further digging, this also appears to be a problem in:

wp-admin/includes/class-wp-plugins-list-table.php
wp-admin/includes/class-wp-users-list-table.php
wp-admin/includes/class-wp-links-list-table.php
wp-admin/includes/class-wp-comments-list-table.php
wp-admin/includes/class-wp-terms-list-table.php
wp-admin/includes/class-wp-ms-themes-list-table.php

Only have of the necessary hook/filter is there to do the job - because of this I'm changing the filling back to bug.

@axelseaa
13 years ago

#3 @axelseaa
13 years ago

20913.patch addresses all issues I discovered

#4 @SergeyBiryukov
13 years ago

There's manage_{$screen->id}_columns filter which should work in all those cases:
http://core.trac.wordpress.org/browser/tags/3.3.2/wp-admin/includes/class-wp-list-table.php#L89

For Network Admin > Themes screen, it would be manage_themes-network_columns.

#5 @axelseaa
13 years ago

Ah, yeah - that does work. I missed that last night because the inconsistency of how the other pages are done confused me.

#6 @SergeyBiryukov
13 years ago

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