[wp-trac] [WordPress Trac] #33521: manage_${post_type}_posts_columns parameters shifted
WordPress Trac
noreply at wordpress.org
Mon Sep 7 14:09:06 UTC 2015
#33521: manage_${post_type}_posts_columns parameters shifted
-------------------------------------------------+-------------------------
Reporter: Cybr | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: Taxonomy | Review
Severity: minor | Version: 4.3
Keywords: reporter-feedback has-patch needs- | Resolution:
testing | Focuses:
| administration
-------------------------------------------------+-------------------------
Changes (by Cybr):
* keywords: reporter-feedback needs-patch => reporter-feedback has-patch
needs-testing
Comment:
In the example in the first post, `add_action( "manage_{$type}_columns",
array( $this, 'add_column'), 10, 1 );` now accepts `$slug` too
(`category`, `post_tag`).
With the note of being backwards compatible (as per since WP2.1.9), it
accepts both `edit-category` as `category`.
It now also accepts both the action as the filter for
`manage_{$this->screen->taxonomy}_custom_column`. Needs further testing,
but it should work as intended without duplicate outputs.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33521#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list