Make WordPress Core


Ignore:
Timestamp:
01/06/2022 05:08:18 PM (3 years ago)
Author:
desrosj
Message:

Formatting: Correctly encode ASCII characters in post slugs.

Props zieladam, whyisjake, xknown, peterwilsoncc, desrosj, iandunn.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r52400 r52457  
    51435143            $slug = substr( $slug, 0, $length );
    51445144        } else {
    5145             $slug = utf8_uri_encode( $decoded_slug, $length );
     5145            $slug = utf8_uri_encode( $decoded_slug, $length, true );
    51465146        }
    51475147    }
Note: See TracChangeset for help on using the changeset viewer.