[buddypress-trac] [BuddyPress Trac] #7150: The blogs component & the bp_core_add_page_mappings() function

buddypress-trac noreply at wordpress.org
Tue Jun 28 21:22:16 UTC 2016


#7150: The blogs component & the bp_core_add_page_mappings() function
--------------------------+-----------------------
 Reporter:  imath         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  2.7
Component:  Settings      |    Version:  1.7
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------
 So although the Blogs component is a core/built in component, it's the
 only one that doesn't have his WordPress directory page set on activation
 when using a multisite configuration.

 First, it's really annoying, and i see no reason for such a treatment.
 Second, it can make test fails, eg if you do:

 {{{
 $this->go_to( bp_get_blogs_directory_permalink() );
 $this->assertTrue( bp_is_blogs_directory() );
 }}}

 It will fail.

 Third, and most importantly `bp_core_add_page_mappings()` is using "sites"
 instead of "blogs" which is THE reason why the page is not created when
 creating the blogs component.

 In 2.7, i'd really like to give some love to this component, and the
 attached patch is the first proof of my love :)

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


More information about the buddypress-trac mailing list