[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
Mon Apr 2 17:35:09 UTC 2018


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

Comment (by r-a-y):

 In [changeset:"11933" 11933]:
 {{{
 #!CommitTicketReference repository="" revision="11933"
 Notifications: Conditionally load action and screen functions.

 This commit conditionally loads action and screen function code for the
 Notifications component, utilizing the `'bp_late_include'` hook introduced
 in r11884.

 Previously, we loaded these functions at all times, which is unnecessary
 when a user is not on a BuddyPress notifications page. Now, we only load
 this code when needed.

 This commit also moves over the unused
 `bp_notifications_screen_settings()`
 function from `bp-notifications-screens.php` to
 `bp-notifications-functions.php`.  This function is a candidate for future
 deprecation.

 See #7218.
 }}}

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


More information about the buddypress-trac mailing list