[wp-trac] [WordPress Trac] #36964: Show/hide the tag-cloud on `edit-tags.php` admin pages using a filter
WordPress Trac
noreply at wordpress.org
Wed Aug 24 17:49:08 UTC 2016
#36964: Show/hide the tag-cloud on `edit-tags.php` admin pages using a filter
-------------------------------------------------+-------------------------
Reporter: ramiy | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.7
Component: Administration | Version:
Severity: normal | Resolution:
Keywords: has-patch has-screenshots needs- | Focuses: ui,
refresh | administration
-------------------------------------------------+-------------------------
Changes (by DrewAPicture):
* keywords: has-patch has-screenshots => has-patch has-screenshots needs-
refresh
* milestone: Awaiting Review => 4.7
Comment:
@ramiy Sure. Let's refresh the patch for 4.7 and additionally pass
`$taxonomy` to the filter. Also, we should keep the current style of
`if/endif` because it wraps markup.
Let's also look at hiding it by default (opposite of current behavior). So
rather than assigning the current condition to the filter via a variable,
the filter should be ''in addition'' to that and the logic reversed, e.g.
{{{#!php
<?php
$show_admin_popular_items = apply_filters(
'show_admin_popular_items_tag_cloud', false, $taxonomy );
if ( ! is_null( $tax->labels->popular_items ) && true ===
$$show_admin_popular_items ) {
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36964#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list