Skip to:
Content

BuddyPress.org

Changeset 1959


Ignore:
Timestamp:
09/25/2009 10:26:21 PM (15 years ago)
Author:
apeatling
Message:

Fixes #1079

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core.php

    r1950 r1959  
    17071707
    17081708function bp_core_add_ajax_hook() {
    1709     do_action( 'wp_ajax_' . $_REQUEST['action'] );
     1709    /* Theme only, we already have the wp_ajax_ hook firing in wp-admin */
     1710    if ( !defined( 'WP_ADMIN' ) )
     1711        do_action( 'wp_ajax_' . $_REQUEST['action'] );
    17101712}
    17111713add_action( 'init', 'bp_core_add_ajax_hook' );
Note: See TracChangeset for help on using the changeset viewer.