[buddypress-trac] [BuddyPress Trac] #7502: Legacy forums do not work with WordPress 4.7

buddypress-trac noreply at wordpress.org
Wed Apr 12 23:10:24 UTC 2017


#7502: Legacy forums do not work with WordPress 4.7
--------------------------+-----------------------------
 Reporter:  r-a-y         |      Owner:  johnjamesjacoby
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Forums        |    Version:  2.7.1
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 WordPress 4.7 introduced the `WP_Taxonomy` class.  BackPress also has a
 class called `WP_Taxonomy`.

 But our legacy forum bridge code is throwing a fatal error because we are
 attempting to load the BackPress version of the `WP_Taxonomy` class when
 it already exists in WordPress 4.7 now.  (Also both classes are entirely
 different, code-wise!)

 Attached patch does a dirty workaround by doing the following:
 1. Copies the BackPress version of the `WP_Taxonomy` class and renames the
 class to `BackPress_Taxonomy`.
 2. Copies the bbPress (v1) version of the `BB_Taxonomy` class and extends
 it to use our custom `BackPress_Taxonomy` class instead of `WP_Taxonomy`.

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


More information about the buddypress-trac mailing list