Ticket #20566: 20566.xmlrpc-docs.diff
File 20566.xmlrpc-docs.diff, 3.0 KB (added by , 13 years ago) |
---|
-
wp-includes/class-wp-xmlrpc-server.php
493 493 /** 494 494 * Checks if the method received at least the minimum number of arguments. 495 495 * 496 * @since 3.4 496 * @since 3.4.0 497 497 * 498 498 * @param string|array $args Sanitize single string or array of strings. 499 499 * @param int $count Minimum number of arguments. … … 569 569 * 570 570 * @access protected 571 571 * 572 * @param $date572 * @param string $date 573 573 * @return IXR_Date 574 574 */ 575 575 protected function _convert_date( $date ) { … … 580 580 } 581 581 582 582 /** 583 * Convert a WordPress gmtdate string to an IXR_Date object.583 * Convert a WordPress GMT date string to an IXR_Date object. 584 584 * 585 585 * @access protected 586 586 * 587 * @param $date 587 * @param string $date_gmt 588 * @param string $date 588 589 * @return IXR_Date 589 590 */ 590 591 protected function _convert_date_gmt( $date_gmt, $date ) { … … 728 729 * @access protected 729 730 * 730 731 * @param object $media_item The unprepared media item data 731 * @param string $ size The image size to use for the thumbnail URL732 * @param string $thumbnail_size The image size to use for the thumbnail URL 732 733 * @return array The prepared media item data 733 734 */ 734 protected function _prepare_media_item( $media_item, $thumbnail_size ='thumbnail' ) {735 protected function _prepare_media_item( $media_item, $thumbnail_size = 'thumbnail' ) { 735 736 $_media_item = array( 736 737 'attachment_id' => strval( $media_item->ID ), 737 738 'date_created_gmt' => $this->_convert_date_gmt( $media_item->post_date_gmt, $media_item->post_date ), … … 757 758 * 758 759 * @since 3.4.0 759 760 * 760 * @uses wp_insert_post()761 761 * @param array $args Method parameters. Contains: 762 762 * - int $blog_id 763 763 * - string $username … … 805 805 return $this->_insert_post( $user, $content_struct ); 806 806 } 807 807 808 /* 808 /** 809 809 * Helper method for filtering out elements from an array. 810 810 * 811 811 * @since 3.4.0 812 * 813 * @param int $count Number to compare to one. 812 814 */ 813 function _is_greater_than_one( $count ) {815 protected function _is_greater_than_one( $count ) { 814 816 return $count > 1; 815 817 } 816 818 817 /* 819 /** 818 820 * Helper method for wp_newPost and wp_editPost, containing shared logic. 819 821 * 820 822 * @since 3.4.0 823 * @uses wp_insert_post() 824 * 825 * @param WP_User $user The post author if post_author isn't set in $content_struct. 826 * @param array $content_struct Post data to insert. 821 827 */ 822 828 protected function _insert_post( $user, $content_struct ) { 823 829 $defaults = array( 'post_status' => 'draft', 'post_type' => 'post', 'post_author' => 0, … … 1047 1053 /** 1048 1054 * Edit a post for any registered post type. 1049 1055 * 1050 * @since 3.4.01051 *1052 1056 * The $content_struct parameter only needs to contain fields that 1053 1057 * should be changed. All other fields will retain their existing values. 1054 1058 * 1055 * @uses wp_insert_post() 1059 * @since 3.4.0 1060 * 1056 1061 * @param array $args Method parameters. Contains: 1057 1062 * - int $blog_id 1058 1063 * - string $username