Changeset 6704
- Timestamp:
- 02/02/2008 12:13:34 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/query.php
r6688 r6704 135 135 } 136 136 137 /** 138 * is_front() - Is it the front of the site, whether blog view or a WP Page? 139 * 140 * @since 2.5 141 * @uses is_home 142 * @uses get_option 143 * 144 * @return bool True if front of site 145 */ 146 function is_front () { 147 // most likely case 148 if ( 'posts' == get_option('show_on_front') && is_home() ) 149 return true; 150 elseif ( 'page' == get_option('show_on_front') && get_option('page_on_front') && is_page(get_option('page_on_front')) ) 151 return true; 152 else 153 return false; 154 } 155 156 /** 157 * is_home() - Is it the blog view homepage? 158 * 159 * @since 2.1 160 * @global object $wp_query 161 * 162 * @return bool True if blog view homepage 163 */ 137 164 function is_home () { 138 165 global $wp_query;
Note: See TracChangeset
for help on using the changeset viewer.