Making WordPress.org


Ignore:
Timestamp:
04/22/2021 12:56:31 AM (5 years ago)
Author:
dd32
Message:

Handbooks/HelpHub: Replace accented characters before converting a title into a slug for use as page anchors.

Fixes #5711.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/inc/table-of-contents.php

    r10768 r10920  
    9393                                $last_item = $item[2];
    9494
    95                                 $id = sanitize_title_with_dashes( $item[3] );
     95                                $id = sanitize_title_with_dashes( remove_accents( $item[3] ) );
    9696                                // Append unique suffix if anchor ID isn't unique.
    9797                                $count = 2;
     
    121121                        $replacement = '';
    122122                        $matches[] = $item[0];
    123                         $id = sanitize_title_with_dashes($item[2]);
     123                        $id = sanitize_title_with_dashes( remove_accents( $item[2] ) );
    124124
    125125                        // Append unique suffix if anchor ID isn't unique.
Note: See TracChangeset for help on using the changeset viewer.