Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/09/2024 10:59:45 AM (2 years ago)
Author:
imath
Message:

BP Standalone Block Themes: adapt Members template hierarchy

  • Adds a members/single/index.html root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.
  • Adds a members/register root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.
  • Adds a members/activate root template to the BP Standalone Theme hierarchy to be used by BP Standalone Block Themes in respect of WP Block Themes templating logic.

See #9118
See https://github.com/buddypress/buddypress/pull/249
See https://github.com/buddypress/buddyvibes/pull/7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/screens/activate.php

    r13436 r13763  
    1212 *
    1313 * @since 1.1.0
     14 *
     15 * @return void
    1416 */
    1517function bp_core_screen_activation() {
     
    1719    // Bail if not viewing the activation page.
    1820    if ( ! bp_is_current_component( 'activate' ) ) {
    19         return false;
     21        return;
    2022    }
    2123
     
    5355     * @since 1.1.1
    5456     *
    55      * @param string $value Path to the Member activation template to load.
     57     * @param string[] $value Path to the list of Member activation template to load.
    5658     */
    57     bp_core_load_template( apply_filters( 'bp_core_template_activate', array( 'activate', 'registration/activate' ) ) );
     59    $templates   = apply_filters( 'bp_core_template_activate', array( 'activate', 'registration/activate' ) );
     60    $templates[] = 'members/activate';
     61
     62    bp_core_load_template( $templates );
    5863}
    5964add_action( 'bp_screens', 'bp_core_screen_activation' );
Note: See TracChangeset for help on using the changeset viewer.