Make WordPress Core


Ignore:
Timestamp:
01/12/2010 12:14:27 AM (16 years ago)
Author:
ryan
Message:

Merge page-new.php into post-new.php. Start abstracting column headers and prefs. see #9674

File:
1 edited

Legend:

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

    r12616 r12702  
    325325 * @since unknown
    326326 *
     327 *@param string A post type string, defaults to 'post'.
    327328 * @return object stdClass object containing all the default post data as attributes
    328329 */
    329 function get_default_post_to_edit() {
     330function get_default_post_to_edit( $post_type = 'post' ) {
    330331
    331332    $post_title = '';
     
    348349    $post->post_password = '';
    349350    $post->post_status = 'draft';
    350     $post->post_type = 'post';
     351    $post->post_type = $post_type;
    351352    $post->to_ping = '';
    352353    $post->pinged = '';
Note: See TracChangeset for help on using the changeset viewer.