Make WordPress Core


Ignore:
Timestamp:
10/11/2022 10:27:00 AM (21 months ago)
Author:
audrasjb
Message:

Formatting: Strip object replacement characters from slugs.

This changeset prevents object replacement characters – UTF-8 %ef%bf%bc, used as a placeholder in text for an otherwise unspecified object – from being added to slugs.

Props cantuaria, costdev, audrasjb, SergeyBiryukov, archon810, maciejmackowiak, BaneD, markparnell, ironprogrammer, dmsnell, nikkigagency, webprom.
Fixes #55117.

File:
1 edited

Legend:

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

    r54254 r54474  
    23302330                '%e2%80%ae', // Right-to-left override.
    23312331                '%ef%bb%bf', // Byte order mark.
     2332                '%ef%bf%bc', // Object replacement character.
    23322333            ),
    23332334            '',
Note: See TracChangeset for help on using the changeset viewer.