WordPress.org

Make WordPress Core


Ignore:
Timestamp:
03/25/2014 06:39:26 PM (7 years ago)
Author:
wonderboymusic
Message:

Popular tags' edit links should respect the current post type. Adds unit test.

Props mordauk, fahmiadib.
Fixes #25566.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-tags.php

    r27369 r27720  
    371371if ( !is_null( $tax->labels->popular_items ) ) {
    372372    if ( current_user_can( $tax->cap->edit_terms ) )
    373         $tag_cloud = wp_tag_cloud( array( 'taxonomy' => $taxonomy, 'echo' => false, 'link' => 'edit' ) );
     373        $tag_cloud = wp_tag_cloud( array( 'taxonomy' => $taxonomy, 'post_type' => $post_type, 'echo' => false, 'link' => 'edit' ) );
    374374    else
    375375        $tag_cloud = wp_tag_cloud( array( 'taxonomy' => $taxonomy, 'echo' => false ) );
Note: See TracChangeset for help on using the changeset viewer.