Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/09/2024 11:07:30 AM (23 months ago)
Author:
imath
Message:

BP Standalone Block Themes: adapt xProfiles 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.

Fixes #9118
Closes 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-xprofile/screens/settings-profile.php

    r13503 r13767  
    1212 *
    1313 * @since 2.0.0
     14 *
     15 * @return void
    1416 */
    1517function bp_xprofile_screen_settings() {
     
    2123    }
    2224
    23     /**
    24      * Filters the template to load for the XProfile settings screen.
    25      *
    26      * @since 2.0.0
    27      *
    28      * @param string $template Path to the XProfile change avatar template to load.
    29      */
    30     bp_core_load_template( apply_filters( 'bp_settings_screen_xprofile', '/members/single/settings/profile' ) );
     25    $templates = array(
     26        /**
     27         * Filters the template to load for the XProfile settings screen.
     28         *
     29         * @since 2.0.0
     30         *
     31         * @param string $template Path to the XProfile change avatar template to load.
     32         */
     33        apply_filters( 'bp_settings_screen_xprofile', '/members/single/settings/profile' ),
     34        'members/single/index',
     35    );
     36
     37    bp_core_load_template( $templates );
    3138}
    3239
     
    3542 *
    3643 * @since 1.9.0
     44 *
     45 * @return void
    3746 */
    3847function bp_xprofile_action_settings() {
Note: See TracChangeset for help on using the changeset viewer.