Skip to:
Content

BuddyPress.org

Changeset 4822


Ignore:
Timestamp:
07/23/2011 06:17:04 PM (14 years ago)
Author:
djpaul
Message:

Add ABSPATH checks to Friends component. See #3367

Location:
trunk/bp-friends
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-friends/bp-friends-actions.php

    r4647 r4822  
    11<?php
    2 
    32/**
    43 * Action functions are exactly the same as screen functions, however they do not
     
    65 * back to the default screen after execution.
    76 */
     7
     8// Exit if accessed directly
     9if ( !defined( 'ABSPATH' ) ) exit;
    810
    911function friends_action_add_friend() {
  • trunk/bp-friends/bp-friends-activity.php

    r4647 r4822  
    11<?php
    2 
    32/**
    43 * These functions handle the recording, deleting and formatting of activity and
    54 * notifications for the user and for this specific component.
    65 */
     6
     7// Exit if accessed directly
     8if ( !defined( 'ABSPATH' ) ) exit;
    79
    810function friends_record_activity( $args = '' ) {
  • trunk/bp-friends/bp-friends-cache.php

    r4605 r4822  
    11<?php
    2 
    32/**
    43 * Caching functions handle the clearing of cached objects and pages on specific
    54 * actions throughout BuddyPress.
    65 */
     6
     7// Exit if accessed directly
     8if ( !defined( 'ABSPATH' ) ) exit;
    79
    810function friends_clear_friend_object_cache( $friendship_id ) {
  • trunk/bp-friends/bp-friends-classes.php

    r4770 r4822  
    11<?php
     2// Exit if accessed directly
     3if ( !defined( 'ABSPATH' ) ) exit;
    24
    35class BP_Friends_Friendship {
  • trunk/bp-friends/bp-friends-functions.php

    r4799 r4822  
    11<?php
    2 
    3 
    42/********************************************************************************
    53 * Business Functions
     
    108 * true or false on success or failure.
    119 */
     10
     11// Exit if accessed directly
     12if ( !defined( 'ABSPATH' ) ) exit;
    1213
    1314function friends_add_friend( $initiator_userid, $friend_userid, $force_accept = false ) {
  • trunk/bp-friends/bp-friends-loader.php

    r4786 r4822  
    11<?php
    2 
    32/**
    43 * BuddyPress Friends Streams Loader
     
    98 * @subpackage Friends Core
    109 */
     10
     11// Exit if accessed directly
     12if ( !defined( 'ABSPATH' ) ) exit;
    1113
    1214class BP_Friends_Component extends BP_Component {
  • trunk/bp-friends/bp-friends-notifications.php

    r4638 r4822  
    11<?php
     2// Exit if accessed directly
     3if ( !defined( 'ABSPATH' ) ) exit;
    24
    35function friends_notification_new_request( $friendship_id, $initiator_id, $friend_id ) {
  • trunk/bp-friends/bp-friends-screens.php

    r4605 r4822  
    11<?php
    2 
    32/**
    43 * Screen functions are the controllers of BuddyPress. They will execute when their
     
    65 * functions, then pass on the user to a template file.
    76 */
     7
     8// Exit if accessed directly
     9if ( !defined( 'ABSPATH' ) ) exit;
    810
    911function friends_screen_my_friends() {
  • trunk/bp-friends/bp-friends-template.php

    r4786 r4822  
    11<?php
     2// Exit if accessed directly
     3if ( !defined( 'ABSPATH' ) ) exit;
    24
    35/**
Note: See TracChangeset for help on using the changeset viewer.