WordPress.org

Make WordPress Core

Ticket #45378: 45378.diff

File 45378.diff, 439 bytes (added by andg, 8 months ago)

Convert soft hyphens to empty string.

  • wp-includes/formatting.php

    diff --git a/wp-includes/formatting.php b/wp-includes/formatting.php
    index fa73fc8c84..74578b52f6 100644
    a b function sanitize_title_with_dashes( $title, $raw_title = '', $context = 'displa 
    22322232                // Strip these characters entirely
    22332233                $title = str_replace(
    22342234                        array(
     2235                                // soft hyphens
     2236                                '%c2%ad',
    22352237                                // iexcl and iquest
    22362238                                '%c2%a1',
    22372239                                '%c2%bf',