Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
01/29/2018 08:50:43 PM (8 years ago)
Author:
djpaul
Message:

Templates: move common assets from bp-legacy and bp-nouveau into a shared folder.

In the Nouveau and Legacy packs, these templates were identical. As they used for very specific parts of a BuddyPress theme,
and all to support features that were added since bp-legacy was created, we can utilise this new shared folder to avoid duplication.

The shared folder is added to the template hierarchy, with a lower priority than the WordPress theme, any WordPress parent theme,
and the active template pack. Any site that has customised any of the moved templates will continue to load those version.

Fixes #7672

Props r-a-y for the initial patch, and hnla.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/class-buddypress.php

    r11763 r11835  
    733733        // Register the basic theme stack. This is really dope.
    734734        bp_register_template_stack( 'get_stylesheet_directory', 10 );
    735         bp_register_template_stack( 'get_template_directory',   12 );
    736         bp_register_template_stack( 'bp_get_theme_compat_dir',  14 );
     735        bp_register_template_stack( 'get_template_directory', 12 );
     736        bp_register_template_stack( 'bp_get_theme_compat_dir', 14 );
     737        bp_register_template_stack( 'bp_get_shared_theme_assets_dir', 16 );
    737738    }
    738739
Note: See TracChangeset for help on using the changeset viewer.