}
break;
case 'edit-tags' :
+ case 'term' :
if ( null === $post_type && is_object_in_taxonomy( 'post', $taxonomy ? $taxonomy : 'post_tag' ) )
$post_type = 'post';
break;
$id .= '-' . $post_type;
break;
case 'edit-tags' :
+ case 'term' :
if ( null === $taxonomy )
$taxonomy = 'post_tag';
// The edit-tags ID does not contain the post type. Look for it in the request.
* Default 'Filter items list'.
* @type string $heading_pagination Screen reader text for the pagination heading.
* Default 'Items list navigation'.
- * @type string heading_list Screen reader text for the items list heading.
+ * @type string $heading_list Screen reader text for the items list heading.
* Default 'Items list'.
* }
*/
return;
}
+ $view_mode_post_types = get_post_types( array( 'hierarchical' => false, 'show_ui' => true ) );
+
/**
* Filter the post types that have different view mode options.
*
* @param array $view_mode_post_types Array of post types that can change view modes.
* Default hierarchical post types with show_ui on.
*/
- $view_mode_post_types = get_post_types( array( 'hierarchical' => false, 'show_ui' => true ) );
$view_mode_post_types = apply_filters( 'view_mode_post_types', $view_mode_post_types );
if ( ! in_array( $this->post_type, $view_mode_post_types ) ) {