[buddypress-trac] [BuddyPress Trac] #8481: WP 5.8 Block Editor legacy preview doesn't fire the `init` hook

buddypress-trac noreply at wordpress.org
Fri Jun 4 17:43:59 UTC 2021


#8481: WP 5.8 Block Editor legacy preview doesn't fire the `init` hook
--------------------------+-----------------------
 Reporter:  imath         |      Owner:  (none)
     Type:  defect (bug)  |     Status:  assigned
 Priority:  normal        |  Milestone:  Up Next
Component:  Core          |    Version:
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------
 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.

-- 
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/8481>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list