Make WordPress Core

Changeset 18847


Ignore:
Timestamp:
09/30/2011 09:35:05 PM (13 years ago)
Author:
nacin
Message:

Initialize the post object in get_default_post_to_edit(). props tech163. fixes #18049.

File:
1 edited

Legend:

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

    r18823 r18847  
    425425            set_post_format( $post, get_option( 'default_post_format' ) );
    426426    } else {
     427        $post = new stdClass;
    427428        $post->ID = 0;
    428429        $post->post_author = '';
Note: See TracChangeset for help on using the changeset viewer.