[buddypress-trac] [BuddyPress Trac] #2768: Use WP comments' threaded comment depth settings

buddypress-trac noreply at wordpress.org
Fri Feb 7 20:51:21 UTC 2014


#2768: Use WP comments' threaded comment depth settings
-------------------------------------+-----------------------
 Reporter:  DJPaul                   |       Owner:
     Type:  enhancement              |      Status:  assigned
 Priority:  normal                   |   Milestone:  2.0
Component:  Activity                 |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |
-------------------------------------+-----------------------
Changes (by boonebgorges):

 * keywords:  has-patch => has-patch needs-testing


Comment:

 I've reworked DJPaul's patch a bit.

 Instead of passing a value around in the templates (unappealing now that
 our comment markup is generated by a real WP template), I've opted to
 build the depth index when the comments are fetched. To make the AJAX play
 nicely, and because of the somewhat odd way we fake out the global when
 building the markup for AJAX-inserted comment, I had to manually build the
 depth in the AJAX callback as well.

 Ready for testing and feedback.

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


More information about the buddypress-trac mailing list