Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/09/2024 11:01:57 AM (3 years ago)
Author:
imath
Message:

BP Standalone Block Themes: adapt Messages 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-messages/screens/compose.php

    r13096 r13764  
    1212 *
    1313 * @since 1.0.0
     14 *
     15 * @return void
    1416 */
    1517function messages_screen_compose() {
     
    3032        do_action( 'messages_screen_compose' );
    3133
    32         /**
    33          * Filters the template to load for the Messages compose screen.
    34          *
    35          * @since 1.0.0
    36          *
    37          * @param string $template Path to the messages template to load.
    38          */
    39         bp_core_load_template( apply_filters( 'messages_template_compose', 'members/single/home' ) );
     34        $templates = array(
     35                /**
     36                 * Filters the template to load for the Messages compose screen.
     37                 *
     38                 * @since 1.0.0
     39                 *
     40                 * @param string $template Path to the messages template to load.
     41                 */
     42                apply_filters( 'messages_template_compose', 'members/single/home' ),
     43                'members/single/index',
     44        );
     45
     46        bp_core_load_template( $templates );
    4047}
Note: See TracChangeset for help on using the changeset viewer.