Docs: Improve the syntax and tensing within the DocBlock for is_home()
.
See #32246. git-svn-id: https://develop.svn.wordpress.org/trunk@37862 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c97f234e6f
commit
b36a6b44ed
@ -407,22 +407,22 @@ function is_front_page() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Is the query for the blog homepage?
|
* Determines if the query is for the blog homepage.
|
||||||
*
|
*
|
||||||
* This is the page which shows the time based blog content of your site.
|
* The blog homepage is the page that shows the time-based blog content of the site.
|
||||||
*
|
*
|
||||||
* Depends on the site's "Front page displays" Reading Settings 'show_on_front' and 'page_for_posts'.
|
* is_home() is dependent on the site's "Front page displays" Reading Settings 'show_on_front'
|
||||||
|
* and 'page_for_posts'.
|
||||||
*
|
*
|
||||||
* If you set a static page for the front page of your site, this function will return
|
* If a static page is set for the front page of the site, this function will return true only
|
||||||
* true only on the page you set as the "Posts page".
|
* on the page you set as the "Posts page".
|
||||||
*
|
|
||||||
* @see is_front_page()
|
|
||||||
*
|
*
|
||||||
* @since 1.5.0
|
* @since 1.5.0
|
||||||
*
|
*
|
||||||
|
* @see is_front_page()
|
||||||
* @global WP_Query $wp_query Global WP_Query instance.
|
* @global WP_Query $wp_query Global WP_Query instance.
|
||||||
*
|
*
|
||||||
* @return bool True if blog view homepage.
|
* @return bool True if blog view homepage, otherwise false.
|
||||||
*/
|
*/
|
||||||
function is_home() {
|
function is_home() {
|
||||||
global $wp_query;
|
global $wp_query;
|
||||||
|
Loading…
Reference in New Issue
Block a user