WordPress.org

Make WordPress Core

#20913 closed defect (bug) (invalid)

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

Reported by: 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 23 months ago.
20913.patch (4.2 KB) - added by axelseaa 23 months ago.

Download all attachments as: .zip

Change History (8)

comment:1 axelseaa23 months ago

  • Type changed from defect (bug) to enhancement

comment:2 axelseaa23 months 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.

axelseaa23 months ago

comment:3 axelseaa23 months ago

20913.patch addresses all issues I discovered

comment:4 SergeyBiryukov23 months 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.

comment:5 axelseaa23 months ago

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

comment:6 SergeyBiryukov23 months ago

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