Make WordPress Core


Ignore:
Timestamp:
07/16/2007 11:11:51 PM (19 years ago)
Author:
ryan
Message:

Eliminate post_pingback stuff since we always use default_pingback_flag. fixes pingback problems caused by [5797] for #4620

File:
1 edited

Legend:

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

    r5797 r5806  
    583583
    584584        $defaults = array('post_status' => 'draft', 'post_type' => 'post', 'post_author' => $user_ID,
    585                 'ping_status' => get_option('default_ping_status'), 'post_pingback' => 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' => '');
    587587
    588588        $postarr = wp_parse_args($postarr, $defaults);
    … …  
    656656        if ( empty($ping_status) )
    657657                $ping_status = get_option('default_ping_status');
    658         if ( empty($post_pingback) )
    659                 $post_pingback = get_option('default_pingback_flag');
    660658
    661659        if ( isset($to_ping) )
    … …  
    13291327        if ( empty($ping_status) )
    13301328                $ping_status = get_option('default_ping_status');
    1331         if ( empty($post_pingback) )
    1332                 $post_pingback = get_option('default_pingback_flag');
    13331329
    13341330        if ( isset($to_ping) )
    … …  
    18551851        $post = get_post($post_id);
    18561852
    1857         if ( $post->post_pingback )
     1853        if ( get_option('default_pingback_flag') )
    18581854                $result = $wpdb->query("
    18591855                        INSERT INTO $wpdb->postmeta
Note: See TracChangeset for help on using the changeset viewer.