Changeset 55539
- Timestamp:
- 03/12/2023 02:48:03 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r55365 r55539 199 199 * 200 200 * Contrary to the way it's named, this filter does not control whether XML-RPC is *fully* 201 * enabled, rather, it only controls whether XML-RPC methods requiring authentication - such202 * as for publishing purposes - are enabled.201 * enabled, rather, it only controls whether XML-RPC methods requiring authentication - 202 * such as for publishing purposes - are enabled. 203 203 * 204 204 * Further, the filter does not control whether pingbacks or other custom endpoints that don't … … 1910 1910 } else { 1911 1911 /** 1912 * Filters the list ofpost query fields used by the given XML-RPC method.1912 * Filters the default post query fields used by the given XML-RPC method. 1913 1913 * 1914 1914 * @since 3.4.0 1915 1915 * 1916 * @param array $fields Array of post fields. Default array contains 'post', 'terms', and 'custom_fields'. 1916 * @param array $fields An array of post fields to retrieve. By default, 1917 * contains 'post', 'terms', and 'custom_fields'. 1917 1918 * @param string $method Method name. 1918 1919 */ … … 1961 1962 * @type array $4 Optional. The subset of post type fields to return in the response array. 1962 1963 * } 1963 * @return array|IXR_Error Array contain sa collection of posts.1964 * @return array|IXR_Error Array containing a collection of posts. 1964 1965 */ 1965 1966 public function wp_getPosts( $args ) { … … 2541 2542 } else { 2542 2543 /** 2543 * Filters the taxonomy query fields used by the given XML-RPC method.2544 * Filters the default taxonomy query fields used by the given XML-RPC method. 2544 2545 * 2545 2546 * @since 3.4.0 2546 2547 * 2547 * @param array $fields An array of taxonomy fields to retrieve. 2548 * @param array $fields An array of taxonomy fields to retrieve. By default, 2549 * contains 'labels', 'cap', and 'object_type'. 2548 2550 * @param string $method The method name. 2549 2551 */ … … 2689 2691 * @since 3.5.0 2690 2692 * 2691 * @param array $fields User query fields for given method. Default'all'.2693 * @param array $fields An array of user fields to retrieve. By default, contains 'all'. 2692 2694 * @param string $method The method name. 2693 2695 */ … … 3606 3608 * Retrieves comments. 3607 3609 * 3608 * Besides the common blog_id (unused), username, and password arguments, it takes a filter3609 * array aslast argument.3610 * Besides the common blog_id (unused), username, and password arguments, 3611 * it takes a filter array as the last argument. 3610 3612 * 3611 3613 * Accepted 'filter' keys are 'status', 'post_id', 'offset', and 'number'. 3612 3614 * 3613 3615 * The defaults are as follows: 3614 * - 'status' - Default is ''. Filter by status (e.g., 'approve', 'hold') 3615 * - 'post_id' - Default is ''. The post where the comment is posted. Empty string shows all comments. 3616 * - 'number' - Default is 10. Total number of media items to retrieve. 3617 * - 'offset' - Default is 0. See WP_Query::query() for more. 3616 * - 'status' - Default is ''. Filter by status (e.g., 'approve', 'hold') 3617 * - 'post_id' - Default is ''. The post where the comment is posted. 3618 * Empty string shows all comments. 3619 * - 'number' - Default is 10. Total number of media items to retrieve. 3620 * - 'offset' - Default is 0. See WP_Query::query() for more. 3618 3621 * 3619 3622 * @since 2.7.0 … … 3627 3630 * @type array $3 Optional. Query arguments. 3628 3631 * } 3629 * @return array|IXR_Error Contains a collection of comments. See wp_xmlrpc_server::wp_getComment() 3630 * for a description of each item contents. 3632 * @return array|IXR_Error Array containing a collection of comments. 3633 * See wp_xmlrpc_server::wp_getComment() for a description 3634 * of each item contents. 3631 3635 */ 3632 3636 public function wp_getComments( $args ) { … … 3760 3764 * Edits a comment. 3761 3765 * 3762 * Besides the common blog_id (unused), username, and password arguments, it takes a3763 * comment_id integer and a content_struct array aslast argument.3766 * Besides the common blog_id (unused), username, and password arguments, 3767 * it takes a comment_id integer and a content_struct array as the last argument. 3764 3768 * 3765 3769 * The allowed keys in the content_struct array are: … … 4378 4382 * Retrieves a collection of media library items (or attachments). 4379 4383 * 4380 * Besides the common blog_id (unused), username, and password arguments, it takes a filter4381 * array aslast argument.4384 * Besides the common blog_id (unused), username, and password arguments, 4385 * it takes a filter array as the last argument. 4382 4386 * 4383 4387 * Accepted 'filter' keys are 'parent_id', 'mime_type', 'offset', and 'number'. 4384 4388 * 4385 4389 * The defaults are as follows: 4386 * - 'number' - Default is 5. Total number of media items to retrieve. 4387 * - 'offset' - Default is 0. See WP_Query::query() for more. 4388 * - 'parent_id' - Default is ''. The post where the media item is attached. Empty string shows all media items. 0 shows unattached media items. 4390 * - 'number' - Default is 5. Total number of media items to retrieve. 4391 * - 'offset' - Default is 0. See WP_Query::query() for more. 4392 * - 'parent_id' - Default is ''. The post where the media item is attached. 4393 * Empty string shows all media items. 0 shows unattached media items. 4389 4394 * - 'mime_type' - Default is ''. Filter by mime type (e.g., 'image/jpeg', 'application/pdf') 4390 4395 * … … 4397 4402 * @type string $1 Username. 4398 4403 * @type string $2 Password. 4399 * @type array $3 Query arguments.4404 * @type array $3 Optional. Query arguments. 4400 4405 * } 4401 * @return array|IXR_Error Containsa collection of media items.4402 * See wp_xmlrpc_server::wp_getMediaItem() for4403 * a descriptionof each item contents.4406 * @return array|IXR_Error Array containing a collection of media items. 4407 * See wp_xmlrpc_server::wp_getMediaItem() for a description 4408 * of each item contents. 4404 4409 */ 4405 4410 public function wp_getMediaLibrary( $args ) { … … 4540 4545 } else { 4541 4546 /** 4542 * Filters the default query fields used by the given XML-RPC method.4547 * Filters the default post type query fields used by the given XML-RPC method. 4543 4548 * 4544 4549 * @since 3.4.0 4545 4550 * 4546 * @param array $fields An array of post type query fields for the given method. 4551 * @param array $fields An array of post type fields to retrieve. By default, 4552 * contains 'labels', 'cap', and 'taxonomies'. 4547 4553 * @param string $method The method name. 4548 4554 */ … … 4650 4656 * @type array $4 Optional. Fields to fetch. 4651 4657 * } 4652 * @return array|IXR_Error containsa collection of posts.4658 * @return array|IXR_Error Array containing a collection of posts. 4653 4659 */ 4654 4660 public function wp_getRevisions( $args ) { … … 4671 4677 * @since 3.5.0 4672 4678 * 4673 * @param array $field An array of revision query fields. 4679 * @param array $field An array of revision fields to retrieve. By default, 4680 * contains 'post_date' and 'post_date_gmt'. 4674 4681 * @param string $method The method name. 4675 4682 */
Note: See TracChangeset
for help on using the changeset viewer.