Make WordPress Core


Ignore:
Timestamp:
09/04/2012 04:29:28 PM (12 years ago)
Author:
ryan
Message:

Use get_post() instead of global $post.
Make the $post argument to get_post() optional, defaulting to the current post in The Loop.

Props nacin
see #21309

File:
1 edited

Legend:

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

    r19859 r21735  
    280280     */
    281281    function wxr_post_taxonomy() {
    282         global $post;
     282        $post = get_post();
    283283
    284284        $taxonomies = get_object_taxonomies( $post->post_type );
Note: See TracChangeset for help on using the changeset viewer.