Changeset 12702 for trunk/wp-admin/includes/post.php
- Timestamp:
- 01/12/2010 12:14:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r12616 r12702 325 325 * @since unknown 326 326 * 327 *@param string A post type string, defaults to 'post'. 327 328 * @return object stdClass object containing all the default post data as attributes 328 329 */ 329 function get_default_post_to_edit( ) {330 function get_default_post_to_edit( $post_type = 'post' ) { 330 331 331 332 $post_title = ''; … … 348 349 $post->post_password = ''; 349 350 $post->post_status = 'draft'; 350 $post->post_type = 'post';351 $post->post_type = $post_type; 351 352 $post->to_ping = ''; 352 353 $post->pinged = '';
Note: See TracChangeset
for help on using the changeset viewer.