Changeset 45915 for trunk/src/wp-includes/post.php
- Timestamp:
- 08/30/2019 11:34:11 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.
Note: See TracChangeset
for help on using the changeset viewer.