Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/07/2018 03:35:14 PM (7 years ago)
Author:
boonebgorges
Message:

Pass only variables to empty() in bp-nouveau.

See #7998.

File:
1 edited

Legend:

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

    r12082 r12279  
    220220        remove_filter( 'bp_get_blogs_visit_blog_button', 'bp_nouveau_blogs_catch_button_args', 100, 1 );
    221221
    222         if ( ! empty( bp_nouveau()->blogs->button_args ) ) {
    223             $button_args = bp_nouveau()->blogs->button_args ;
    224 
     222        $button_args = bp_nouveau()->blogs->button_args ;
     223        if ( ! empty( $button_args ) ) {
    225224            // If we pass through parent classes add them to $button array
    226225            $parent_class = '';
Note: See TracChangeset for help on using the changeset viewer.