[buddypress-trac] [BuddyPress Trac] #7666: Load template loop functions only when the template loop is initialized
buddypress-trac
noreply at wordpress.org
Tue Jan 23 10:05:23 UTC 2018
#7666: Load template loop functions only when the template loop is initialized
------------------------------------+----------------------------------
Reporter: r-a-y | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Under Consideration
Component: Core | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+----------------------------------
Changes (by DJPaul):
* milestone: Awaiting Review => Under Consideration
Comment:
Recording what @johnjamesjacoby said on Slack:
I’m reluctant to get behind this, for a few reasons I never thought I’d
say.
*We can’t lazy/auto load functions
*Modern PHP versions mitigate a lot of this
*Back compat for whos-knows-what in widgets means it’s hard to _stop_
including stuff that’s always been around
*`bp_is_active()` is the component layer of this kind of can-i-use-this
API. A `bp_function_exists()` API to handle it (even internally) would add
foreign complexity
*Compelling benchmarks to prove what the impact is would convince me. If
we score a 25% memory reduction with zero core breakage (for example)
would be hard to say no to, even with some potential breakage
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7666#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list