Changeset 31121
- Timestamp:
- 01/10/2015 05:28:46 AM (10 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/admin.php
r31106 r31121 92 92 93 93 // $pagenow is set in vars.php 94 // $wp_importers is sometimes set in wp-admin/includes/import.php 95 // 94 96 // The remaining variables are imported as globals elsewhere, 95 97 // declared as globals here 96 global $pagenow, $ hook_suffix, $plugin_page, $typenow, $taxnow;98 global $pagenow, $wp_importers, $hook_suffix, $plugin_page, $typenow, $taxnow; 97 99 98 100 $page_hook = null; -
trunk/src/wp-admin/edit-form-advanced.php
r30890 r31121 10 10 if ( !defined('ABSPATH') ) 11 11 die('-1'); 12 13 global $post_type, $post_type_object, $post; 12 14 13 15 wp_enqueue_script('post'); -
trunk/src/wp-admin/edit-tags.php
r31090 r31121 20 20 if ( ! current_user_can( $tax->cap->manage_terms ) ) 21 21 wp_die( __( 'Cheatin’ uh?' ), 403 ); 22 23 // $post_type is set when the WP_Terms_List_Table instance is created 24 global $post_type; 22 25 23 26 $wp_list_table = _get_list_table('WP_Terms_List_Table'); -
trunk/src/wp-admin/edit.php
r30356 r31121 18 18 } 19 19 } 20 21 global $post_type, $post_type_object; 20 22 21 23 $post_type = $typenow; -
trunk/src/wp-admin/post-new.php
r30356 r31121 10 10 require_once( dirname( __FILE__ ) . '/admin.php' ); 11 11 12 if ( !isset($_GET['post_type']) ) 12 global $post_type, $post_type_object, $post; 13 14 if ( ! isset( $_GET['post_type'] ) ) { 13 15 $post_type = 'post'; 14 elseif ( in_array( $_GET['post_type'], get_post_types( array('show_ui' => true ) ) ) ) 16 } elseif ( in_array( $_GET['post_type'], get_post_types( array('show_ui' => true ) ) ) ) { 15 17 $post_type = $_GET['post_type']; 16 else 18 } else { 17 19 wp_die( __('Invalid post type') ); 18 20 } 19 21 $post_type_object = get_post_type_object( $post_type ); 20 22 -
trunk/src/wp-admin/post.php
r29572 r31121 24 24 $post_id = $post_ID = 0; 25 25 26 $post = $post_type = $post_type_object = null;26 global $post_type, $post_type_object, $post; 27 27 28 28 if ( $post_id )
Note: See TracChangeset
for help on using the changeset viewer.