Changeset 10920 for sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/table-of-contents-lite/includes/class-table-of-contents-lite.php
- Timestamp:
- 04/22/2021 12:56:31 AM (5 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
r9883 r10920 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( remove_accents( $item[3] ) ), $item[3] ); 258 258 } 259 259 $toc .= '</ul></div>'; … … 297 297 $replacement = ''; 298 298 $matches[] = $item[0]; 299 $id = sanitize_title_with_dashes( $item[2]);299 $id = sanitize_title_with_dashes( remove_accents( $item[2] ) ); 300 300 if ( ! $first ) { 301 301 $replacement .= '<p class="toc-jump"><a href="#top">' . __( 'Top ↑', 'wporg-forums' ) . '</a></p>';
Note: See TracChangeset
for help on using the changeset viewer.