Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/02/2018 10:13:58 PM (22 months ago)
Author:
djpaul
Message:

Core: allow theme to override site's template pack choice.

As part of the work for Nouveau, we need a way to let a theme override the site template pack setting.
e.g. new themes could force the "nouveau" template pack.

The syntax is buddypress-use-foobar, where "foobar" is the slug name of the template pack.
e.g. buddypress-use-legacy, buddypress-use-nouveau.

Fixes #7730

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-actions.php

    r11884 r11936  
    114114 * Add the BuddyPress functions file and the Theme Compat Default features.
    115115 */
    116 add_action( 'bp_after_setup_theme', 'bp_load_theme_functions',                    1 );
    117 add_action( 'bp_after_setup_theme', 'bp_register_theme_compat_default_features', 10 );
     116add_action( 'bp_after_setup_theme', 'bp_check_theme_template_pack_dependency',   -10 );
     117add_action( 'bp_after_setup_theme', 'bp_load_theme_functions',                    1  );
     118add_action( 'bp_after_setup_theme', 'bp_register_theme_compat_default_features',  10 );
    118119
    119120// Load the admin.
Note: See TracChangeset for help on using the changeset viewer.