Changeset 18254 for trunk/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 06/10/2011 11:01:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r18119 r18254 1046 1046 * - 'number' - Default is 10. Total number of media items to retrieve. 1047 1047 * - 'offset' - Default is 0. See {@link WP_Query::query()} for more. 1048 * 1048 * 1049 1049 * @since 2.7.0 1050 1050 * … … 1149 1149 * Edit comment. 1150 1150 * 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 1152 1152 * comment_id integer and a content_struct array as last argument. 1153 1153 * … … 1684 1684 do_action( 'xmlrpc_call', 'wp.getPostFormats' ); 1685 1685 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 } 1701 1701 1702 1702 return $formats; … … 2142 2142 /** 2143 2143 * Create a new post. 2144 * 2144 * 2145 2145 * The 'content_struct' argument must contain: 2146 2146 * - title … … 2151 2151 * - mt_tb_ping_urls 2152 2152 * - categories 2153 * 2153 * 2154 2154 * Also, it can optionally contain: 2155 2155 * - wp_slug
Note: See TracChangeset
for help on using the changeset viewer.