mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-01 19:24:34 +00:00
Docs: Improve documentation for have_posts(), have_comments(), and their WP_Query counterparts.
Props stevenlinx. Fixes #50610. git-svn-id: https://develop.svn.wordpress.org/trunk@48406 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -921,7 +921,7 @@ function is_main_query() {
|
||||
*
|
||||
* @global WP_Query $wp_query WordPress Query object.
|
||||
*
|
||||
* @return bool
|
||||
* @return bool True if posts are available, false if end of the loop.
|
||||
*/
|
||||
function have_posts() {
|
||||
global $wp_query;
|
||||
@@ -981,7 +981,7 @@ function the_post() {
|
||||
*
|
||||
* @global WP_Query $wp_query WordPress Query object.
|
||||
*
|
||||
* @return bool
|
||||
* @return bool True if comments are available, false if no more comments.
|
||||
*/
|
||||
function have_comments() {
|
||||
global $wp_query;
|
||||
|
||||
Reference in New Issue
Block a user