WordPress.org

Make WordPress Core

Ticket #15945: 15945.patch

File 15945.patch, 499 bytes (added by SergeyBiryukov, 5 years ago)
  • wp-includes/theme.php

     
    950950 */ 
    951951function get_page_template() { 
    952952        $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) : ''; 
    954954        $pagename = get_query_var('pagename'); 
    955955 
    956956        if ( !$pagename && $id > 0 ) {