WordPress.org

Make WordPress Core

Ticket #20919: 20919.diff

File 20919.diff, 532 bytes (added by duck_, 3 years ago)
  • wp-includes/theme.php

     
    9898        if ( empty( $theme_root ) ) { 
    9999                $theme_root = get_raw_theme_root( $stylesheet ); 
    100100                if ( false === $theme_root ) 
    101                         $theme_root = WP_CONTENT_DIR . $theme_root; 
     101                        $theme_root = WP_CONTENT_DIR . '/themes'; 
    102102                elseif ( ! in_array( $theme_root, (array) $wp_theme_directories ) ) 
    103103                        $theme_root = WP_CONTENT_DIR . $theme_root; 
    104104        }