Show
Ignore:
Timestamp:
07/02/05 17:20:14 (4 years ago)
Author:
ryan
Message:

Update tag.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tags/1.5.1.3/xmlrpc.php

    r2673 r2682  
    1111 
    1212$post_default_title = ""; // posts submitted via the xmlrpc interface get that title 
    13 $post_default_category = 1; // posts submitted via the xmlrpc interface go into that category 
    1413 
    1514$xmlrpc_logging = 0; 
     
    564563          $post_category[] = get_cat_ID($cat); 
    565564        } 
    566       } else
    567         $post_category[] = $post_default_category
    568      
     565      } else if ( !empty($catnames) )
     566           $post_category = array(get_cat_ID($catnames))
     567       
    569568         
    570569      // We've got all the data -- post it: 
     
    615614      $post_content = apply_filters( 'content_save_pre', $content_struct['description'] ); 
    616615      $catnames = $content_struct['categories']; 
     616 
     617      $post_category = array(); 
    617618         
    618619      if (is_array($catnames)) { 
     
    620621          $post_category[] = get_cat_ID($cat); 
    621622        } 
    622       } else
    623         $post_category[] = $post_default_category
    624      
     623      } else if ( !empty($catnames) )
     624           $post_category = array(get_cat_ID($catnames))
     625       
    625626 
    626627      $post_excerpt = $content_struct['mt_excerpt']; 
     
    830831      // http://mycvs.org/archives/2004/06/30/file-upload-to-wordpress-in-ecto/ 
    831832 
    832         $this->escape($args)
    833  
    834       $blog_ID     = $args[0]
    835       $user_login  = $args[1]
    836       $user_pass   = $args[2]
     833        global $wpdb
     834 
     835      $blog_ID     = $wpdb->escape($args[0])
     836      $user_login  = $wpdb->escape($args[1])
     837       $user_pass   = $wpdb->escape($args[2])
    837838      $data        = $args[3]; 
    838839 
     
    12001201        logIO("O","(PB) URI='$pagelinkedto' ID='$post_ID' Found='$way'"); 
    12011202 
    1202         $post = $wpdb->get_row("SELECT post_author FROM $wpdb->posts WHERE ID = '$post_ID'"); 
     1203        $post = get_post($post_ID); 
    12031204 
    12041205        if ( !$post ) // Post_ID not found