WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/03/2010 10:53:01 PM (10 years ago)
Author:
nacin
Message:

Make sure get_themes() returns the proper template and stylesheet directory paths. Use the correct variables. fixes #15671.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r16697 r16711  
    386386        $stylesheet_files = array_unique($stylesheet_files);
    387387
    388         $template_dir = dirname($template_files[0]);
    389         $stylesheet_dir = dirname($stylesheet_files[0]);
     388        $template_dir = $template_directory;
     389        $stylesheet_dir = $theme_root . '/' . $stylesheet;
    390390
    391391        if ( empty($template_dir) )
Note: See TracChangeset for help on using the changeset viewer.