Skip to:
Content

BuddyPress.org

Opened 4 years ago

Closed 3 years ago

#8481 closed defect (bug) (fixed)

WP 5.8 Wigdet Block Editor legacy preview doesn't fire the `init` hook

Reported by: imath's profile imath Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Core Keywords: has-patch close
Cc:

Description

This causes some issues when previewing Legacy Members, Groups...

The $bp->members->table_name_last_activity is not defined, BP Taxonomies are not registered etc..

The right fix should probably consist in hooking 'bp_init' to 'the_widget' when the REST endpoint previewing a widget is requested. For now the attached patch simply avoids PHP notices.

Attachments (1)

8481.patch (1.2 KB) - added by imath 4 years ago.

Download all attachments as: .zip

Change History (7)

@imath
4 years ago

#1 @imath
4 years ago

  • Summary changed from WP 5.8 Block Editor legacy preview doesn't fire the `init` hook to WP 5.8 Wigdet Block Editor legacy preview doesn't fire the `init` hook

#2 @imath
4 years ago

  • Milestone changed from Up Next to 8.1.0

This ticket was mentioned in Slack in #buddypress by imath. View the logs.


4 years ago

This ticket was mentioned in Slack in #buddypress by imath. View the logs.


4 years ago

#5 @imath
4 years ago

  • Keywords close added

It looks like WordPress 5.8 fixed the issue. I'll keep the ticket opened until 5.8 RC is released and check it again.

#6 @imath
3 years ago

  • Milestone 8.1.0 deleted
  • Resolution set to fixed
  • Status changed from assigned to closed

Just checked against WP 5.8 RC. I confirm the issue is now fixed.

Note: See TracTickets for help on using tickets.