Make WordPress Core

Ticket #58189: 58189.diff

File 58189.diff, 1.2 KB (added by DrewAPicture, 19 months ago)
  • src/wp-includes/post.php

     
    72397239 *
    72407240 * @since 1.5.0
    72417241 *
    7242  * @param WP_Post[] $posts             Array of post objects (passed by reference).
    7243  * @param string    $post_type         Optional. Post type. Default 'post'.
    7244  * @param bool      $update_term_cache Optional. Whether to update the term cache. Default true.
    7245  * @param bool      $update_meta_cache Optional. Whether to update the meta cache. Default true.
     7242 * @param WP_Post[]    $posts             Array of post objects (passed by reference).
     7243 * @param string|array $post_type         Optional. Single post type, 'any', or an array of post types.
     7244 *                                        Default 'post'.
     7245 * @param bool         $update_term_cache Optional. Whether to update the term cache. Default true.
     7246 * @param bool         $update_meta_cache Optional. Whether to update the meta cache. Default true.
    72467247 */
    72477248function update_post_caches( &$posts, $post_type = 'post', $update_term_cache = true, $update_meta_cache = true ) {
    72487249        // No point in doing all this work if we didn't match any posts.