[buddypress-trac] [BuddyPress Trac] #9207: Improve WP Playground compatibility

buddypress-trac noreply at wordpress.org
Sun Oct 20 22:53:27 UTC 2024


#9207: Improve WP Playground compatibility
------------------------------+-------------------------------------
 Reporter:  imath             |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  Awaiting Contributions
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch         |
------------------------------+-------------------------------------
Changes (by prbot):

 * keywords:   => has-patch


Comment:

 ''This ticket was mentioned in
 [https://github.com/buddypress/buddypress/pull/389 PR #389] on
 [https://github.com/buddypress/buddypress/ buddypress/buddypress] by
 [https://profiles.wordpress.org/imath/ @imath].''
 To fix WP Playground issues, I suggest to:

 - Send the current canonical URL into Ajax request vars.
 `wp_get_referer()` is not set which explains why BP URI globals are not
 set into Ajax context by WP Playground.
 - Ignore `$_COOKIE['bp-message']` if its value is set to `deleted`. It
 looks like the cookie is not deleted but its value is set to `deleted`
 once it's removed by BuddyPress.
 - About the ` SIGNED` conversion or casting SQL issue, it looks like it's
 a SQLlite issue that will be hard to cope with: see
 https://wordpress.org/support/topic/wordpress-meta-query-not-working/ I
 used a workaround to get rid of it for now.

 > [!IMPORTANT]
 > I'll need to run `grunt commit` before SVN committing this PR.

 Trac ticket: https://buddypress.trac.wordpress.org/ticket/9207

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/9207#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list