Changeset 5806
- Timestamp:
- 07/16/2007 11:11:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r5797 r5806 583 583 584 584 $defaults = array('post_status' => 'draft', 'post_type' => 'post', 'post_author' => $user_ID, 585 'ping_status' => get_option('default_ping_status'), 'post_p ingback' => get_option('default_pingback_flag'),586 ' post_parent' => 0, 'menu_order' => 0, 'to_ping' => '', 'pinged' => '', 'post_password' => '');585 'ping_status' => get_option('default_ping_status'), 'post_parent' => 0, 586 'menu_order' => 0, 'to_ping' => '', 'pinged' => '', 'post_password' => ''); 587 587 588 588 $postarr = wp_parse_args($postarr, $defaults); … … 656 656 if ( empty($ping_status) ) 657 657 $ping_status = get_option('default_ping_status'); 658 if ( empty($post_pingback) )659 $post_pingback = get_option('default_pingback_flag');660 658 661 659 if ( isset($to_ping) ) … … 1329 1327 if ( empty($ping_status) ) 1330 1328 $ping_status = get_option('default_ping_status'); 1331 if ( empty($post_pingback) )1332 $post_pingback = get_option('default_pingback_flag');1333 1329 1334 1330 if ( isset($to_ping) ) … … 1855 1851 $post = get_post($post_id); 1856 1852 1857 if ( $post->post_pingback)1853 if ( get_option('default_pingback_flag') ) 1858 1854 $result = $wpdb->query(" 1859 1855 INSERT INTO $wpdb->postmeta
Note: See TracChangeset
for help on using the changeset viewer.