Changeset 20782 for trunk/wp-includes/class-wp-xmlrpc-server.php
- Timestamp:
- 05/14/2012 10:10:01 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/class-wp-xmlrpc-server.php
r20775 r20782 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. … … 570 570 * @access protected 571 571 * 572 * @param $date572 * @param string $date 573 573 * @return IXR_Date 574 574 */ … … 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 */ … … 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 ), … … 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 … … 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 function _is_greater_than_one( $count ) { 812 * 813 * @param int $count Number to compare to one. 814 */ 815 private 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 ) { … … 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
Note: See TracChangeset
for help on using the changeset viewer.