Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/01/2024 06:07:04 AM (13 months ago)
Author:
imath
Message:

Improve BuddyPress compatibility with WP Playground previews

  • Avoid using SIGNED casting into the SQL query retrieving the signup field IDs as it's generating an error with WP Playground SQLite db.
  • Make sure BP URI globals are set during Ajax requests passing the current displayed page canonical URL into these requests.
  • Ignore the bp-message cookie when its value is set to deleted to prevent the wrong display of a template notice when BP Legacy is the active template pack.
  • Update JSON blueprints to latest WP Playground's blueprint schema.

Props espellcaste

Fixes #9207
Closes https://github.com/buddypress/buddypress/pull/389

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/buddypress-functions.php

    r14029 r14068  
    126126            );
    127127
    128             // When BP Classic is activated, regular themes need this filter. 
     128            // When BP Classic is activated, regular themes need this filter.
    129129            if ( bp_is_classic() ) {
    130130                // Set the BP Uri for the Ajax customizer preview.
     
    503503        $params = array(
    504504            'ajaxurl'           => bp_core_ajax_url(),
     505            'canonical_url'     => bp_get_canonical_url(),
    505506            'confirm'           => __( 'Are you sure?', 'buddypress' ),
    506507
Note: See TracChangeset for help on using the changeset viewer.