Making WordPress.org

Changeset 7373


Ignore:
Timestamp:
07/04/2018 10:08:04 PM (8 years ago)
Author:
netweb
Message:

Support Hub: Update Support Hub to latest changes via GitHub

Reference: https://github.com/Kenshino/HelpHub/commit/ed34600

Props milana_cap.
See #3485.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/table-of-contents-lite/includes/class-table-of-contents-lite.php

    r7354 r7373  
    245245            $last_item       = false;
    246246            foreach ( $items as $item ) {
     247                $last_item = $item[2];
    247248                if ( $last_item ) {
    248249                    if ( $last_item < $item[2] ) {
     
    254255                    }
    255256                }
    256                 $last_item = $item[2];
    257                 $toc      .= sprintf( '<li><a href="#%1s">%2s</a>', sanitize_title_with_dashes( $item[3] ), $item[3] );
     257                $toc .= sprintf( '<li><a href="#%1s">%2s</a>', sanitize_title_with_dashes( $item[3] ), $item[3] );
    258258            }
    259259            $toc .= '</ul></div>';
Note: See TracChangeset for help on using the changeset viewer.