Ticket #3682: is_front.001.diff
File is_front.001.diff, 640 bytes (added by , 18 years ago) |
---|
-
wp-includes/query.php
104 104 return $wp_query->is_feed; 105 105 } 106 106 107 // front of site, whether blog view or a WP Page 108 function is_front () { 109 // most likely case 110 if ( 'posts' == get_option('show_on_front') && is_home() ) 111 return true; 112 elseif ( 'page' == get_option('show_on_front') && get_option('page_on_front') && is_page(get_option('page_on_front')) ) 113 return true; 114 else 115 return false; 116 } 117 118 119 // the blog view 107 120 function is_home () { 108 121 global $wp_query; 109 122