Make WordPress Core


Ignore:
Timestamp:
11/17/2011 06:01:08 PM (15 years ago)
Author:
ryan
Message:

Don't fallback to default post type or taxonomy if given an invalid post type or taxonomy. Use typenow as the canonical post type. Props nacin. see #19131

File:
1 edited

Legend:

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

    r19295 r19321  
    13931393        ajaxurl = '<?php echo admin_url('admin-ajax.php'); ?>',
    13941394        pagenow = '<?php echo $current_screen->id; ?>',
    1395         typenow = '<?php if ( isset($current_screen->post_type) ) echo $current_screen->post_type; ?>',
     1395        typenow = '<?php echo $current_screen->post_type; ?>',
    13961396        adminpage = '<?php echo $admin_body_class; ?>',
    13971397        thousandsSeparator = '<?php echo addslashes( $wp_locale->number_format['thousands_sep'] ); ?>',
Note: See TracChangeset for help on using the changeset viewer.