Make WordPress Core


Ignore:
Timestamp:
08/30/2019 11:34:11 AM (6 years ago)
Author:
johnbillion
Message:

Docs: Correct and improve inline docs relating to caching, terms, meta, and some misc tweaks.

See #47110

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r45851 r45915  
    12671267 *     @type bool        $show_ui               Whether to generate and allow a UI for managing this post type in the
    12681268 *                                              admin. Default is value of $public.
    1269  *     @type bool        $show_in_menu          Where to show the post type in the admin menu. To work, $show_ui
     1269 *     @type bool|string $show_in_menu          Where to show the post type in the admin menu. To work, $show_ui
    12701270 *                                              must be true. If true, the post type is shown in its own top level
    12711271 *                                              menu. If false, no menu is shown. If a string of an existing top
     
    64176417 * @since 1.5.1
    64186418 *
    6419  * @param array $posts Array of post objects (passed by reference).
     6419 * @param WP_Post[] $posts Array of post objects (passed by reference).
    64206420 */
    64216421function update_post_cache( &$posts ) {
     
    64946494 * @since 1.5.0
    64956495 *
    6496  * @param array $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.
     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.
    65006500 */
    65016501function update_post_caches( &$posts, $post_type = 'post', $update_term_cache = true, $update_meta_cache = true ) {
     
    65496549 * @since 2.1.0
    65506550 *
    6551  * @param array $post_ids List of post IDs.
     6551 * @param int[] $post_ids Array of post IDs.
    65526552 * @return array|false Returns false if there is nothing to update or an array
    65536553 *                     of metadata.
Note: See TracChangeset for help on using the changeset viewer.