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-blogs/classes/class-bp-blogs-recent-posts-widget.php

    r12976 r13108  
    151151         *
    152152         * @param array $instance Settings for this widget.
    153          *
    154          * @return void
    155153         */
    156154        public function form( $instance ) {
    157                 $instance = wp_parse_args( (array) $instance, array(
    158                         'title'      => __( 'Recent Networkwide Posts', 'buddypress' ),
    159                         'max_posts'  => 10,
    160                         'link_title' => false,
    161                 ) );
     155                $instance = bp_parse_args(
     156                        (array) $instance,
     157                        array(
     158                                'title'      => __( 'Recent Networkwide Posts', 'buddypress' ),
     159                                'max_posts'  => 10,
     160                                'link_title' => false,
     161                        )
     162                );
    162163
    163164                $max_limit = bp_get_widget_max_count_limit( __CLASS__ );
Note: See TracChangeset for help on using the changeset viewer.