Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/12/2010 06:52:58 PM (17 years ago)
Author:
apeatling
Message:

Made the ajax_querystring function a core template tag that can be filtered by the active theme. This will allow the bp-default templates to be copied into another WordPress theme without having to copy anything in functions.php.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-themes/bp-default/_inc/ajax.php

    r2692 r2712  
    1818 * By using cookies we can also make sure that user settings are retained across page loads.
    1919 */
    20 function bp_dtheme_ajax_querystring( $object = false ) {
     20function bp_dtheme_ajax_querystring( $query_string, $object ) {
    2121        global $bp;
    2222
    … …  
    6262        return apply_filters( 'bp_dtheme_ajax_querystring', $query_string, $object, $_BP_COOKIE['bp-' . $object . '-filter'], $_BP_COOKIE['bp-' . $object . '-scope'], $_BP_COOKIE['bp-' . $object . '-page'], $_BP_COOKIE['bp-' . $object . '-search-terms'], $_BP_COOKIE['bp-' . $object . '-extras'] );
    6363}
     64add_filter( 'bp_ajax_querystring', 'bp_dtheme_ajax_querystring', 10, 2 );
    6465
    6566/* This function will simply load the template loop for the current object. On an AJAX request */
Note: See TracChangeset for help on using the changeset viewer.