Changeset 7373
- Timestamp:
- 07/04/2018 10:08:04 PM (8 years ago)
- 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 245 245 $last_item = false; 246 246 foreach ( $items as $item ) { 247 $last_item = $item[2]; 247 248 if ( $last_item ) { 248 249 if ( $last_item < $item[2] ) { … … 254 255 } 255 256 } 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] ); 258 258 } 259 259 $toc .= '</ul></div>';
Note: See TracChangeset
for help on using the changeset viewer.