Make WordPress Core

Changeset 3517 for trunk/xmlrpc.php


Ignore:
Timestamp:
02/12/2006 07:53:23 AM (19 years ago)
Author:
ryan
Message:

Death to trailing tabs. Props Mark J. fixes #2405

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r3498 r3517  
    578578        }
    579579      }
    580        
     580
    581581      // We've got all the data -- post it:
    582582      $postdata = compact('post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt', 'comment_status', 'ping_status', 'to_ping');
     
    624624
    625625      $post_category = array();
    626        
     626
    627627      if (is_array($catnames)) {
    628628        foreach ($catnames as $cat) {
     
    862862            return new IXR_Error(500, 'Could not write file '.$name);
    863863        }
    864        
     864
    865865        return array('url' => $upload['url']);
    866866    }
     
    996996        $catids[] = $cat['categoryId'];
    997997      }
    998    
     998
    999999      wp_set_post_cats('', $post_ID, $catids);
    10001000
     
    12001200
    12011201        $p = explode( "\n\n", $linea );
    1202        
     1202
    12031203        $sem_regexp_pb = "/(\\/|\\\|\*|\?|\+|\.|\^|\\$|\(|\)|\[|\]|\||\{|\})/";
    12041204        $sem_regexp_fix = "\\\\$1";
    12051205        $link = preg_replace( $sem_regexp_pb, $sem_regexp_fix, $pagelinkedfrom );
    1206        
     1206
    12071207        $finished = false;
    12081208        foreach ( $p as $para ) {
     
    12391239        wp_new_comment($commentdata);
    12401240        do_action('pingback_post', $wpdb->insert_id);
    1241        
     1241
    12421242        return "Pingback from $pagelinkedfrom to $pagelinkedto registered. Keep the web talking! :-)";
    12431243    }
Note: See TracChangeset for help on using the changeset viewer.