Make WordPress Core

Changeset 31092


Ignore:
Timestamp:
01/08/2015 07:20:17 AM (12 years ago)
Author:
wonderboymusic
Message:

In wp_xmlrpc_server, remove dead code.

See #30799.

File:
1 edited

Legend:

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

    r31090 r31092  
    25462546                $username       = $this->escape($args[1]);
    25472547                $password       = $this->escape($args[2]);
    2548                 $page           = $args[3];
    2549                 $publish        = $args[4];
    25502548
    25512549                if ( !$user = $this->login($username, $password) )
    … …  
    42144212                $password   = $args[3];
    42154213                $content     = $args[4];
    4216                 $publish     = $args[5];
    42174214
    42184215                if ( ! $user = $this->login( $username, $password ) ) {
    … …  
    42804277                $username  = $args[2];
    42814278                $password   = $args[3];
    4282                 $publish     = $args[4];
    42834279
    42844280                if ( !$user = $this->login($username, $password) )
    … …  
    44504446                                default:
    44514447                                        return new IXR_Error( 401, __( 'Invalid post type' ) );
    4452                                         break;
    44534448                        }
    44544449                        $author = get_userdata( $content_struct['wp_author_id'] );
    … …  
    47384733
    47394734                // Let WordPress manage slug if none was provided.
    4740                 $post_name = "";
    47414735                $post_name = $postdata['post_name'];
    47424736                if ( isset($content_struct['wp_slug']) )
    … …  
    47744768                                default:
    47754769                                        return new IXR_Error( 401, __( 'Invalid post type' ) );
    4776                                         break;
    47774770                        }
    47784771                        $post_author = $content_struct['wp_author_id'];
    … …  
    56855678                $pagelinkedfrom = $args[0];
    56865679                $pagelinkedto   = $args[1];
    5687 
    5688                 $title = '';
    56895680
    56905681                $pagelinkedfrom = str_replace('&', '&', $pagelinkedfrom);
Note: See TracChangeset for help on using the changeset viewer.