Make WordPress Core


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

Formatting: Correctly encode ASCII characters in post slugs.

Merges [52457] to the 5.8 branch.
Props zieladam, whyisjake, xknown, peterwilsoncc, desrosj, iandunn.

Location:
branches/5.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8

  • branches/5.8/src/wp-includes/post.php

    r51018 r52465  
    49254925            $slug = substr( $slug, 0, $length );
    49264926        } else {
    4927             $slug = utf8_uri_encode( $decoded_slug, $length );
     4927            $slug = utf8_uri_encode( $decoded_slug, $length, true );
    49284928        }
    49294929    }
Note: See TracChangeset for help on using the changeset viewer.