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/buddypress-functions.php

    r12082 r12107  
    267267                }
    268268
    269                 $data = wp_parse_args( $style, array(
    270                     'dependencies' => array(),
    271                     'version'      => $this->version,
    272                     'type'         => 'screen',
    273                 ) );
     269                $data = bp_parse_args(
     270                    $style,
     271                    array(
     272                        'dependencies' => array(),
     273                        'version'      => $this->version,
     274                        'type'         => 'screen',
     275                    ),
     276                    'nouveau_enqueue_styles'
     277                );
    274278
    275279                wp_enqueue_style( $handle, $file, $data['dependencies'], $data['version'], $data['type'] );
     
    346350            }
    347351
    348             $data = wp_parse_args( $script, array(
    349                 'dependencies' => array(),
    350                 'version'      => $this->version,
    351                 'footer'       => false,
    352             ) );
     352            $data = bp_parse_args(
     353                $script,
     354                array(
     355                    'dependencies' => array(),
     356                    'version'      => $this->version,
     357                    'footer'       => false,
     358                ),
     359                'nouveau_register_scripts'
     360            );
    353361
    354362            wp_register_script( $handle, $file, $data['dependencies'], $data['version'], $data['footer'] );
     
    628636            return $path;
    629637        } else {
    630             $vars = wp_parse_args( $uri['query'], array() );
     638            $vars = bp_parse_args(
     639                $uri['query'],
     640                array(),
     641                'customizer_set_uri'
     642            );
    631643
    632644            if ( ! empty( $vars['url'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.