Ticket #36402: patch.diff
File patch.diff, 714 bytes (added by , 9 years ago) |
---|
-
template.php
298 298 * 299 299 * @return string Full path to front page template file. 300 300 */ 301 function get_front_page_template() { 302 $templates = array('front-page.php'); 303 304 return get_query_template( 'front_page', $templates ); 301 function get_front_page_template() { 302 $templates = array('front-page.php'); 303 304 // Ignore the parents 'front-page.php' if a child theme is used. 305 if( !is_child_theme() || ( is_child_theme() && file_exists( STYLESHEETPATH . '/' . $templates[0] ) ) ) { 306 return get_query_template( 'front_page', $templates ); 307 } 305 308 } 306 309 307 310 /**