Ticket #15945: 15945.patch
File 15945.patch, 499 bytes (added by , 13 years ago) |
---|
-
wp-includes/theme.php
950 950 */ 951 951 function get_page_template() { 952 952 $id = get_queried_object_id(); 953 $template = get_post_meta($id, '_wp_page_template', true);953 $template = ! is_front_page() ? get_post_meta($id, '_wp_page_template', true) : ''; 954 954 $pagename = get_query_var('pagename'); 955 955 956 956 if ( !$pagename && $id > 0 ) {