Make WordPress Core

Changeset 20671


Ignore:
Timestamp:
05/01/2012 09:03:50 PM (13 years ago)
Author:
nacin
Message:

Kill all notices in XML-RPC found when running the test suite with WP_DEBUG. see [UT706], [UT707]. see #20566.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-xmlrpc-server.php

    r20670 r20671  
    525525            'public' => (bool) $taxonomy->public,
    526526            'show_ui' => (bool) $taxonomy->show_ui,
    527             '_builtin' => (bool) $taxnomy->_builtin,
     527            '_builtin' => (bool) $taxonomy->_builtin,
    528528        );
    529529
     
    535535
    536536        if ( in_array( 'object_types', $fields ) )
    537             $_taxonomy['taxonomies'] = array_unique( (array) $taxonomy->object_type );
     537            $_taxonomy['object_type'] = array_unique( (array) $taxonomy->object_type );
    538538
    539539        return apply_filters( 'xmlrpc_prepare_taxonomy', $_taxonomy, $taxonomy, $fields );
     
    903903        if ( $post_data['post_type'] == 'post' ) {
    904904            // Private and password-protected posts cannot be stickied.
    905             if ( $post_data['status'] == 'private' || ! empty( $post_data['post_password'] ) ) {
     905            if ( $post_data['post_status'] == 'private' || ! empty( $post_data['post_password'] ) ) {
    906906                // Error if the client tried to stick the post, otherwise, silently unstick.
    907907                if ( ! empty( $post_data['sticky'] ) )
     
    39483948        $this->escape($args);
    39493949
    3950         $post_ID     = (int) $args[0];
    3951         $username  = $args[1];
    3952         $password   = $args[2];
     3950        $post_ID        = (int) $args[0];
     3951        $username       = $args[1];
     3952        $password       = $args[2];
    39533953        $content_struct = $args[3];
    3954         $publish     = $args[4];
     3954        $publish        = isset( $args[4] ) ? $args[4] : 0;
    39553955
    39563956        if ( ! $user = $this->login($username, $password) )
     
    41064106            $post_excerpt =  $content_struct['mt_excerpt'];
    41074107
    4108         if ( isset( $content_struct['mt_text_more'] ) )
    4109             $post_more =  $content_struct['mt_text_more'];
     4108        $post_more = isset( $content_struct['mt_text_more'] ) ? $content_struct['mt_text_more'] : null;
    41104109
    41114110        $post_status = $publish ? 'publish' : 'draft';
Note: See TracChangeset for help on using the changeset viewer.