WordPress.org

Make WordPress Core

Ticket #10467: parent_theme_root.patch

File parent_theme_root.patch, 431 bytes (added by apeatling, 5 years ago)

Parent theme root patch.

  • wp-includes/theme.php

     
    348348                } 
    349349 
    350350                $template = trim($template); 
     351                $theme_root = apply_filters( 'parent_theme_root_' . $template, $theme_root ); 
    351352 
    352353                if ( !file_exists("$theme_root/$template/index.php") ) { 
    353354                        $parent_dir = dirname(dirname($theme_file));