Changeset 45915
- Timestamp:
- 08/30/2019 11:34:11 AM (5 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r45739 r45915 419 419 * @param string $desc Optional. Description of the side-loaded file. Default null. 420 420 * @param array $post_data Optional. Post data to override. Default empty array. 421 * @return int| objectThe ID of the attachment or a WP_Error on failure.421 * @return int|WP_Error The ID of the attachment or a WP_Error on failure. 422 422 */ 423 423 function media_handle_sideload( $file_array, $post_id, $desc = null, $post_data = array() ) { -
trunk/src/wp-includes/class-wp-user-query.php
r45590 r45915 180 180 * conjunction with pagination. Value -1 (all) is supported, but 181 181 * should be used with caution on larger sites. 182 * Default empty(all users).182 * Default -1 (all users). 183 183 * @type int $paged When used with number, defines the page of results to return. 184 184 * Default 1. -
trunk/src/wp-includes/meta.php
r45786 r45915 878 878 * @global wpdb $wpdb WordPress database abstraction object. 879 879 * 880 * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user).881 * @param int|array $object_ids Array or comma delimited list of object IDs to update cache for880 * @param string $meta_type Type of object metadata is for (e.g., comment, post, term, or user). 881 * @param string|int[] $object_ids Array or comma delimited list of object IDs to update cache for. 882 882 * @return array|false Metadata cache for the specified objects, or false on failure. 883 883 */ … … 913 913 * 914 914 * @param mixed $check Whether to allow updating the meta cache of the given type. 915 * @param array$object_ids Array of object IDs to update the meta cache for.915 * @param int[] $object_ids Array of object IDs to update the meta cache for. 916 916 */ 917 917 $check = apply_filters( "update_{$meta_type}_metadata_cache", null, $object_ids ); -
trunk/src/wp-includes/post.php
r45851 r45915 1267 1267 * @type bool $show_ui Whether to generate and allow a UI for managing this post type in the 1268 1268 * admin. Default is value of $public. 1269 * @type bool 1269 * @type bool|string $show_in_menu Where to show the post type in the admin menu. To work, $show_ui 1270 1270 * must be true. If true, the post type is shown in its own top level 1271 1271 * menu. If false, no menu is shown. If a string of an existing top … … 6417 6417 * @since 1.5.1 6418 6418 * 6419 * @param array$posts Array of post objects (passed by reference).6419 * @param WP_Post[] $posts Array of post objects (passed by reference). 6420 6420 */ 6421 6421 function update_post_cache( &$posts ) { … … 6494 6494 * @since 1.5.0 6495 6495 * 6496 * @param array$posts Array of Post objects6497 * @param string $post_type Optional. Post type. Default 'post'.6498 * @param bool $update_term_cache Optional. Whether to update the term cache. Default true.6499 * @param bool $update_meta_cache Optional. Whether to update the meta cache. Default true.6496 * @param WP_Post[] $posts Array of Post objects 6497 * @param string $post_type Optional. Post type. Default 'post'. 6498 * @param bool $update_term_cache Optional. Whether to update the term cache. Default true. 6499 * @param bool $update_meta_cache Optional. Whether to update the meta cache. Default true. 6500 6500 */ 6501 6501 function update_post_caches( &$posts, $post_type = 'post', $update_term_cache = true, $update_meta_cache = true ) { … … 6549 6549 * @since 2.1.0 6550 6550 * 6551 * @param array $post_ids Listof post IDs.6551 * @param int[] $post_ids Array of post IDs. 6552 6552 * @return array|false Returns false if there is nothing to update or an array 6553 6553 * of metadata. -
trunk/src/wp-includes/taxonomy.php
r45893 r45915 215 215 * @global array $wp_taxonomies The registered taxonomies. 216 216 * 217 * @param array|string|WP_Post $object Name of the type of taxonomy object, or an object (row from posts)218 * @param string $output Optional. The type of output to return in the array. Accepts either219 * taxonomy'names' or 'objects'. Default 'names'.220 * @return array The names of all taxonomy of $object_type.217 * @param string|string[]|WP_Post $object Name of the type of taxonomy object, or an object (row from posts) 218 * @param string $output Optional. The type of output to return in the array. Accepts either 219 * 'names' or 'objects'. Default 'names'. 220 * @return string[]|WP_Taxonomy[] The names or objects of all taxonomies of `$object_type`. 221 221 */ 222 222 function get_object_taxonomies( $object, $output = 'names' ) { … … 1960 1960 * @since 4.7.0 Refactored to use WP_Term_Query, and to support any WP_Term_Query arguments. 1961 1961 * 1962 * @param int| array$object_ids The ID(s) of the object(s) to retrieve.1963 * @param string| array $taxonomies The taxonomies to retrieve terms from.1964 * @param array|string $args See WP_Term_Query::__construct() for supported arguments.1962 * @param int|int[] $object_ids The ID(s) of the object(s) to retrieve. 1963 * @param string|string[] $taxonomies The taxonomy names to retrieve terms from. 1964 * @param array|string $args See WP_Term_Query::__construct() for supported arguments. 1965 1965 * @return array|WP_Error The requested term data or empty array if no terms found. 1966 * WP_Error if any of the $taxonomies don't exist.1966 * WP_Error if any of the taxonomies don't exist. 1967 1967 */ 1968 1968 function wp_get_object_terms( $object_ids, $taxonomies, $args = array() ) { … … 1993 1993 * @since 4.9.0 1994 1994 * 1995 * @param array 1996 * 1997 * @param int |array $object_ids Object ID or array ofIDs.1998 * @param string |array $taxonomies The taxonomies to retrieve terms from.1995 * @param array $args An array of arguments for retrieving terms for the given object(s). 1996 * See {@see wp_get_object_terms()} for details. 1997 * @param int[] $object_ids Array of object IDs. 1998 * @param string[] $taxonomies Array of taxonomy names to retrieve terms from. 1999 1999 */ 2000 2000 $args = apply_filters( 'wp_get_object_terms_args', $args, $object_ids, $taxonomies ); … … 2040 2040 * @since 4.2.0 2041 2041 * 2042 * @param array $terms An array of terms for the given object or objects.2043 * @param array $object_ids Array of object IDs for which `$terms`were retrieved.2044 * @param array $taxonomies Array of taxonomies from which `$terms`were retrieved.2045 * @param array $args An array of arguments for retrieving terms for the given2046 * object(s). See wp_get_object_terms() for details.2042 * @param array $terms Array of terms for the given object or objects. 2043 * @param int[] $object_ids Array of object IDs for which terms were retrieved. 2044 * @param string[] $taxonomies Array of taxonomy names from which terms were retrieved. 2045 * @param array $args Array of arguments for retrieving terms for the given 2046 * object(s). See wp_get_object_terms() for details. 2047 2047 */ 2048 2048 $terms = apply_filters( 'get_object_terms', $terms, $object_ids, $taxonomies, $args ); … … 2059 2059 * @since 2.8.0 2060 2060 * 2061 * @param array $terms An array of terms for the given object or objects.2062 * @param int |array $object_ids Object ID or array of IDs.2063 * @param string $taxonomies SQL-formatted (comma-separated and quoted) list of taxonomy names.2064 * @param array $args An array of arguments for retrieving terms for the given object(s).2065 * See wp_get_object_terms() for details.2061 * @param array $terms Array of terms for the given object or objects. 2062 * @param int[] $object_ids Array of object IDs for which terms were retrieved. 2063 * @param string[] $taxonomies Array of taxonomy names from which terms were retrieved. 2064 * @param array $args Array of arguments for retrieving terms for the given 2065 * object(s). See wp_get_object_terms() for details. 2066 2066 */ 2067 2067 return apply_filters( 'wp_get_object_terms', $terms, $object_ids, $taxonomies, $args ); … … 2422 2422 * @param string $taxonomy The context in which to relate the term to the object. 2423 2423 * @param bool $append Optional. If false will delete difference of terms. Default false. 2424 * @return array|WP_Error Term taxonomy IDs of the affected terms .2424 * @return array|WP_Error Term taxonomy IDs of the affected terms or WP_Error on failure. 2425 2425 */ 2426 2426 function wp_set_object_terms( $object_id, $terms, $taxonomy, $append = false ) { … … 3366 3366 * @since 2.3.0 3367 3367 * 3368 * @param string| array$object_ids Comma-separated list or array of term object IDs.3369 * @param array|string $object_type The taxonomy object type.3368 * @param string|int[] $object_ids Comma-separated list or array of term object IDs. 3369 * @param string|string[] $object_type The taxonomy object type or array of the same. 3370 3370 * @return void|false False if all of the terms in `$object_ids` are already cached. 3371 3371 */
Note: See TracChangeset
for help on using the changeset viewer.