WordPress.org

Make WordPress Core

Changeset 19106


Ignore:
Timestamp:
11/01/2011 09:15:18 PM (9 years ago)
Author:
ryan
Message:

No need to setup current screen in wp-fullscreen-save-post handler. see #18785

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-ajax.php

    r19095 r19106  
    15191519        if ( $post ) {
    15201520            $post_type_object = get_post_type_object($post->post_type);
    1521             if ( $post_type_object ) {
     1521            if ( $post_type_object )
    15221522                $post_type = $post->post_type;
    1523                 $current_screen->post_type = $post->post_type;
    1524                 $current_screen->id = $current_screen->post_type;
    1525             }
    15261523        }
    15271524    } elseif ( isset($_POST['post_type']) ) {
    15281525        $post_type_object = get_post_type_object($_POST['post_type']);
    1529         if ( $post_type_object ) {
     1526        if ( $post_type_object )
    15301527            $post_type = $post_type_object->name;
    1531             $current_screen->post_type = $post_type;
    1532             $current_screen->id = $current_screen->post_type;
    1533         }
    15341528    }
    15351529
Note: See TracChangeset for help on using the changeset viewer.