Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/09/2024 11:05:22 AM (2 years ago)
Author:
imath
Message:

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

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-settings/screens/general.php

    r13432 r13766  
    1212 *
    1313 * @since 1.5.0
     14 *
     15 * @return void
    1416 */
    1517function bp_settings_screen_general() {
     
    2022        }
    2123
    22         /**
    23          * Filters the template file path to use for the general settings screen.
    24          *
    25          * @since 1.6.0
    26          *
    27          * @param string $value Directory path to look in for the template file.
    28          */
    29         bp_core_load_template( apply_filters( 'bp_settings_screen_general_settings', 'members/single/settings/general' ) );
     24        $templates = array(
     25                /**
     26                 * Filters the template file path to use for the general settings screen.
     27                 *
     28                 * @since 1.6.0
     29                 *
     30                 * @param string $template Directory path to look in for the template file.
     31                 */
     32                apply_filters( 'bp_settings_screen_general_settings', 'members/single/settings/general' ),
     33                'members/single/index',
     34        );
     35
     36
     37        bp_core_load_template( $templates );
    3038}
    3139
Note: See TracChangeset for help on using the changeset viewer.