Make WordPress Core

Changeset 19053


Ignore:
Timestamp:
10/24/2011 07:10:56 PM (15 years ago)
Author:
ryan
Message:

Fallback to the default post type only if it is registed for the taxonomy. Props nacin. see #18785

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/screen.php

    r19052 r19053  
    462462                                        if ( isset( $_REQUEST['post_type'] ) && post_type_exists( $_REQUEST['post_type'] ) )
    463463                                                $post_type = $_REQUEST['post_type'];
    464                                         else
     464                                        else if ( is_object_in_taxonomy( 'post', $taxonomy ? $taxonomy : 'post_tag' ) )
    465465                                                $post_type = 'post';
    466466                                        break;
Note: See TracChangeset for help on using the changeset viewer.