Rename is_front() to is_front_page() to avoid conflict with bbPress. see #3682
git-svn-id: http://svn.automattic.com/wordpress/trunk@6740 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
7b946b9007
commit
bddedf8c3e
|
@ -135,7 +135,7 @@ function is_feed () {
|
|||
}
|
||||
|
||||
/**
|
||||
* is_front() - Is it the front of the site, whether blog view or a WP Page?
|
||||
* is_front_page() - Is it the front of the site, whether blog view or a WP Page?
|
||||
*
|
||||
* @since 2.5
|
||||
* @uses is_home
|
||||
|
@ -143,7 +143,7 @@ function is_feed () {
|
|||
*
|
||||
* @return bool True if front of site
|
||||
*/
|
||||
function is_front () {
|
||||
function is_front_page () {
|
||||
// most likely case
|
||||
if ( 'posts' == get_option('show_on_front') && is_home() )
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue