Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/09/2024 11:01:57 AM (16 months 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/notices.php

    r13096 r13764  
    1212 *
    1313 * @since 1.0.0
     14 *
     15 * @return void
    1416 */
    1517function messages_screen_notices() {
     
    2729    do_action( 'messages_screen_notices' );
    2830
    29     /**
    30      * Filters the template to load for the Messages notices screen.
    31      *
    32      * @since 1.0.0
    33      *
    34      * @param string $template Path to the messages template to load.
    35      */
    36     bp_core_load_template( apply_filters( 'messages_template_notices', 'members/single/home' ) );
     31    $templates = array(
     32        /**
     33         * Filters the template to load for the Messages notices screen.
     34         *
     35         * @since 1.0.0
     36         *
     37         * @param string $template Path to the messages template to load.
     38         */
     39        apply_filters( 'messages_template_notices', 'members/single/home' ),
     40        'members/single/index',
     41    );
     42
     43    bp_core_load_template( $templates );
    3744}
Note: See TracChangeset for help on using the changeset viewer.