Skip to:
Content

BuddyPress.org

Ticket #8564: 8564-1.diff

File 8564-1.diff, 47.7 KB (added by espellcaste, 3 years ago)
  • src/bp-activity/bp-activity-blocks.php

    diff --git src/bp-activity/bp-activity-blocks.php src/bp-activity/bp-activity-blocks.php
    index 9b40e5739..1e60e0f58 100644
    if ( ! defined( 'ABSPATH' ) ) { 
    2121 * @return string           HTML output.
    2222 */
    2323function bp_activity_render_latest_activities_block( $attributes = array() ) {
    24         $block_args = wp_parse_args(
     24        $block_args = bp_parse_args(
    2525                $attributes,
    2626                array(
    2727                        'title'         => __( 'Latest updates', 'buddypress' ),
  • src/bp-activity/bp-activity-filters.php

    diff --git src/bp-activity/bp-activity-filters.php src/bp-activity/bp-activity-filters.php
    index 064614a97..a47e0b647 100644
    function bp_activity_truncate_entry( $text, $args = array() ) { 
    439439
    440440        $excerpt_length = bp_activity_get_excerpt_length();
    441441
    442         $args = wp_parse_args( $args, array( 'ending' => __( '…', 'buddypress' ) ) );
     442        $args = bp_parse_args( $args, array( 'ending' => __( '…', 'buddypress' ) ) );
    443443
    444444        // Run the text through the excerpt function. If it's too short, the original text will be returned.
    445445        $excerpt        = bp_create_excerpt( $text, $excerpt_length, $args );
  • src/bp-activity/bp-activity-functions.php

    diff --git src/bp-activity/bp-activity-functions.php src/bp-activity/bp-activity-functions.php
    index cf9410657..f7c5cec1e 100644
    function bp_activity_add( $args = '' ) { 
    20212021 */
    20222022function bp_activity_post_update( $args = '' ) {
    20232023
    2024         $r = wp_parse_args( $args, array(
     2024        $r = bp_parse_args( $args, array(
    20252025                'content'    => false,
    20262026                'user_id'    => bp_loggedin_user_id(),
    20272027                'error_type' => 'bool',
    add_action( 'delete_comment', 'bp_activity_post_type_remove_comment', 10, 1 ); 
    26462646function bp_activity_new_comment( $args = '' ) {
    26472647        $bp = buddypress();
    26482648
    2649         $r = wp_parse_args( $args, array(
     2649        $r = bp_parse_args( $args, array(
    26502650                'id'                => false,
    26512651                'content'           => false,
    26522652                'user_id'           => bp_loggedin_user_id(),
  • src/bp-activity/bp-activity-template.php

    diff --git src/bp-activity/bp-activity-template.php src/bp-activity/bp-activity-template.php
    index f59004e89..a6de4c8b7 100644
    function bp_activity_avatar( $args = '' ) { 
    10491049                        'user_id' => false
    10501050                );
    10511051
    1052                 $r = wp_parse_args( $args, $defaults );
     1052                $r = bp_parse_args( $args, $defaults );
    10531053                extract( $r, EXTR_SKIP );
    10541054
    10551055                if ( !isset( $height ) && !isset( $width ) ) {
    function bp_activity_secondary_avatar( $args = '' ) { 
    11521152        function bp_get_activity_secondary_avatar( $args = '' ) {
    11531153                global $activities_template;
    11541154
    1155                 $r = wp_parse_args( $args, array(
     1155                $r = bp_parse_args( $args, array(
    11561156                        'alt'        => '',
    11571157                        'type'       => 'thumb',
    11581158                        'width'      => 20,
    function bp_activity_action( $args = array() ) { 
    13281328        function bp_get_activity_action( $args = array() ) {
    13291329                global $activities_template;
    13301330
    1331                 $r = wp_parse_args( $args, array(
     1331                $r = bp_parse_args( $args, array(
    13321332                        'no_timestamp' => false,
    13331333                ) );
    13341334
    function bp_activity_filter_links( $args = false ) { 
    28122812         */
    28132813        function bp_get_activity_filter_links( $args = false ) {
    28142814
    2815                 $r = wp_parse_args( $args, array(
     2815                $r = bp_parse_args( $args, array(
    28162816                        'style' => 'list'
    28172817                ) );
    28182818
  • src/bp-activity/classes/class-bp-activity-activity.php

    diff --git src/bp-activity/classes/class-bp-activity-activity.php src/bp-activity/classes/class-bp-activity-activity.php
    index 840b90152..7bfc1ac00 100644
    class BP_Activity_Activity { 
    413413                }
    414414
    415415                $bp = buddypress();
    416                 $r  = wp_parse_args( $args, array(
     416                $r  = bp_parse_args( $args, array(
    417417                        'page'              => 1,               // The current page.
    418418                        'per_page'          => 25,              // Activity items per page.
    419419                        'max'               => false,           // Max number of items to return.
    class BP_Activity_Activity { 
    12571257                global $wpdb;
    12581258
    12591259                $bp = buddypress();
    1260                 $r  = wp_parse_args( $args, array(
     1260                $r  = bp_parse_args( $args, array(
    12611261                        'id'                => false,
    12621262                        'action'            => false,
    12631263                        'content'           => false,
  • src/bp-activity/classes/class-bp-activity-feed.php

    diff --git src/bp-activity/classes/class-bp-activity-feed.php src/bp-activity/classes/class-bp-activity-feed.php
    index 8b2388a22..9e6064d2e 100644
    class BP_Activity_Feed { 
    104104                        );
    105105                } else {
    106106                        // Setup data.
    107                         $this->data = wp_parse_args( $args, array(
     107                        $this->data = bp_parse_args( $args, array(
    108108                                // Internal identifier for the RSS feed - should be alphanumeric only.
    109109                                'id'               => '',
    110110
    class BP_Activity_Feed { 
    196196                $this->update_period    = strip_tags( $this->update_period );
    197197                $this->update_frequency = (int) $this->update_frequency;
    198198
    199                 $this->activity_args    = wp_parse_args( $this->activity_args, array(
     199                $this->activity_args    = bp_parse_args( $this->activity_args, array(
    200200                        'max'              => $this->max,
    201201                        'per_page'         => $this->max,
    202202                        'display_comments' => 'stream'
  • src/bp-activity/classes/class-bp-activity-template.php

    diff --git src/bp-activity/classes/class-bp-activity-template.php src/bp-activity/classes/class-bp-activity-template.php
    index cfc66d3bd..2c91eebd6 100644
    class BP_Activity_Template { 
    186186                        'spam'              => 'ham_only',
    187187                        'update_meta_cache' => true,
    188188                );
    189                 $r = wp_parse_args( $args, $defaults );
     189                $r = bp_parse_args( $args, $defaults );
    190190                extract( $r );
    191191
    192192                $this->pag_arg  = sanitize_key( $r['page_arg'] );
  • src/bp-blogs/bp-blogs-activity.php

    diff --git src/bp-blogs/bp-blogs-activity.php src/bp-blogs/bp-blogs-activity.php
    index 24185e3e8..c695802ee 100644
    function bp_blogs_record_activity( $args = '' ) { 
    478478                'hide_sitewide'     => false
    479479        );
    480480
    481         $r = wp_parse_args( $args, $defaults );
     481        $r = bp_parse_args( $args, $defaults );
    482482
    483483        if ( ! empty( $r['action'] ) ) {
    484484
  • src/bp-blogs/bp-blogs-blocks.php

    diff --git src/bp-blogs/bp-blogs-blocks.php src/bp-blogs/bp-blogs-blocks.php
    index 47bf94596..dd7eadc42 100644
    if ( ! defined( 'ABSPATH' ) ) { 
    2121 * @return string           HTML output.
    2222 */
    2323function bp_blogs_render_recent_posts_block( $attributes = array() ) {
    24         $block_args = wp_parse_args(
     24        $block_args = bp_parse_args(
    2525                $attributes,
    2626                array(
    2727                        'title'     => __( 'Recent Networkwide Posts', 'buddypress' ),
  • src/bp-blogs/bp-blogs-functions.php

    diff --git src/bp-blogs/bp-blogs-functions.php src/bp-blogs/bp-blogs-functions.php
    index b27de8ac1..870062e2b 100644
    function bp_blogs_get_signup_form_submitted_vars() { 
    15311531                'blog_public' => 0,
    15321532        );
    15331533
    1534         $submitted_vars = wp_parse_args( $_POST, $exprected_vars );
     1534        $submitted_vars = bp_parse_args( $_POST, $exprected_vars );
    15351535
    15361536        return array_map( 'wp_unslash', array_intersect_key( $submitted_vars, $exprected_vars ) );
    15371537}
  • src/bp-blogs/bp-blogs-template.php

    diff --git src/bp-blogs/bp-blogs-template.php src/bp-blogs/bp-blogs-template.php
    index ac4dd83a7..7f2e8b924 100644
    function bp_blog_latest_post( $args = array() ) { 
    687687        function bp_get_blog_latest_post( $args = array() ) {
    688688                global $blogs_template;
    689689
    690                 $r = wp_parse_args( $args, array(
     690                $r = bp_parse_args( $args, array(
    691691                        'latest_format' => true,
    692692                ) );
    693693
    function bp_blogs_visit_blog_button( $args = '' ) { 
    15591559                        'link_text'         => __( 'Visit Site', 'buddypress' ),
    15601560                );
    15611561
    1562                 $button = wp_parse_args( $args, $defaults );
     1562                $button = bp_parse_args( $args, $defaults );
    15631563
    15641564                /**
    15651565                 * Filters the button for visiting a blog in a loop.
  • src/bp-blogs/classes/class-bp-blogs-recent-posts-widget.php

    diff --git src/bp-blogs/classes/class-bp-blogs-recent-posts-widget.php src/bp-blogs/classes/class-bp-blogs-recent-posts-widget.php
    index e71e88fff..9974e60b8 100644
    class BP_Blogs_Recent_Posts_Widget extends WP_Widget { 
    154154         * @return void
    155155         */
    156156        public function form( $instance ) {
    157                 $instance = wp_parse_args( (array) $instance, array(
     157                $instance = bp_parse_args( (array) $instance, array(
    158158                        'title'      => __( 'Recent Networkwide Posts', 'buddypress' ),
    159159                        'max_posts'  => 10,
    160160                        'link_title' => false,
  • src/bp-core/admin/bp-core-admin-types.php

    diff --git src/bp-core/admin/bp-core-admin-types.php src/bp-core/admin/bp-core-admin-types.php
    index 6b8db3f7a..6f8095c4a 100644
    function bp_core_admin_update_type( $args = array() ) { 
    181181        $metadata  = bp_core_admin_get_type_default_meta_values( $type_taxonomy );
    182182
    183183        // Merge customs with defaults.
    184         $metas = wp_parse_args( $args, $metadata );
     184        $metas = bp_parse_args( $args, $metadata );
    185185
    186186        // Validate metadata
    187187        $metas = array_intersect_key( $metas, $metadata );
  • src/bp-core/bp-core-attachments.php

    diff --git src/bp-core/bp-core-attachments.php src/bp-core/bp-core-attachments.php
    index cf4321c6a..be5e58259 100644
    function bp_attachments_get_cover_image_settings( $component = 'members' ) { 
    10211021        }
    10221022
    10231023        // Set default args.
    1024         $default_args = wp_parse_args(
     1024        $default_args = bp_parse_args(
    10251025                $args,
    10261026                array(
    10271027                        'components'    => array(),
  • src/bp-core/bp-core-avatars.php

    diff --git src/bp-core/bp-core-avatars.php src/bp-core/bp-core-avatars.php
    index 3ffa26d12..8d0e3e6a5 100644
    function bp_core_fetch_avatar( $args = '' ) { 
    231231        }
    232232
    233233        // Set the default variables array and parse it against incoming $args array.
    234         $params = wp_parse_args( $args, array(
     234        $params = bp_parse_args( $args, array(
    235235                'item_id'       => false,
    236236                'object'        => 'user',
    237237                'type'          => 'thumb',
    function bp_core_delete_existing_avatar( $args = '' ) { 
    765765                'avatar_dir' => false
    766766        );
    767767
    768         $args = wp_parse_args( $args, $defaults );
     768        $args = bp_parse_args( $args, $defaults );
    769769
    770770        /**
    771771         * Filters whether or not to handle deleting an existing avatar.
    function bp_avatar_handle_capture( $data = '', $item_id = 0 ) { 
    12541254 */
    12551255function bp_core_avatar_handle_crop( $args = '' ) {
    12561256
    1257         $r = wp_parse_args( $args, array(
     1257        $r = bp_parse_args( $args, array(
    12581258                'object'        => 'user',
    12591259                'avatar_dir'    => 'avatars',
    12601260                'item_id'       => false,
    function bp_avatar_ajax_set() { 
    13071307        // Check the nonce.
    13081308        check_admin_referer( 'bp_avatar_cropstore', 'nonce' );
    13091309
    1310         $avatar_data = wp_parse_args( $_POST, array(
     1310        $avatar_data = bp_parse_args( $_POST, array(
    13111311                'crop_w' => bp_core_avatar_full_width(),
    13121312                'crop_h' => bp_core_avatar_full_height(),
    13131313                'crop_x' => 0,
  • src/bp-core/bp-core-blocks.php

    diff --git src/bp-core/bp-core-blocks.php src/bp-core/bp-core-blocks.php
    index 94e485dbc..7e5f8d2bd 100644
    function bp_blocks_get_login_widget_registration_link( $content = '', $args = ar 
    257257 * @return string           HTML output.
    258258 */
    259259function bp_block_render_login_form_block( $attributes = array() ) {
    260         $block_args = wp_parse_args(
     260        $block_args = bp_parse_args(
    261261                $attributes,
    262262                array(
    263263                        'title' => '',
  • src/bp-core/bp-core-buddybar.php

    diff --git src/bp-core/bp-core-buddybar.php src/bp-core/bp-core-buddybar.php
    index 336a52ad8..54ee372d2 100644
    function bp_core_new_nav_item( $args, $component = 'members' ) { 
    5353                'default_subnav_slug'     => false  // The slug of the default subnav item to select when clicked.
    5454        );
    5555
    56         $r = wp_parse_args( $args, $defaults );
     56        $r = bp_parse_args( $args, $defaults );
    5757
    5858        // Validate nav link data.
    5959        $nav_item = bp_core_create_nav_link( $r, $component );
    function bp_core_create_nav_link( $args = '', $component = 'members' ) { 
    130130                'default_subnav_slug'     => false  // The slug of the default subnav item to select when clicked.
    131131        );
    132132
    133         $r = wp_parse_args( $args, $defaults );
     133        $r = bp_parse_args( $args, $defaults );
    134134
    135135        // If we don't have the required info we need, don't create this nav item.
    136136        if ( empty( $r['name'] ) || empty( $r['slug'] ) ) {
    function bp_core_register_nav_screen_function( $args = '' ) { 
    217217                'default_subnav_slug'     => false  // The slug of the default subnav item to select when clicked.
    218218        );
    219219
    220         $r = wp_parse_args( $args, $defaults );
     220        $r = bp_parse_args( $args, $defaults );
    221221
    222222        // If we don't have the required info we need, don't register this screen function.
    223223        if ( empty( $r['slug'] ) ) {
    function bp_core_new_nav_default( $args = '' ) { 
    314314                'subnav_slug'     => false  // The slug of the subnav item to select when clicked.
    315315        );
    316316
    317         $r = wp_parse_args( $args, $defaults );
     317        $r = bp_parse_args( $args, $defaults );
    318318
    319319        // This is specific to Members - it's not available in Groups.
    320320        $parent_nav = $bp->members->nav->get_primary( array( 'slug' => $r['parent_slug'] ), false );
    function bp_core_new_subnav_item( $args, $component = null ) { 
    529529function bp_core_create_subnav_link( $args = '', $component = 'members' ) {
    530530        $bp = buddypress();
    531531
    532         $r = wp_parse_args( $args, array(
     532        $r = bp_parse_args( $args, array(
    533533                'name'              => false, // Display name for the nav item.
    534534                'slug'              => false, // URL slug for the nav item.
    535535                'parent_slug'       => false, // URL slug of the parent nav item.
    function bp_core_create_subnav_link( $args = '', $component = 'members' ) { 
    625625function bp_core_register_subnav_screen_function( $args = '', $component = 'members' ) {
    626626        $bp = buddypress();
    627627
    628         $r = wp_parse_args( $args, array(
     628        $r = bp_parse_args( $args, array(
    629629                'slug'              => false, // URL slug for the screen.
    630630                'parent_slug'       => false, // URL slug of the parent screen.
    631631                'user_has_access'   => true,  // Can the user visit this screen?
  • src/bp-core/bp-core-cache.php

    diff --git src/bp-core/bp-core-cache.php src/bp-core/bp-core-cache.php
    index 35d381a50..0fcf58458 100644
    function bp_update_meta_cache( $args = array() ) { 
    207207                'object_column'    => '',      // DB column for the object ids (group_id, etc).
    208208                'cache_key_prefix' => ''       // Prefix to use when creating cache key names. Eg 'bp_groups_groupmeta'.
    209209        );
    210         $r = wp_parse_args( $args, $defaults );
     210        $r = bp_parse_args( $args, $defaults );
    211211        extract( $r );
    212212
    213213        if ( empty( $object_ids ) || empty( $object_type ) || empty( $meta_table ) || empty( $cache_group ) ) {
  • src/bp-core/bp-core-catchuri.php

    diff --git src/bp-core/bp-core-catchuri.php src/bp-core/bp-core-catchuri.php
    index df857d464..9717437c4 100644
    function bp_core_no_access( $args = '' ) { 
    643643                'message'  => __( 'You must log in to access the page you requested.', 'buddypress' )
    644644        );
    645645
    646         $r = wp_parse_args( $args, $defaults );
     646        $r = bp_parse_args( $args, $defaults );
    647647
    648648        /**
    649649         * Filters the arguments used for user redirecting when visiting access controlled areas.
    function bp_get_canonical_url( $args = array() ) { 
    875875        $defaults = array(
    876876                'include_query_args' => false // Include URL arguments, eg ?foo=bar&foo2=bar2.
    877877        );
    878         $r = wp_parse_args( $args, $defaults );
     878        $r = bp_parse_args( $args, $defaults );
    879879        extract( $r );
    880880
    881881        // Special case: when a BuddyPress directory (eg example.com/members)
  • src/bp-core/bp-core-functions.php

    diff --git src/bp-core/bp-core-functions.php src/bp-core/bp-core-functions.php
    index 066e7a25f..e62968fd7 100644
    function bp_core_number_format( $number = 0, $decimals = false ) { 
    230230 *           'arg3' => array(),
    231231 *           'arg4' => false,
    232232 *       );
    233  *       $r = wp_parse_args( $args, $defaults ); // ...
     233 *       $r = bp_parse_args( $args, $defaults ); // ...
    234234 *
    235235 * The first argument, $old_args_keys, is an array that matches the parameter positions (keys) to
    236236 * the new $args keys (values):
    function bp_parse_args( $args, $defaults = array(), $filter_key = '' ) { 
    290290        }
    291291
    292292        // Passively filter the args before the parse.
    293         if ( !empty( $filter_key ) ) {
     293        if ( ! empty( $filter_key ) ) {
    294294
    295295                /**
    296296                 * Filters the arguments key before parsing if filter key provided.
    function bp_parse_args( $args, $defaults = array(), $filter_key = '' ) { 
    305305        }
    306306
    307307        // Parse.
    308         if ( is_array( $defaults ) && !empty( $defaults ) ) {
     308        if ( is_array( $defaults ) && ! empty( $defaults ) ) {
    309309                $r = array_merge( $defaults, $r );
    310310        }
    311311
    312312        // Aggressively filter the args after the parse.
    313         if ( !empty( $filter_key ) ) {
     313        if ( ! empty( $filter_key ) ) {
    314314
    315315                /**
    316316                 * Filters the arguments key after parsing if filter key provided.
    function bp_core_current_time( $gmt = true, $type = 'mysql' ) { 
    11951195 */
    11961196function bp_core_time_diff( $args = array() ) {
    11971197        $retval = null;
    1198         $r      = wp_parse_args(
     1198        $r      = bp_parse_args(
    11991199                $args,
    12001200                array(
    12011201                        'older_date'     => 0,
  • src/bp-core/bp-core-template.php

    diff --git src/bp-core/bp-core-template.php src/bp-core/bp-core-template.php
    index 0961c0805..2145146a4 100644
    function bp_nav_menu( $args = array() ) { 
    36713671                'menu_id'         => '',
    36723672                'walker'          => '',
    36733673        );
    3674         $args = wp_parse_args( $args, $defaults );
     3674        $args = bp_parse_args( $args, $defaults );
    36753675
    36763676        /**
    36773677         * Filters the parsed bp_nav_menu arguments.
  • src/bp-core/bp-core-theme-compatibility.php

    diff --git src/bp-core/bp-core-theme-compatibility.php src/bp-core/bp-core-theme-compatibility.php
    index f6a40e22b..12e39a745 100644
    function bp_theme_compat_reset_post( $args = array() ) { 
    549549
    550550        // Switch defaults if post is set.
    551551        if ( isset( $wp_query->post ) ) {
    552                 $dummy = wp_parse_args( $args, array(
     552                $dummy = bp_parse_args( $args, array(
    553553                        'ID'                    => $wp_query->post->ID,
    554554                        'post_status'           => $wp_query->post->post_status,
    555555                        'post_author'           => $wp_query->post->post_author,
    function bp_theme_compat_reset_post( $args = array() ) { 
    582582                        'is_tax'                => false,
    583583                ) );
    584584        } else {
    585                 $dummy = wp_parse_args( $args, array(
     585                $dummy = bp_parse_args( $args, array(
    586586                        'ID'                    => -9999,
    587587                        'post_status'           => 'public',
    588588                        'post_author'           => 0,
  • src/bp-core/classes/class-bp-button.php

    diff --git src/bp-core/classes/class-bp-button.php src/bp-core/classes/class-bp-button.php
    index 35785ef99..b545078cb 100644
    class BP_Button { 
    236236         */
    237237        public function __construct( $args = '' ) {
    238238
    239                 $r = wp_parse_args( $args, get_class_vars( __CLASS__ ) );
     239                $r = bp_parse_args( $args, get_class_vars( __CLASS__ ) );
    240240
    241241                // Backward compatibility with deprecated parameters.
    242242                $r = $this->backward_compatibility_args( $r );
  • src/bp-core/classes/class-bp-component.php

    diff --git src/bp-core/classes/class-bp-component.php src/bp-core/classes/class-bp-component.php
    index 626fa2fcf..c8dd8062c 100644
    class BP_Component { 
    234234         * }
    235235         */
    236236        public function setup_globals( $args = array() ) {
    237                 $r = wp_parse_args( $args, array(
     237                $r = bp_parse_args( $args, array(
    238238                        'slug'                  => $this->id,
    239239                        'root_slug'             => '',
    240240                        'has_directory'         => false,
  • src/bp-core/classes/class-bp-core-login-widget.php

    diff --git src/bp-core/classes/class-bp-core-login-widget.php src/bp-core/classes/class-bp-core-login-widget.php
    index b9c66cbd9..c76df85c5 100644
    class BP_Core_Login_Widget extends WP_Widget { 
    174174         */
    175175        public function form( $instance = array() ) {
    176176
    177                 $settings = wp_parse_args( $instance, array(
     177                $settings = bp_parse_args( $instance, array(
    178178                        'title' => '',
    179179                ) ); ?>
    180180
  • src/bp-core/classes/class-bp-core-nav.php

    diff --git src/bp-core/classes/class-bp-core-nav.php src/bp-core/classes/class-bp-core-nav.php
    index 634ddcbb1..8d8024389 100644
    class BP_Core_Nav { 
    176176                        }
    177177
    178178                        $nav_item = reset( $nav_items );
    179                         $this->nav[ $this->object_id ][ $slug ] = new BP_Core_Nav_Item( wp_parse_args( $args, (array) $nav_item ) );
     179                        $this->nav[ $this->object_id ][ $slug ] = new BP_Core_Nav_Item( bp_parse_args( $args, (array) $nav_item ) );
    180180
    181181                        // Return the edited object.
    182182                        return $this->nav[ $this->object_id ][ $slug ];
    class BP_Core_Nav { 
    191191
    192192                        $sub_item = reset( $sub_items );
    193193
    194                         $params = wp_parse_args( $args, (array) $sub_item );
     194                        $params = bp_parse_args( $args, (array) $sub_item );
    195195
    196196                        // When we have parents, it's for life, we can't change them!
    197197                        if ( empty( $params['parent_slug'] ) || $parent_slug !== $params['parent_slug'] ) {
    class BP_Core_Nav { 
    325325         * @return array The list of primary objects nav
    326326         */
    327327        public function get_primary( $args = array(), $sort = true ) {
    328                 $params = wp_parse_args( $args, array( 'primary' => true ) );
     328                $params = bp_parse_args( $args, array( 'primary' => true ) );
    329329
    330330                // This parameter is not overridable.
    331331                if ( empty( $params['primary'] ) ) {
    class BP_Core_Nav { 
    355355         * @return bool|array The list of secondary objects nav, or false if none set.
    356356         */
    357357        public function get_secondary( $args = array(), $sort = true ) {
    358                 $params = wp_parse_args( $args, array( 'parent_slug' => '' ) );
     358                $params = bp_parse_args( $args, array( 'parent_slug' => '' ) );
    359359
    360360                // No need to search children if the parent is not set.
    361361                if ( empty( $params['parent_slug'] ) && empty( $params['secondary'] ) ) {
  • src/bp-core/classes/class-bp-core-oembed-extension.php

    diff --git src/bp-core/classes/class-bp-core-oembed-extension.php src/bp-core/classes/class-bp-core-oembed-extension.php
    index b2a480965..1ba72d44b 100644
    abstract class BP_Core_oEmbed_Extension { 
    367367         * @return array
    368368         */
    369369        protected function get_oembed_response_data( $item, $width ) {
    370                 $data = wp_parse_args( $item, array(
     370                $data = bp_parse_args( $item, array(
    371371                        'version'       => '1.0',
    372372                        'provider_name' => get_bloginfo( 'name' ),
    373373                        'provider_url'  => get_home_url(),
  • src/bp-core/classes/class-bp-embed.php

    diff --git src/bp-core/classes/class-bp-embed.php src/bp-core/classes/class-bp-embed.php
    index 4b1d160f5..a87086e34 100644
    class BP_Embed extends WP_Embed { 
    8080                        return '';
    8181
    8282                $rawattr = $attr;
    83                 $attr = wp_parse_args( $attr, wp_embed_defaults() );
     83                $attr = bp_parse_args( $attr, wp_embed_defaults() );
    8484
    8585                // Use kses to convert & into & and we need to undo this
    8686                // See https://core.trac.wordpress.org/ticket/11311.
  • src/bp-core/classes/class-bp-suggestions.php

    diff --git src/bp-core/classes/class-bp-suggestions.php src/bp-core/classes/class-bp-suggestions.php
    index c222ed709..bf2198fdb 100644
    abstract class BP_Suggestions { 
    8080         * }
    8181         */
    8282        public function set_query( array $args = array() ) {
    83                 $this->args = wp_parse_args( $args, $this->default_args );
     83                $this->args = bp_parse_args( $args, $this->default_args );
    8484        }
    8585
    8686        /**
  • src/bp-core/classes/class-bp-user-query.php

    diff --git src/bp-core/classes/class-bp-user-query.php src/bp-core/classes/class-bp-user-query.php
    index 68b4fbf56..3ec5c9d22 100644
    class BP_User_Query { 
    154154                $this->setup_hooks();
    155155
    156156                if ( ! empty( $this->query_vars_raw ) ) {
    157                         $this->query_vars = wp_parse_args( $this->query_vars_raw, array(
     157                        $this->query_vars = bp_parse_args( $this->query_vars_raw, array(
    158158                                'type'                => 'newest',
    159159                                'per_page'            => 0,
    160160                                'page'                => 1,
  • src/bp-core/deprecated/1.2.php

    diff --git src/bp-core/deprecated/1.2.php src/bp-core/deprecated/1.2.php
    index 7d520eaf3..1f5fd567e 100644
    function bp_activity_get_sitewide( $args = '' ) { 
    4444                'filter' => array()
    4545        );
    4646
    47         $args = wp_parse_args( $args, $defaults );
     47        $args = bp_parse_args( $args, $defaults );
    4848
    4949        return apply_filters( 'bp_activity_get_sitewide', BP_Activity_Activity::get( $args ), $r );
    5050}
  • src/bp-core/deprecated/1.5.php

    diff --git src/bp-core/deprecated/1.5.php src/bp-core/deprecated/1.5.php
    index 7ef75b69e..c64f99ab3 100644
    function bp_core_add_admin_menu_page( $args = '' ) { 
    9797                'position'     => 100
    9898        );
    9999
    100         $r = wp_parse_args( $args, $defaults );
     100        $r = bp_parse_args( $args, $defaults );
    101101        extract( $r, EXTR_SKIP );
    102102
    103103        $file     = plugin_basename( $file );
  • src/bp-friends/bp-friends-activity.php

    diff --git src/bp-friends/bp-friends-activity.php src/bp-friends/bp-friends-activity.php
    index 24efd68dd..8c872ad54 100644
    function friends_record_activity( $args = '' ) { 
    3939                return false;
    4040        }
    4141
    42         $r = wp_parse_args( $args, array(
     42        $r = bp_parse_args( $args, array(
    4343                'user_id'           => bp_loggedin_user_id(),
    4444                'action'            => '',
    4545                'content'           => '',
  • src/bp-friends/bp-friends-blocks.php

    diff --git src/bp-friends/bp-friends-blocks.php src/bp-friends/bp-friends-blocks.php
    index 25a172bda..cd0d23abc 100644
    function bp_friends_blocks_add_script_data() { 
    4444 * @return string           HTML output.
    4545 */
    4646function bp_friends_render_friends_block( $attributes = array() ) {
    47         $block_args = wp_parse_args(
     47        $block_args = bp_parse_args(
    4848                $attributes,
    4949                array(
    5050                        'maxFriends'    => 5,
  • src/bp-friends/classes/class-bp-core-friends-widget.php

    diff --git src/bp-friends/classes/class-bp-core-friends-widget.php src/bp-friends/classes/class-bp-core-friends-widget.php
    index cae27828d..12dcfd594 100644
    class BP_Core_Friends_Widget extends WP_Widget { 
    184184                        'link_title'     => false,
    185185                );
    186186
    187                 $instance       = wp_parse_args( (array) $instance, $defaults );
     187                $instance       = bp_parse_args( (array) $instance, $defaults );
    188188                $max_friends    = $instance['max_friends'];
    189189                $friend_default = $instance['friend_default'];
    190190                $link_title     = (bool) $instance['link_title'];
  • src/bp-groups/bp-groups-blocks.php

    diff --git src/bp-groups/bp-groups-blocks.php src/bp-groups/bp-groups-blocks.php
    index 224d298b8..42bda3cd7 100644
    if ( ! defined( 'ABSPATH' ) ) { 
    2323function bp_groups_render_group_block( $attributes = array() ) {
    2424        $bp = buddypress();
    2525
    26         $block_args = wp_parse_args(
     26        $block_args = bp_parse_args(
    2727                $attributes,
    2828                array(
    2929                        'itemID'              => 0,
    function bp_groups_render_group_block( $attributes = array() ) { 
    190190function bp_groups_render_groups_block( $attributes = array() ) {
    191191        $bp = buddypress();
    192192
    193         $block_args = wp_parse_args(
     193        $block_args = bp_parse_args(
    194194                $attributes,
    195195                array(
    196196                        'itemIDs'          => array(),
    function bp_groups_blocks_add_script_data() { 
    345345 * @return string           HTML output.
    346346 */
    347347function bp_groups_render_dynamic_groups_block( $attributes = array() ) {
    348         $block_args = wp_parse_args(
     348        $block_args = bp_parse_args(
    349349                $attributes,
    350350                array(
    351351                        'title'        => __( 'Groups', 'buddypress' ),
  • src/bp-groups/bp-groups-template.php

    diff --git src/bp-groups/bp-groups-template.php src/bp-groups/bp-groups-template.php
    index ce3ae0a19..c391cbcd6 100644
    function bp_group_type_list( $group_id = 0, $r = array() ) { 
    277277                        );
    278278                }
    279279
    280                 $labels = wp_parse_args(
     280                $labels = bp_parse_args(
    281281                        $r['label'],
    282282                        array(
    283283                                'plural'   => __( 'Group Types:', 'buddypress' ),
  • src/bp-members/bp-members-blocks.php

    diff --git src/bp-members/bp-members-blocks.php src/bp-members/bp-members-blocks.php
    index ae9cd93bf..cd39942ac 100644
    if ( ! defined( 'ABSPATH' ) ) { 
    2323function bp_members_render_member_block( $attributes = array() ) {
    2424        $bp = buddypress();
    2525
    26         $block_args = wp_parse_args(
     26        $block_args = bp_parse_args(
    2727                $attributes,
    2828                array(
    2929                        'itemID'              => 0,
    function bp_members_render_member_block( $attributes = array() ) { 
    180180function bp_members_render_members_block( $attributes = array() ) {
    181181        $bp = buddypress();
    182182
    183         $block_args = wp_parse_args(
     183        $block_args = bp_parse_args(
    184184                $attributes,
    185185                array(
    186186                        'itemIDs'            => array(),
    function bp_members_blocks_add_script_data() { 
    366366 * @return string           HTML output.
    367367 */
    368368function bp_members_render_dynamic_members_block( $attributes = array() ) {
    369         $block_args = wp_parse_args(
     369        $block_args = bp_parse_args(
    370370                $attributes,
    371371                array(
    372372                        'title'         => __( 'Members', 'buddypress' ),
  • src/bp-members/bp-members-template.php

    diff --git src/bp-members/bp-members-template.php src/bp-members/bp-members-template.php
    index 719874481..a3d8e6f76 100644
    function bp_member_avatar( $args = '' ) { 
    827827                        'alt'    => sprintf( __( 'Profile picture of %s', 'buddypress' ), $fullname )
    828828                );
    829829
    830                 $r = wp_parse_args( $args, $defaults );
     830                $r = bp_parse_args( $args, $defaults );
    831831                extract( $r, EXTR_SKIP );
    832832
    833833                /**
    function bp_member_latest_update( $args = '' ) { 
    10471047                        'view_link' => true
    10481048                );
    10491049
    1050                 $r = wp_parse_args( $args, $defaults );
     1050                $r = bp_parse_args( $args, $defaults );
    10511051                extract( $r );
    10521052
    10531053                if ( !bp_is_active( 'activity' ) || empty( $members_template->member->latest_update ) || !$update = maybe_unserialize( $members_template->member->latest_update ) )
    function bp_member_profile_data( $args = '' ) { 
    11401140                        'user_id' => $default_user_id,
    11411141                );
    11421142
    1143                 $r = wp_parse_args( $args, $defaults );
     1143                $r = bp_parse_args( $args, $defaults );
    11441144
    11451145                // If we're in a members loop, get the data from the global.
    11461146                if ( ! empty( $members_template->member->profile_data ) ) {
    function bp_member_registered( $args = array() ) { 
    12201220        function bp_get_member_registered( $args = array() ) {
    12211221                global $members_template;
    12221222
    1223                 $r = wp_parse_args( $args, array(
     1223                $r = bp_parse_args( $args, array(
    12241224                        'relative' => true,
    12251225                ) );
    12261226
    function bp_loggedin_user_avatar( $args = '' ) { 
    15751575         */
    15761576        function bp_get_loggedin_user_avatar( $args = '' ) {
    15771577
    1578                 $r = wp_parse_args( $args, array(
     1578                $r = bp_parse_args( $args, array(
    15791579                        'item_id' => bp_loggedin_user_id(),
    15801580                        'type'    => 'thumb',
    15811581                        'width'   => false,
    function bp_displayed_user_avatar( $args = '' ) { 
    16301630         */
    16311631        function bp_get_displayed_user_avatar( $args = '' ) {
    16321632
    1633                 $r = wp_parse_args( $args, array(
     1633                $r = bp_parse_args( $args, array(
    16341634                        'item_id' => bp_displayed_user_id(),
    16351635                        'type'    => 'thumb',
    16361636                        'width'   => false,
    function bp_member_type_list( $user_id = 0, $r = array() ) { 
    21532153                // Should the label be output?
    21542154                $has_label = ! empty( $r['label'] );
    21552155
    2156                 $labels = wp_parse_args(
     2156                $labels = bp_parse_args(
    21572157                        $r['label'],
    21582158                        array(
    21592159                                'plural'   => __( 'Member Types:', 'buddypress' ),
    function bp_signup_avatar( $args = '' ) { 
    27112711                        'alt' => __( 'Your Profile Photo', 'buddypress' )
    27122712                );
    27132713
    2714                 $r = wp_parse_args( $args, $defaults );
     2714                $r = bp_parse_args( $args, $defaults );
    27152715                extract( $r, EXTR_SKIP );
    27162716
    27172717                // Avatar DIR is found.
    function bp_the_members_invitation_action_links( $args = '' ) { 
    31893189                $inviter_id = isset( $args['inviter_id'] ) ? $args['inviter_id'] : bp_displayed_user_id();
    31903190
    31913191                // Parse.
    3192                 $r = wp_parse_args( $args, array(
     3192                $r = bp_parse_args( $args, array(
    31933193                        'before' => '',
    31943194                        'after'  => '',
    31953195                        'sep'    => ' | ',
  • src/bp-members/classes/class-bp-core-members-template.php

    diff --git src/bp-members/classes/class-bp-core-members-template.php src/bp-members/classes/class-bp-core-members-template.php
    index ed82ef88f..101d9ec6b 100644
    class BP_Core_Members_Template { 
    173173                        'member_type__not_in' => '',
    174174                        'xprofile_query'      => false,
    175175                );
    176                 $r = wp_parse_args( $args, $defaults );
     176                $r = bp_parse_args( $args, $defaults );
    177177
    178178                $this->pag_arg  = sanitize_key( $r['page_arg'] );
    179179                $this->pag_page = bp_sanitize_pagination_arg( $this->pag_arg, $r['page_number'] );
  • src/bp-members/classes/class-bp-members-invitations-template.php

    diff --git src/bp-members/classes/class-bp-members-invitations-template.php src/bp-members/classes/class-bp-members-invitations-template.php
    index 9b2554f60..3270eed7d 100644
    class BP_Members_Invitations_Template { 
    162162        public function __construct( $args = array() ) {
    163163
    164164                // Parse arguments.
    165                 $r = wp_parse_args(
     165                $r = bp_parse_args(
    166166                        $args,
    167167                        array(
    168168                                'id'            => false,
  • src/bp-members/classes/class-bp-signup.php

    diff --git src/bp-members/classes/class-bp-signup.php src/bp-members/classes/class-bp-signup.php
    index 1f12411cd..0cb880f38 100644
    class BP_Signup { 
    730730
    731731                // Figure out which meta keys should be updated.
    732732                $signup       = new BP_Signup( $signup_id );
    733                 $blended_meta = wp_parse_args( $r['meta'], $signup->meta );
     733                $blended_meta = bp_parse_args( $r['meta'], $signup->meta );
    734734
    735735                $wpdb->update(
    736736                        // Signups table.
  • src/bp-members/screens/invitations.php

    diff --git src/bp-members/screens/invitations.php src/bp-members/screens/invitations.php
    index 8bb103179..157cf8ae3 100644
    function members_screen_send_invites() { 
    2727                        'send_invite'   => 1,
    2828                );
    2929
    30                 $invite_args = wp_parse_args( array_map( 'wp_unslash', $_REQUEST ), $default_args );
     30                $invite_args = bp_parse_args( array_map( 'wp_unslash', $_REQUEST ), $default_args );
    3131                $invite_args = array_intersect_key( $invite_args, $default_args );
    3232
    3333                // Check the nonce and delete the invitation.
  • src/bp-messages/bp-messages-star.php

    diff --git src/bp-messages/bp-messages-star.php src/bp-messages/bp-messages-star.php
    index 0ec5aa5ef..5a1353f95 100644
    function bp_the_message_star_action_link( $args = array() ) { 
    247247 * @return bool
    248248 */
    249249function bp_messages_star_set_action( $args = array() ) {
    250         $r = wp_parse_args( $args, array(
     250        $r = bp_parse_args( $args, array(
    251251                'action'     => 'star',
    252252                'thread_id'  => 0,
    253253                'message_id' => 0,
  • src/bp-messages/classes/class-bp-messages-box-template.php

    diff --git src/bp-messages/classes/class-bp-messages-box-template.php src/bp-messages/classes/class-bp-messages-box-template.php
    index daae957b1..fafef79da 100644
    class BP_Messages_Box_Template { 
    126126                        $args = bp_core_parse_args_array( $old_args_keys, $function_args );
    127127                }
    128128
    129                 $r = wp_parse_args( $args, array(
     129                $r = bp_parse_args( $args, array(
    130130                        'page'         => 1,
    131131                        'per_page'     => 10,
    132132                        'page_arg'     => 'mpage',
  • src/bp-messages/classes/class-bp-messages-notice.php

    diff --git src/bp-messages/classes/class-bp-messages-notice.php src/bp-messages/classes/class-bp-messages-notice.php
    index 0ef29e31a..5888e2c57 100644
    class BP_Messages_Notice { 
    240240        public static function get_notices( $args = array() ) {
    241241                global $wpdb;
    242242
    243                 $r = wp_parse_args( $args, array(
     243                $r = bp_parse_args( $args, array(
    244244                        'pag_num'  => 20, // Number of notices per page.
    245245                        'pag_page' => 1   // Page number.
    246246                ) );
  • src/bp-messages/classes/class-bp-messages-notices-admin.php

    diff --git src/bp-messages/classes/class-bp-messages-notices-admin.php src/bp-messages/classes/class-bp-messages-notices-admin.php
    index b6c2aafa0..2bc5dc113 100644
    class BP_Messages_Notices_Admin { 
    126126
    127127                        check_admin_referer( 'new-notice', 'ns-nonce' );
    128128
    129                         $notice = wp_parse_args( $_POST['bp_notice'], array(
     129                        $notice = bp_parse_args( $_POST['bp_notice'], array(
    130130                                'subject' => '',
    131131                                'content' => ''
    132132                        ) );
  • src/bp-messages/classes/class-bp-messages-sitewide-notices-widget.php

    diff --git src/bp-messages/classes/class-bp-messages-sitewide-notices-widget.php src/bp-messages/classes/class-bp-messages-sitewide-notices-widget.php
    index 93dc101b0..c8566c4fa 100644
    class BP_Messages_Sitewide_Notices_Widget extends WP_Widget { 
    108108         * @param array $instance See {@WP_Widget::form()}.
    109109         */
    110110        public function form( $instance ) {
    111                 $instance = wp_parse_args( (array) $instance, array(
     111                $instance = bp_parse_args( (array) $instance, array(
    112112                        'title' => '',
    113113                ) );
    114114
  • src/bp-messages/classes/class-bp-messages-thread.php

    diff --git src/bp-messages/classes/class-bp-messages-thread.php src/bp-messages/classes/class-bp-messages-thread.php
    index 8a2845d21..11c3399f8 100644
    class BP_Messages_Thread { 
    170170                        bp_loggedin_user_id();
    171171
    172172                // Merge $args with our defaults.
    173                 $r = wp_parse_args(
     173                $r = bp_parse_args(
    174174                        $args,
    175175                        array(
    176176                                'user_id'             => $user_id,
    class BP_Messages_Thread { 
    283283                }
    284284
    285285                $bp = buddypress();
    286                 $r  = wp_parse_args(
     286                $r  = bp_parse_args(
    287287                        $args,
    288288                        array(
    289289                                'recipients_page'     => null,
    class BP_Messages_Thread { 
    364364                }
    365365
    366366                $bp = buddypress();
    367                 $r  = wp_parse_args(
     367                $r  = bp_parse_args(
    368368                        $args,
    369369                        array(
    370370                                'page'     => null,
  • src/bp-notifications/bp-notifications-template.php

    diff --git src/bp-notifications/bp-notifications-template.php src/bp-notifications/bp-notifications-template.php
    index 4c33d7825..d8771319d 100644
    function bp_the_notification_action_links( $args = '' ) { 
    885885                $user_id = isset( $args['user_id'] ) ? $args['user_id'] : bp_displayed_user_id();
    886886
    887887                // Parse.
    888                 $r = wp_parse_args( $args, array(
     888                $r = bp_parse_args( $args, array(
    889889                        'before' => '',
    890890                        'after'  => '',
    891891                        'sep'    => ' | ',
  • src/bp-notifications/classes/class-bp-notifications-notification.php

    diff --git src/bp-notifications/classes/class-bp-notifications-notification.php src/bp-notifications/classes/class-bp-notifications-notification.php
    index 9e2bee2f9..85024df9c 100644
    class BP_Notifications_Notification { 
    616616         * @return array
    617617         */
    618618        public static function parse_args( $args = '' ) {
    619                 return wp_parse_args( $args, array(
     619                return bp_parse_args( $args, array(
    620620                        'id'                => false,
    621621                        'user_id'           => false,
    622622                        'item_id'           => false,
    class BP_Notifications_Notification { 
    10301030         * }
    10311031         */
    10321032        public static function get_current_notifications_for_user( $args = array() ) {
    1033                 $r = wp_parse_args( $args, array(
     1033                $r = bp_parse_args( $args, array(
    10341034                        'user_id'      => bp_loggedin_user_id(),
    10351035                        'is_new'       => true,
    10361036                        'page'         => 1,
  • src/bp-notifications/classes/class-bp-notifications-template.php

    diff --git src/bp-notifications/classes/class-bp-notifications-template.php src/bp-notifications/classes/class-bp-notifications-template.php
    index c57f0e131..340ed406a 100644
    class BP_Notifications_Template { 
    152152        public function __construct( $args = array() ) {
    153153
    154154                // Parse arguments.
    155                 $r = wp_parse_args( $args, array(
     155                $r = bp_parse_args( $args, array(
    156156                        'id'                => false,
    157157                        'user_id'           => 0,
    158158                        'item_id'           => false,
  • src/bp-templates/bp-legacy/buddypress-functions.php

    diff --git src/bp-templates/bp-legacy/buddypress-functions.php src/bp-templates/bp-legacy/buddypress-functions.php
    index 44db3a2e7..b542f193e 100644
    function bp_legacy_theme_ajax_querystring( $query_string, $object ) { 
    700700
    701701        // Set up the cookies passed on this AJAX request. Store a local var to avoid conflicts.
    702702        if ( ! empty( $_POST['cookie'] ) ) {
    703                 $_BP_COOKIE = wp_parse_args( str_replace( '; ', '&', urldecode( $_POST['cookie'] ) ) );
     703                $_BP_COOKIE = bp_parse_args( str_replace( '; ', '&', urldecode( $_POST['cookie'] ) ) );
    704704        } else {
    705705                $_BP_COOKIE = &$_COOKIE;
    706706        }
  • src/bp-xprofile/bp-xprofile-functions.php

    diff --git src/bp-xprofile/bp-xprofile-functions.php src/bp-xprofile/bp-xprofile-functions.php
    index f13a9239f..5770fabf7 100644
    function bp_xprofile_create_field_type( $type ) { 
    230230 */
    231231function xprofile_insert_field( $args = '' ) {
    232232
    233         $r = wp_parse_args( $args, array(
     233        $r = bp_parse_args( $args, array(
    234234                'field_id'          => null,
    235235                'field_group_id'    => null,
    236236                'parent_id'         => null,
  • src/bp-xprofile/bp-xprofile-template.php

    diff --git src/bp-xprofile/bp-xprofile-template.php src/bp-xprofile/bp-xprofile-template.php
    index 78fff208c..f91f3d11f 100644
    function bp_profile_field_data( $args = '' ) { 
    954954         */
    955955        function bp_get_profile_field_data( $args = '' ) {
    956956
    957                 $r = wp_parse_args( $args, array(
     957                $r = bp_parse_args( $args, array(
    958958                        'field'   => false, // Field name or ID.
    959959                        'user_id' => bp_displayed_user_id()
    960960                ) );
  • src/bp-xprofile/classes/class-bp-xprofile-data-template.php

    diff --git src/bp-xprofile/classes/class-bp-xprofile-data-template.php src/bp-xprofile/classes/class-bp-xprofile-data-template.php
    index 118e5961e..66a0b14fb 100644
    class BP_XProfile_Data_Template { 
    148148                        $args = bp_core_parse_args_array( $old_args_keys, $function_args );
    149149                }
    150150
    151                 $r = wp_parse_args( $args, array(
     151                $r = bp_parse_args( $args, array(
    152152                        'profile_group_id'       => false,
    153153                        'user_id'                => false,
    154154                        'member_type'            => 'any',
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox-acceptance.php

    diff --git src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox-acceptance.php src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox-acceptance.php
    index 3eb97d3ce..dbc8a73ef 100644
    class BP_XProfile_Field_Type_Checkbox_Acceptance extends BP_XProfile_Field_Type 
    243243         */
    244244        public function edit_field_options_html( array $args = array() ) {
    245245                $field_id            = (int) $this->field_obj->id;
    246                 $params              = wp_parse_args( $args, array( 'user_id' => bp_displayed_user_id() ) );
     246                $params              = bp_parse_args( $args, array( 'user_id' => bp_displayed_user_id() ) );
    247247                $checkbox_acceptance = (int) maybe_unserialize( \BP_XProfile_ProfileData::get_value_byid( $field_id, $params['user_id'] ) );
    248248
    249249                if ( ! empty( $_POST[ 'field_' . $field_id ] ) ) {
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-textarea.php

    diff --git src/bp-xprofile/classes/class-bp-xprofile-field-type-textarea.php src/bp-xprofile/classes/class-bp-xprofile-field-type-textarea.php
    index 61bf0bdf6..c42daf77e 100644
    class BP_XProfile_Field_Type_Textarea extends BP_XProfile_Field_Type { 
    7474                do_action( bp_get_the_profile_field_errors_action() );
    7575
    7676                if ( ! $richtext_enabled ) {
    77                         $r = wp_parse_args( $raw_properties, array(
     77                        $r = bp_parse_args( $raw_properties, array(
    7878                                'cols' => 40,
    7979                                'rows' => 5,
    8080                        ) );
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress-biography.php

    diff --git src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress-biography.php src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress-biography.php
    index 47d078719..1d6a9ed28 100644
    class BP_XProfile_Field_Type_WordPress_Biography extends BP_XProfile_Field_Type_ 
    111111                /** This action is documented in bp-xprofile/bp-xprofile-classes */
    112112                do_action( bp_get_the_profile_field_errors_action() );
    113113
    114                 $r = wp_parse_args( $raw_properties, array(
     114                $r = bp_parse_args( $raw_properties, array(
    115115                        'cols' => 40,
    116116                        'rows' => 5,
    117117                ) );
  • src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress-textbox.php

    diff --git src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress-textbox.php src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress-textbox.php
    index f31a48a11..e097eff4b 100644
    class BP_XProfile_Field_Type_WordPress_Textbox extends BP_XProfile_Field_Type_Wo 
    160160                        $field_value = bp_get_user_meta( $user_id, $this->wp_user_key, true );
    161161                }
    162162
    163                 $r = wp_parse_args( $raw_properties, array(
     163                $r = bp_parse_args( $raw_properties, array(
    164164                        'type'  => 'text',
    165165                        'value' => $this->sanitize_for_output( $field_value, $user_id ),
    166166                ) );
    class BP_XProfile_Field_Type_WordPress_Textbox extends BP_XProfile_Field_Type_Wo 
    195195         * @param array $raw_properties Optional key/value array of permitted attributes that you want to add.
    196196         */
    197197        public function admin_field_html( array $raw_properties = array() ) {
    198                 $r = wp_parse_args( $raw_properties, array(
     198                $r = bp_parse_args( $raw_properties, array(
    199199                        'type' => 'text'
    200200                ) ); ?>
    201201
  • src/bp-xprofile/classes/class-bp-xprofile-group.php

    diff --git src/bp-xprofile/classes/class-bp-xprofile-group.php src/bp-xprofile/classes/class-bp-xprofile-group.php
    index 6b50d35b6..bf628e432 100644
    class BP_XProfile_Group { 
    271271                global $wpdb;
    272272
    273273                // Parse arguments.
    274                 $r = wp_parse_args( $args, array(
     274                $r = bp_parse_args( $args, array(
    275275                        'profile_group_id'       => false,
    276276                        'user_id'                => bp_displayed_user_id(),
    277277                        'member_type'            => false,
  • tests/phpunit/assets/class-bptest-component.php

    diff --git tests/phpunit/assets/class-bptest-component.php tests/phpunit/assets/class-bptest-component.php
    index 1b6c006a6..3cfadd4b7 100644
    class BPTest_Component extends BP_Component { 
    1111
    1212        // Start the `test` component setup process.
    1313        public function __construct( $args = array() ) {
    14                 $r = wp_parse_args(
     14                $r = bp_parse_args(
    1515                        $args,
    1616                        array(
    1717                                'id'      => 'example',
  • tests/phpunit/includes/factory.php

    diff --git tests/phpunit/includes/factory.php tests/phpunit/includes/factory.php
    index 343984a6c..568c18d62 100644
    class BP_UnitTest_Factory_For_User extends WP_UnitTest_Factory_For_User { 
    2727         * Also set a display name
    2828         */
    2929        public function create_object( $args ) {
    30                 $r = wp_parse_args( $args, array(
     30                $r = bp_parse_args( $args, array(
    3131                        'role' => 'subscriber',
    3232                        'last_activity' => date( 'Y-m-d H:i:s', strtotime( bp_core_current_time() ) - 60*60*24*365 ),
    3333                ) );
  • tests/phpunit/includes/testcase.php

    diff --git tests/phpunit/includes/testcase.php tests/phpunit/includes/testcase.php
    index 1428a6e17..161d17f83 100644
    class BP_UnitTestCase extends WP_UnitTestCase { 
    220220        }
    221221
    222222        public static function add_user_to_group( $user_id, $group_id, $args = array() ) {
    223                 $r = wp_parse_args( $args, array(
     223                $r = bp_parse_args( $args, array(
    224224                        'date_modified' => bp_core_current_time(),
    225225                        'is_confirmed'  => 1,
    226226                        'is_admin'      => 0,