[buddypress-trac] [BuddyPress Trac] #7532: BP_Button needs to update `$parent_element` and `$parent_attr`
buddypress-trac
noreply at wordpress.org
Wed May 31 17:09:15 UTC 2017
#7532: BP_Button needs to update `$parent_element` and `$parent_attr`
--------------------------+--------------------
Reporter: r-a-y | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 2.9
Component: Core | Version: 2.8.0
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+--------------------
Comment (by hnla):
Hmm good point the $container arg only really presents it's self in
Nouveau, bp_button class only ever deals with the actual element and
direct parent.
In Nouveau we have a function handling building our action buttons after
getting a return from bp_get_button()
includes/functions.php L:228 `bp_nouveau_wrapper()`
The template function will pass $container(or not) and in the function
args we are testing the value of and setting defaults.
The container value will be in the $args we're passing to bp_get_button()
just not being made use of.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7532#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list