Skip to:
Content

BuddyPress.org

Changeset 5768


Ignore:
Timestamp:
02/13/2012 09:26:12 AM (13 years ago)
Author:
johnjamesjacoby
Message:

Change bp_core_add_ajax_hook() priority from 10 to 20 to allow plugins to hook into bp_init at the default priority and still have ajax function as expected. Fixes #3985. Props r-a-y, gary_mazz.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-functions.php

    r5755 r5768  
    702702        do_action( 'wp_ajax_' . $_REQUEST['action'] );
    703703}
    704 add_action( 'bp_init', 'bp_core_add_ajax_hook' );
     704add_action( 'bp_init', 'bp_core_add_ajax_hook', 20 );
    705705
    706706/**
Note: See TracChangeset for help on using the changeset viewer.