Changeset 883

Show
Ignore:
Timestamp:
02/13/07 12:09:06 (2 years ago)
Author:
donncha
Message:

WP Merge to rev 4874

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/index-extra.php

    r810 r883  
    22require_once('admin.php'); 
    33require_once (ABSPATH . WPINC . '/rss.php'); 
     4 
     5@header('Content-type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset')); 
    46 
    57switch ( $_GET['jax'] ) { 
  • trunk/wp-includes/post.php

    r875 r883  
    675675                if ( defined('XMLRPC_REQUEST') ) 
    676676                        do_action('xmlrpc_publish_post', $post_ID); 
     677                if ( defined('APP_REQUEST') ) 
     678                        do_action('app_publish_post', $post_ID); 
    677679 
    678680                if ( !defined('WP_IMPORTING') ) { 
  • trunk/xmlrpc.php

    r882 r883  
    149149                global $wpdb; 
    150150 
    151                 foreach ( (array) $array as $k => $v ) { 
    152                         if (is_array($v)) { 
    153                                 $this->escape($array[$k]); 
    154                         } else if (is_object($v)) { 
    155                                 //skip 
    156                         } else { 
    157                                 $array[$k] = $wpdb->escape($v); 
     151                if(is_string($array)) { 
     152                        return($wpdb->escape($array)); 
     153                } 
     154                else { 
     155                        foreach ( (array) $array as $k => $v ) { 
     156                                if (is_array($v)) { 
     157                                        $this->escape($array[$k]); 
     158                                } else if (is_object($v)) { 
     159                                        //skip 
     160                                } else { 
     161                                        $array[$k] = $wpdb->escape($v); 
     162                                } 
    158163                        } 
    159164                } 
     
    284289         */ 
    285290        function wp_newPage($args) { 
    286                 $this->escape($args); 
    287  
    288                 $blog_id        = $args[0]; 
    289                 $username       = $args[1]; 
    290                 $password       = $args[2]; 
     291                // Items not escaped here will be escaped in newPost. 
     292                $username       = $this->escape($args[1]); 
     293                $password       = $this->escape($args[2]); 
    291294                $page           = $args[3]; 
    292295                $publish        = $args[4]; 
     
    356359         */ 
    357360        function wp_editPage($args) { 
    358                 $this->escape($args); 
    359  
     361                // Items not escaped here will be escaped in editPost. 
    360362                $blog_id        = $args[0]; 
    361                 $page_id        = $args[1]
    362                 $username       = $args[2]
    363                 $password       = $args[3]
     363                $page_id        = $this->escape($args[1])
     364                $username       = $this->escape($args[2])
     365                $password       = $this->escape($args[3])
    364366                $content        = $args[4]; 
    365367                $publish        = $args[5];