Skip to:
Content

BuddyPress.org

Ticket #8147: 8147.01.patch

File 8147.01.patch, 889 bytes (added by r-a-y, 7 years ago)
  • src/bp-templates/bp-nouveau/includes/blogs/template-tags.php

     
    228228                                $parent_class = $args['parent_attr']['class'];
    229229                        }
    230230
     231                        // Set defaults if not set.
     232                        $button_args = array_merge( array(
     233                                'wrapper_id' => '',
     234                                'link_id'    => '',
     235                                'link_rel'   => ''
     236                        ), $button_args );
     237
    231238                        $buttons['visit_blog'] = array(
    232239                                'id'                => 'visit_blog',
    233240                                'position'          => 5,
     
    265272                $buttons_group = apply_filters( 'bp_nouveau_get_blogs_buttons', $buttons, $blog, $type );
    266273
    267274                if ( ! $buttons_group ) {
    268                         return $buttons;
     275                        return array();
    269276                }
    270277
    271278                // It's the first entry of the loop, so build the Group and sort it