Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/26/2021 12:40:02 PM (4 years ago)
Author:
imath
Message:

BP Nouveau: Inject Private Messages JS templates into footer

To make sure JS Templates are injected without being altered in WordPress themes supporting the Full Site Editing feature, we are now doing it inside the page's footer.

HTML placeholders have been moved out of the JS Template and a backward compatibility for potential plugins still expecting these placeholders into this templates has been put in place.

See #8474

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress/common/js-templates/messages/index.php

    r13196 r13200  
    99 * @version 10.0.0
    1010 */
     11
     12// Backward Compatibility for plugins still needing the placeholders to be located into this file.
     13if ( ! did_action( '_bp_nouveau_messages_print_placeholders' ) ) {
     14    bp_nouveau_messages_print_placeholders();
     15}
    1116?>
    12 <div class="subnav-filters filters user-subnav bp-messages-filters" id="subsubnav"></div>
    13 
    14 <div class="bp-messages-feedback"></div>
    15 <div class="bp-messages-content"></div>
    1617
    1718<script type="text/html" id="tmpl-bp-messages-feedback">
Note: See TracChangeset for help on using the changeset viewer.