Skip to:
Content

BuddyPress.org

Changeset 12480


Ignore:
Timestamp:
10/18/2019 06:09:27 PM (6 years ago)
Author:
r-a-y
Message:

Nouveau: Fix notices when rendering the blogs loop.

Also fixes an issue when wiping out the blog buttons using the
'bp_nouveau_get_blogs_buttons' filter.

Fixes #8147.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-nouveau/includes/blogs/template-tags.php

    r12280 r12480  
    228228                $parent_class = $args['parent_attr']['class'];
    229229            }
     230
     231            // Set defaults if not set.
     232            $button_args = array_merge( array(
     233                'wrapper_id' => '',
     234                'link_id'    => '',
     235                'link_rel'   => ''
     236            ), $button_args );
    230237
    231238            $buttons['visit_blog'] = array(
     
    266273
    267274        if ( ! $buttons_group ) {
    268             return $buttons;
     275            return array();
    269276        }
    270277
Note: See TracChangeset for help on using the changeset viewer.