Make WordPress Core

Ticket #51852: 51852.diff

File 51852.diff, 695 bytes (added by peterwilsoncc, 4 years ago)
  • src/wp-includes/post.php

    diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
    index 4f9c3f8086..04654d1b36 100644
    a b function is_post_type_viewable( $post_type ) { 
    20052005/**
    20062006 * Retrieves an array of the latest posts, or posts matching the given criteria.
    20072007 *
     2008 * For more information on the accepted arguments, see the
     2009 * {@link https://developer.wordpress.org/reference/classes/wp_query/
     2010 * WP_Query} documentation in the Developer Handbook.
     2011 *
     2012 * The `$ignore_sticky_posts` and `$no_found_rows` arguments are ignored by
     2013 * this function and both are set to `true`.
     2014 *
    20082015 * The defaults are as follows:
    20092016 *
    20102017 * @since 1.2.0