mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 12:20:22 +00:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@31121 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -23,7 +23,7 @@ elseif ( isset( $_POST['post_ID'] ) )
|
||||
else
|
||||
$post_id = $post_ID = 0;
|
||||
|
||||
$post = $post_type = $post_type_object = null;
|
||||
global $post_type, $post_type_object, $post;
|
||||
|
||||
if ( $post_id )
|
||||
$post = get_post( $post_id );
|
||||
|
||||
Reference in New Issue
Block a user