WordPress.org

Make WordPress Core

Changeset 19043


Ignore:
Timestamp:
10/23/2011 05:48:58 PM (9 years ago)
Author:
nacin
Message:

Fix [16249]. $typenow is considered empty on edit-tags screens, rather than displaying the parent post type. Switch to the $post_type global for now, which is set in the terms list table constructor. see #14886.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-terms-list-table.php

    r19028 r19043  
    9494
    9595    function get_columns() {
    96         global $taxonomy, $typenow;
     96        global $taxonomy, $post_type;
    9797
    9898        $columns = array(
     
    106106            $columns['links'] = __( 'Links' );
    107107        } else {
    108             $post_type = empty( $typenow ) ? 'post' : $typenow;
    109108            $post_type_object = get_post_type_object( $post_type );
    110109            $columns['posts'] = $post_type_object ? $post_type_object->labels->name : __( 'Posts' );
Note: See TracChangeset for help on using the changeset viewer.