[buddypress-trac] [BuddyPress Trac] #6769: BP Users front.php
buddypress-trac
noreply at wordpress.org
Mon May 16 16:55:44 UTC 2016
#6769: BP Users front.php
-----------------------------------------+------------------
Reporter: hnla | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.6
Component: Appearance - Template Parts | Version:
Severity: normal | Resolution:
Keywords: has-patch |
-----------------------------------------+------------------
Comment (by dcavins):
This is great! 6769.03 works well for me, though I'm a bit on the fence
about adding the extra level of backcompat. (It seems reasonable that if
you want this new functionality and have the wherewithal to add specific
`front` templates, you should be able to update `home.php`)
My only comment:
in `bp_displayed_user_front_template_part()`, these filter parameters and
descriptions seem odd or maybe just incomplete (could we set a name? Or
not pass it, since this action should be unique to this use?):
{{{#!php
/**
* Let plugins adding an action to bp_get_template_part get it from here
*
* @param string $slug Template part slug requested.
* @param string $name Template part name requested.
*/
do_action( 'get_template_part_' . $slug, $slug, false );
}}}
Great work!
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6769#comment:16>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list