Make WordPress Core


Ignore:
Timestamp:
05/10/2004 08:13:42 AM (22 years ago)
Author:
saxmatt
Message:

Maybe some pinging fixes?

File:
1 edited

Legend:

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

    r1239 r1256  
    270270        $post_categories = $_POST['post_category'];
    271271        if (!$post_categories) $post_categories[] = 1;
    272         $post_autobr = intval($_POST['post_autobr']);
    273272        $content = balanceTags($_POST['content']);
    274273        $content = format_to_post($content);
     
    286285                $latlonaddition = " post_lat=null, post_lon=null, ";
    287286            }
     287        } else {
     288            $latlonaddition = '';
    288289        }
    289290        $prev_status = $_POST['prev_status'];
     
    303304    $trackback = preg_replace('|\s+|', '\n', $trackback);
    304305   
    305     if ('' != $_POST['publish']) $post_status = 'publish';
     306    if (isset($_POST['publish'])) $post_status = 'publish';
    306307
    307308    if (($user_level > 4) && (!empty($_POST['edit_date']))) {
     
    365366
    366367    // are we going from draft/private to published?
    367     if ((($prev_status == 'draft') || ($prev_status == 'private')) && ($post_status == 'publish')) {
     368    if ($prev_status != 'publish' && $post_status == 'publish') {
     369        generic_ping();
    368370    } // end if moving from draft/private to published
    369371    if ($post_status == 'publish') {
Note: See TracChangeset for help on using the changeset viewer.