Make WordPress Core


Ignore:
Timestamp:
10/13/2009 07:06:35 PM (15 years ago)
Author:
markjaquith
Message:

Introducing register_theme_directory() which takes a wp-content-relative path and will additionally scan it for themes. Plugins can use this to add themes without requiring copying by the user. props apeatling. fixes #10467

File:
1 edited

Legend:

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

    r11168 r12025  
    2929    $ct->author = $themes[$current_theme]['Author'];
    3030    $ct->tags = $themes[$current_theme]['Tags'];
     31    $ct->theme_root = $themes[$current_theme]['Theme Root'];
     32    $ct->theme_root_uri = $themes[$current_theme]['Theme Root URI'];
    3133    return $ct;
    3234}
Note: See TracChangeset for help on using the changeset viewer.