Make WordPress Core


Ignore:
Timestamp:
06/10/2011 11:01:45 PM (14 years ago)
Author:
ryan
Message:

Bring out the pinking shears.

File:
1 edited

Legend:

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

    r18119 r18254  
    10461046     * - 'number' - Default is 10. Total number of media items to retrieve.
    10471047     * - 'offset' - Default is 0. See {@link WP_Query::query()} for more.
    1048      * 
     1048     *
    10491049     * @since 2.7.0
    10501050     *
     
    11491149     * Edit comment.
    11501150     *
    1151      * Besides the common blog_id, username, and password arguments, it takes a 
     1151     * Besides the common blog_id, username, and password arguments, it takes a
    11521152     * comment_id integer and a content_struct array as last argument.
    11531153     *
     
    16841684        do_action( 'xmlrpc_call', 'wp.getPostFormats' );
    16851685
    1686         $formats = get_post_format_strings(); 
    1687 
    1688         # find out if they want a list of currently supports formats 
    1689         if ( isset( $args[3] ) && is_array( $args[3] ) ) { 
    1690             if ( $args[3]['show-supported'] ) { 
    1691                 if ( current_theme_supports( 'post-formats' ) ) { 
    1692                     $supported = get_theme_support( 'post-formats' ); 
    1693 
    1694                     $data['all'] = $formats; 
    1695                     $data['supported'] = $supported[0]; 
    1696 
    1697                     $formats = $data; 
    1698                 } 
    1699             } 
    1700         } 
     1686        $formats = get_post_format_strings();
     1687
     1688        # find out if they want a list of currently supports formats
     1689        if ( isset( $args[3] ) && is_array( $args[3] ) ) {
     1690            if ( $args[3]['show-supported'] ) {
     1691                if ( current_theme_supports( 'post-formats' ) ) {
     1692                    $supported = get_theme_support( 'post-formats' );
     1693
     1694                    $data['all'] = $formats;
     1695                    $data['supported'] = $supported[0];
     1696
     1697                    $formats = $data;
     1698                }
     1699            }
     1700        }
    17011701
    17021702        return $formats;
     
    21422142    /**
    21432143     * Create a new post.
    2144      * 
     2144     *
    21452145     * The 'content_struct' argument must contain:
    21462146     *  - title
     
    21512151     *  - mt_tb_ping_urls
    21522152     *  - categories
    2153      * 
     2153     *
    21542154     * Also, it can optionally contain:
    21552155     *  - wp_slug
Note: See TracChangeset for help on using the changeset viewer.