[buddypress-trac] [BuddyPress Trac] #7218: Only load component action and screen code when we're on the component's page

buddypress-trac noreply at wordpress.org
Wed Sep 14 17:06:12 UTC 2016


#7218: Only load component action and screen code when we're on the component's
page
-------------------------+----------------------------------
 Reporter:  r-a-y        |       Owner:
     Type:  enhancement  |      Status:  reopened
 Priority:  normal       |   Milestone:  Under Consideration
Component:  Core         |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+----------------------------------

Comment (by r-a-y):

 In [changeset:"11102"]:
 {{{
 #!CommitTicketReference repository="" revision="11102"
 Activity: Move Akismet loader to `bp-activity-akismet.php`.

 Previously, `bp_activity_setup_akismet()` was placed in
 `bp-activity-actions.php`.  The actions file isn't a proper place to put
 this code.

 This commit moves this function to `bp-activity-akismet.php` and also
 removes some duplicate conditional code. `BP_Activity_Component` already
 checks if Akismet is loaded, so no need to re-duplicate this logic.

 This is part of some prep work to conditionally load a component's action
 and screen code when necessary.

 See #7218.
 }}}

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7218#comment:10>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list