Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/21/2018 01:14:05 AM (8 years ago)
Author:
djpaul
Message:

Templates, Nouveau: use bp_parse_args instead of wp_parse_args.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/functions.php

    r12104 r12107  
    4545
    4646    if ( ! empty( $_POST ) ) {
    47         $post_query = wp_parse_args( $_POST, $post_query );
     47        $post_query = bp_parse_args(
     48            $_POST,
     49            $post_query,
     50            'nouveau_ajax_querystring'
     51        );
    4852
    4953        // Make sure to transport the scope, filter etc.. in HeartBeat Requests
     
    5357            // Remove heartbeat specific vars
    5458            $post_query = array_diff_key(
    55                 wp_parse_args( $bp_heartbeat, $post_query ),
     59                bp_parse_args(
     60                    $bp_heartbeat,
     61                    $post_query,
     62                    'nouveau_ajax_querystring_heartbeat'
     63                ),
    5664                array(
    5765                    'data'      => false,
     
    243251    }
    244252
    245     $r = wp_parse_args( $args, array(
    246         'container'         => 'div',
    247         'container_id'      => '',
    248         'container_classes' => array( $generic_class, $current_component_class   ),
    249         'output'            => '',
    250     ) );
     253    $r = bp_parse_args(
     254        $args,
     255        array(
     256            'container'         => 'div',
     257            'container_id'      => '',
     258            'container_classes' => array( $generic_class, $current_component_class   ),
     259            'output'            => '',
     260        ),
     261        'nouveau_wrapper'
     262    );
    251263
    252264    $valid_containers = array(
Note: See TracChangeset for help on using the changeset viewer.