Make WordPress Core

Changeset 48406


Ignore:
Timestamp:
07/08/2020 11:09:08 AM (6 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve documentation for have_posts(), have_comments(), and their WP_Query counterparts.

Props stevenlinx.
Fixes #50610.

Location:
trunk/src/wp-includes
Files:
2 edited

Legend:

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

    r48328 r48406  
    33203320         * @since 1.5.0
    33213321         *
    3322          * @return bool True if posts are available, false if end of loop.
     3322         * @return bool True if posts are available, false if end of the loop.
    33233323         */
    33243324        public function have_posts() {
    … …  
    34063406         * @since 2.2.0
    34073407         *
    3408          * @return bool True, if more comments. False, if no more posts.
     3408         * @return bool True if comments are available, false if no more comments.
    34093409         */
    34103410        public function have_comments() {
  • trunk/src/wp-includes/query.php

    r48100 r48406  
    922922 * @global WP_Query $wp_query WordPress Query object.
    923923 *
    924  * @return bool
     924 * @return bool True if posts are available, false if end of the loop.
    925925 */
    926926function have_posts() {
    … …  
    982982 * @global WP_Query $wp_query WordPress Query object.
    983983 *
    984  * @return bool
     984 * @return bool True if comments are available, false if no more comments.
    985985 */
    986986function have_comments() {
Note: See TracChangeset for help on using the changeset viewer.