Make WordPress Core


Ignore:
Timestamp:
12/13/2010 09:21:50 PM (13 years ago)
Author:
ryan
Message:

Pink trailing whites.

File:
1 edited

Legend:

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

    r16873 r16900  
    11021102        if ( !current_user_can( 'edit_comment', $comment_ID ) )
    11031103            return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
    1104            
     1104
    11051105        do_action('xmlrpc_call', 'wp.deleteComment');
    11061106
     
    11361136        if ( !current_user_can( 'edit_comment', $comment_ID ) )
    11371137            return new IXR_Error( 403, __( 'You are not allowed to moderate comments on this site.' ) );
    1138            
     1138
    11391139        do_action('xmlrpc_call', 'wp.editComment');
    11401140
     
    16091609        return $attachments_struct;
    16101610    }
    1611    
    1612     /** 
    1613       * Retrives a list of post formats used by the site 
    1614       * 
     1611
     1612    /**
     1613      * Retrives a list of post formats used by the site
     1614      *
    16151615      * @since 3.1
    1616       * 
    1617       * @param array $args Method parameters. Contains: 
    1618       *  - blog_id 
    1619       *  - username 
    1620       *  - password 
    1621       * @return array 
    1622       */ 
     1616      *
     1617      * @param array $args Method parameters. Contains:
     1618      *  - blog_id
     1619      *  - username
     1620      *  - password
     1621      * @return array
     1622      */
    16231623    function wp_getPostFormats( $args ) {
    16241624        $this->escape( $args );
     
    16301630        if ( !$user = $this->login( $username, $password ) )
    16311631            return $this->error;
    1632            
     1632
    16331633        do_action( 'xmlrpc_call', 'wp.getPostFormats' );
    16341634        return get_post_format_strings();
    1635     } 
     1635    }
    16361636
    16371637    /* Blogger API functions.
     
    20932093
    20942094        do_action('xmlrpc_call', 'metaWeblog.newPost');
    2095        
     2095
    20962096        $page_template = '';
    20972097        if ( !empty( $content_struct['post_type'] ) ) {
     
    21282128                $cap = 'edit_posts';
    21292129            $error_message = __( 'Sorry, you are not allowed to publish posts on this site.' );
    2130             $post_type = 'post';           
     2130            $post_type = 'post';
    21312131        }
    21322132
     
    21352135
    21362136        // Check for a valid post format if one was given
    2137         if ( isset( $content_struct['wp_post_format'] ) ) { 
    2138             $content_struct['wp_post_format'] = sanitize_key( $content_struct['wp_post_format'] ); 
     2137        if ( isset( $content_struct['wp_post_format'] ) ) {
     2138            $content_struct['wp_post_format'] = sanitize_key( $content_struct['wp_post_format'] );
    21392139            if ( !array_key_exists( $content_struct['wp_post_format'], get_post_format_strings() ) ) {
    21402140                return new IXR_Error( 404, __( 'Invalid post format' ) );
     
    23312331
    23322332        $this->attach_uploads( $post_ID, $post_content );
    2333        
     2333
    23342334        // Handle post formats if assigned, value is validated earlier
    23352335        // in this function
    23362336        if ( isset( $content_struct['wp_post_format'] ) )
    2337             wp_set_post_terms( $post_ID, array( 'post-format-' . $content_struct['wp_post_format'] ), 'post_format' ); 
     2337            wp_set_post_terms( $post_ID, array( 'post-format-' . $content_struct['wp_post_format'] ), 'post_format' );
    23382338
    23392339        logIO('O', "Posted ! ID: $post_ID");
     
    24372437                $cap = 'edit_posts';
    24382438            $error_message = __( 'Sorry, you are not allowed to publish posts on this site.' );
    2439             $post_type = 'post';           
     2439            $post_type = 'post';
    24402440        }
    24412441
     
    24442444
    24452445        // Check for a valid post format if one was given
    2446         if ( isset( $content_struct['wp_post_format'] ) ) { 
    2447             $content_struct['wp_post_format'] = sanitize_key( $content_struct['wp_post_format'] ); 
     2446        if ( isset( $content_struct['wp_post_format'] ) ) {
     2447            $content_struct['wp_post_format'] = sanitize_key( $content_struct['wp_post_format'] );
    24482448            if ( !array_key_exists( $content_struct['wp_post_format'], get_post_format_strings() ) ) {
    24492449                return new IXR_Error( 404, __( 'Invalid post format' ) );
     
    26502650
    26512651        $this->attach_uploads( $ID, $post_content );
    2652        
     2652
    26532653        // Handle post formats if assigned, validation is handled
    26542654        // earlier in this function
    26552655        if ( isset( $content_struct['wp_post_format'] ) )
    2656             wp_set_post_terms( $post_ID, array( 'post-format-' . $content_struct['wp_post_format'] ), 'post_format' ); 
     2656            wp_set_post_terms( $post_ID, array( 'post-format-' . $content_struct['wp_post_format'] ), 'post_format' );
    26572657
    26582658        logIO('O',"(MW) Edited ! ID: $post_ID");
     
    27222722            if ( $postdata['post_status'] === 'future' )
    27232723                $postdata['post_status'] = 'publish';
    2724                
    2725             // Get post format 
     2724
     2725            // Get post format
    27262726            $post_format = get_post_format( $post_ID );
    27272727            if ( empty( $post_format ) )
     
    28492849            if ( $entry['post_status'] === 'future' )
    28502850                $entry['post_status'] = 'publish';
    2851                
    2852             // Get post format 
     2851
     2852            // Get post format
    28532853            $post_format = get_post_format( $entry['ID'] );
    28542854            if ( empty( $post_format ) )
Note: See TracChangeset for help on using the changeset viewer.