[buddypress-trac] [BuddyPress Trac] #6172: Blogs loop template li elements class attr hijacked by BP core
buddypress-trac
noreply at wordpress.org
Thu Jan 29 14:17:02 UTC 2015
#6172: Blogs loop template li elements class attr hijacked by BP core
----------------------------+-------------------------
Reporter: hnla | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.3
Component: All Components | Version:
Severity: minor | Keywords: needs-patch
----------------------------+-------------------------
On the li children in the blogs loop the class attr has been commandeered
by BP:
`bp_blog_class()`
This is to provide the looped entries with a zebra stripe class odd/even.
While nice and good to do the implementation leaves the frontend dev no
room for modifying - yes there's a filter but a filter! the requirement is
to add one simple string, a 2 sec job, rather than have to open another
file write a function to filter that simple string in and have more code
to support littered throughout various files.
All template functions such as this need to be parametrised, we need to be
able to pass args over on any function such as this, or at least to the
majority of them.
This has come up briefly before and iirc I've ticketed another instance
along these lines that needs addressing.
We/I need to audit all of these where they may occur and update them to
use bp_parse_args()
I'm willing to tackle this in 2.3 along with a few other templating
concerns.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6172>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list