Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
09/12/2021 08:43:39 PM (5 years ago)
Author:
espellcaste
Message:

Update all references from wp_parse_args to bp_parse_args.

Also, add WPCS improvements to align bp_parse_args correctly.

Props imath
Fixes #8564

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/classes/class-bp-messages-thread.php

    r13102 r13108  
    171171
    172172                // Merge $args with our defaults.
    173                 $r = wp_parse_args(
     173                $r = bp_parse_args(
    174174                        $args,
    175175                        array(
     
    284284
    285285                $bp = buddypress();
    286                 $r  = wp_parse_args(
     286                $r  = bp_parse_args(
    287287                        $args,
    288288                        array(
     
    365365
    366366                $bp = buddypress();
    367                 $r  = wp_parse_args(
     367                $r  = bp_parse_args(
    368368                        $args,
    369369                        array(
     
    593593                }
    594594
    595                 $r = bp_parse_args( $args, array(
    596                         'user_id'      => false,
    597                         'box'          => 'inbox',
    598                         'type'         => 'all',
    599                         'limit'        => null,
    600                         'page'         => null,
    601                         'search_terms' => '',
    602                         'meta_query'   => array()
    603                 ) );
     595                $r = bp_parse_args(
     596                        $args,
     597                        array(
     598                                'user_id'      => false,
     599                                'box'          => 'inbox',
     600                                'type'         => 'all',
     601                                'limit'        => null,
     602                                'page'         => null,
     603                                'search_terms' => '',
     604                                'meta_query'   => array(),
     605                        )
     606                );
    604607
    605608                $pag_sql = $type_sql = $search_sql = $user_id_sql = $sender_sql = '';
Note: See TracChangeset for help on using the changeset viewer.