Making WordPress.org


Ignore:
Timestamp:
02/22/2018 02:22:22 PM (6 years ago)
Author:
iandunn
Message:

WordCamp Misc: Register wp-content/themes-private theme root.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordcamp.org/public_html/wp-content/mu-plugins/wcorg-misc.php

    r6708 r6712  
    1212 */
    1313add_filter( 'got_url_rewrite', '__return_true' );
     14
     15/*
     16 * Register an extra directory for private themes.
     17 *
     18 * These are all old and no longer used on new sites, but must remain active for old sites. They haven't been
     19 * open-sourced yet because they need to be audited and cleaned up first, which is a low priority.
     20 *
     21 * Having these in a separate folder lets us make wp-content/themes a single `svn:external` with the current
     22 * public themes.
     23 */
     24if ( is_dir( WP_CONTENT_DIR . '/themes-private' ) ) {
     25    register_theme_directory( WP_CONTENT_DIR . '/themes-private' );
     26}
    1427
    1528/*
Note: See TracChangeset for help on using the changeset viewer.