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/customizer-controls.php

    r12156 r13504  
    44 *
    55 * @since 3.0.0
    6  * @version 3.1.0
     6 * @version 12.0.0
    77 */
    88
     
    3232    public function render_content() {
    3333        $id       = 'customize-control-' . str_replace( '[', '-', str_replace( ']', '', $this->id ) );
    34         $class    = 'customize-control customize-control-' . $this->type;
    3534        $setting  = "bp_nouveau_appearance[{$this->type}_nav_order]";
    3635        $item_nav = array();
     
    6261        } else {
    6362            $item_nav = bp_nouveau_member_customizer_nav();
    64 
    65             $guide = __( 'Drag each possible member navigation items that are listed below into the order you prefer.', 'buddypress' );
     63            $guide    = __( 'Drag each possible member navigation items that are listed below into the order you prefer.', 'buddypress' );
    6664        }
    6765        ?>
     
    7674            <ul id="<?php echo esc_attr( $id ); ?>" class="ui-sortable" style="margin-top: 0px; height: 500px;" data-bp-type="<?php echo esc_attr( $this->type ); ?>">
    7775
    78                 <?php
    79                 $i = 0;
    80                 foreach ( $item_nav as $item ) :
    81                     $i += 1;
    82                 ?>
     76                <?php foreach ( $item_nav as $item ) : ?>
    8377                    <li data-bp-nav="<?php echo esc_attr( $item->slug ); ?>">
    8478                        <div class="menu-item-bar">
Note: See TracChangeset for help on using the changeset viewer.