Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/02/2018 06:15:37 PM (6 years ago)
Author:
r-a-y
Message:

Blogs: Conditionally load action and screen functions.

This commit conditionally loads action and screen function code for the
Blogs 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 blogs page. Now, we only load this
code when needed.

See #7218.

Location:
trunk/src/bp-blogs/actions
Files:
1 added
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-blogs/actions/random.php

    r11933 r11934  
    11<?php
    22/**
    3  * BuddyPress Blogs Actions.
     3 * Blogs: Random blog action handler
    44 *
    55 * @package BuddyPress
    66 * @subpackage BlogsActions
    7  * @since 1.5.0
     7 * @since 3.0.0
    88 */
    9 
    10 // Exit if accessed directly.
    11 defined( 'ABSPATH' ) || exit;
    129
    1310/**
Note: See TracChangeset for help on using the changeset viewer.