Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/19/2023 06:09:44 PM (3 years ago)
Author:
imath
Message:

Core, Messages & Templates: remove never used inited vars in functions

Props upadalavipul

Fixes #8892
Closes https://github.com/buddypress/buddypress/pull/118

File:
1 edited

Legend:

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

    r13409 r13504  
    44 *
    55 * @since 3.0.0
    6  * @version 6.0.0
     6 * @version 12.0.0
    77 */
    88
     
    184184        }
    185185
    186         /*
    187          * If we have a arg value for $button_element passed through
    188          * use it to default all the $buttons['button_element'] values
    189          * otherwise default to 'a' (anchor)
    190          * Or override & hardcode the 'element' string on $buttons array.
    191          *
    192          * Icons sets a class for icon display if not using the button element
    193          */
    194         $icons = '';
    195186        if ( ! empty( $args['button_element'] ) ) {
    196187            $button_element = $args['button_element'] ;
    197188        } else {
    198189            $button_element = 'a';
    199             $icons = ' icons';
    200         }
    201 
    202         // If we pass through parent classes add them to $button array
     190        }
     191
     192        // If we pass through parent classes add them to `$button` array.
    203193        $parent_class = '';
    204194        if ( ! empty( $args['parent_attr']['class'] ) ) {
Note: See TracChangeset for help on using the changeset viewer.