Changeset 10945
- Timestamp:
- 05/04/2021 04:25:36 AM (4 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/table-of-contents.php
r10938 r10945 131 131 $last_item = $item[2]; 132 132 133 $id = sanitize_title _with_dashes( remove_accents( $item[3] ));133 $id = sanitize_title( $item[3] ); 134 134 // Append unique suffix if anchor ID isn't unique. 135 135 $count = 2; … … 159 159 $replacement = ''; 160 160 $matches[] = $item[0]; 161 $id = sanitize_title _with_dashes( remove_accents( $item[2] ));161 $id = sanitize_title( $item[2] ); 162 162 163 163 // Append unique suffix if anchor ID isn't unique. -
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-helphub/inc/table-of-contents-lite/includes/class-table-of-contents-lite.php
r10920 r10945 255 255 } 256 256 $last_item = $item[2]; 257 $toc .= sprintf( '<li><a href="#%1s">%2s</a>', sanitize_title _with_dashes( remove_accents( $item[3] )), $item[3] );257 $toc .= sprintf( '<li><a href="#%1s">%2s</a>', sanitize_title( $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( remove_accents( $item[2] ));299 $id = sanitize_title( $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.