WordPress.org

Make WordPress Core

Changeset 5279


Ignore:
Timestamp:
04/17/2007 04:52:11 PM (11 years ago)
Author:
ryan
Message:

Reverting [5278]. It breaks mw_getRecentPosts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/xmlrpc.php

    r5278 r5279  
    990990      $post_more = $content_struct['mt_text_more'];
    991991
    992       $tags_input = $content_struct['mt_keywords'];
    993 
    994992      $comment_status = (!isset($content_struct['mt_allow_comments'])) ?
    995993        get_option('default_comment_status')
     
    10301028
    10311029      // We've got all the data -- post it:
    1032       $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', 'post_type', 'post_name', 'post_password', 'post_parent', 'menu_order', 'tags_input');
     1030      $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', 'post_type', 'post_name', 'post_password', 'post_parent', 'menu_order');
    10331031
    10341032      $post_ID = wp_insert_post($postdata);
     
    11741172      $post_status = $publish ? 'publish' : 'draft';
    11751173
    1176       $tags_input = $content_struct['mt_keywords'];
    1177 
    11781174      if ( ('publish' == $post_status) ) {
    11791175        if ( ( 'page' == $post_type ) && !current_user_can('publish_pages') )
     
    12071203
    12081204      // We've got all the data -- post it:
    1209       $newpost = compact('ID', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt', 'comment_status', 'ping_status', 'post_date', 'post_date_gmt', 'to_ping', 'post_name', 'post_password', 'post_parent', 'menu_order', 'post_author', 'tags_input');
     1205      $newpost = compact('ID', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt', 'comment_status', 'ping_status', 'post_date', 'post_date_gmt', 'to_ping', 'post_name', 'post_password', 'post_parent', 'menu_order', 'post_author');
    12101206
    12111207      $result = wp_update_post($newpost);
     
    12471243          $categories[] = get_cat_name($catid);
    12481244        }
    1249 
    1250         $tagnames = array();
    1251         $tags = get_post_tags( $post_ID );
    1252         if ( !empty( $tags ) ) {
    1253             foreach ( $tags as $tag ) {
    1254                 $tagnames[] = $tag->cat_name;
    1255             }
    1256             $tagnames = implode( ', ', $tagnames );
    1257         } else {
    1258             $tagnames = '';
    1259         }
    12601245
    12611246        $post = get_extended($postdata['post_content']);
     
    12831268          'mt_allow_comments' => $allow_comments,
    12841269          'mt_allow_pings' => $allow_pings,
    1285           'mt_keywords' => $tagnames,
    12861270          'wp_slug' => $postdata['post_name'],
    12871271          'wp_password' => $postdata['post_password'],
     
    13251309            foreach($catids as $catid) {
    13261310                $categories[] = get_cat_name($catid);
    1327             }
    1328 
    1329             $tagnames = array();
    1330             $tags = get_post_tags( $entry['ID'] );
    1331             if ( !empty( $tags ) ) {
    1332                 foreach ( $tags as $tag ) {
    1333                     $tagnames[] = $tag->cat_name;
    1334                 }
    1335                 $tagnames = implode( ', ', $tagnames );
    1336             } else {
    1337                 $tagnames = '';
    13381311            }
    13391312
     
    13621335                'mt_allow_comments' => $allow_comments,
    13631336                'mt_allow_pings' => $allow_pings,
    1364                 'mt_keywords' => $tagnames,
    13651337                'wp_slug' => $entry['post_name'],
    13661338                'wp_password' => $entry['post_password'],
Note: See TracChangeset for help on using the changeset viewer.