[buddypress-trac] [BuddyPress Trac] #6717: bp_core_get_directory_pages() with BP_ENABLE_MULTIBLOG returns wrong pages

buddypress-trac noreply at wordpress.org
Wed Nov 18 10:54:10 UTC 2015


#6717: bp_core_get_directory_pages() with BP_ENABLE_MULTIBLOG returns wrong pages
--------------------------------------------+------------------
 Reporter:  wpdennis                        |       Owner:
     Type:  defect (bug)                    |      Status:  new
 Priority:  normal                          |   Milestone:  2.5
Component:  Component - Core                |     Version:
 Severity:  normal                          |  Resolution:
 Keywords:  has-patch needs-testing commit  |
--------------------------------------------+------------------

Comment (by wpdennis):

 Replying to [comment:2 boonebgorges]:
 > Thanks for the report, wpdennis. I've confirmed the problem.
 >
 > [...] In the meantime, you can work around this problem by copying the
 logic of `bp_core_get_directory_pages()` to an mu-plugin or bp-custom.php,
 correcting the cache group, and using that function to filter
 'bp_core_get_directory_pages'.

 Thanks Boone,

 hooked your patch and it solved the issue as far as i can tell.

 I think to avoid old cache values the cache group in
 '''bp_core_clear_directory_pages_cache_page_edit()''' and
 '''bp_core_clear_directory_pages_cache_settings_edit()''' needs to be
 altered, too.

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


More information about the buddypress-trac mailing list