WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/10/2015 05:28:46 AM (7 years ago)
Author:
wonderboymusic
Message:

Admin globals:

  • Declare $wp_importers as a global in admin.php
  • Declare $post_type, $post_type_object, and $post as globals where applicable

See #30799.

File:
1 edited

Legend:

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

    r31090 r31121  
    2020if ( ! current_user_can( $tax->cap->manage_terms ) )
    2121    wp_die( __( 'Cheatin’ uh?' ), 403 );
     22
     23// $post_type is set when the WP_Terms_List_Table instance is created
     24global $post_type;
    2225
    2326$wp_list_table = _get_list_table('WP_Terms_List_Table');
Note: See TracChangeset for help on using the changeset viewer.