Make WordPress Core

Ticket #17094: rpc.diff

File rpc.diff, 911 bytes (added by josephscott, 12 years ago)
  • class-wp-xmlrpc-server.php

     
    16311631                        return $this->error;
    16321632
    16331633                do_action( 'xmlrpc_call', 'wp.getPostFormats' );
    1634                 return get_post_format_strings();
     1634
     1635                $formats = get_post_format_strings();
     1636
     1637                # find out if they want a list of currently supports formats
     1638                if ( isset( $args[3] ) && is_array( $args[3] ) ) {
     1639                        if ( $args[3]['show-supported'] ) {
     1640                                if ( current_theme_supports( 'post-formats' ) ) {
     1641                                        $supported = get_theme_support( 'post-formats' );
     1642
     1643                                        $data['all'] = $formats;
     1644                                        $data['supported'] = $supported[0];
     1645
     1646                                        $formats = $data;
     1647                                }
     1648                        }
     1649                }
     1650
     1651                return $formats;
    16351652        }
    16361653
    16371654        /* Blogger API functions.
     
    35243541                return $pingbacks;
    35253542        }
    35263543}
    3527 ?>
    3528  No newline at end of file
     3544?>