Make WordPress Core

Ticket #47594: 47594.diff

File 47594.diff, 1.7 KB (added by adhitya03, 6 years ago)

Patch

  • wp-includes/formatting.php

     
    21592159        $raw_title = $title;
    21602160
    21612161        if ( 'save' == $context ) {
     2162
     2163                // Change space characters in unicode to its html entity
     2164                $title = str_replace(
     2165                        array(
     2166                                '%e2%80%81',
     2167                                '%e2%80%82',
     2168                                '%e2%80%83',
     2169                                '%e2%80%84',
     2170                                '%e2%80%85',
     2171                                '%e2%80%86',
     2172                                '%e2%80%87',
     2173                                '%e2%80%88',
     2174                                '%e2%80%89',
     2175                                '%e2%80%8a',
     2176                                '%e2%80%8b',
     2177                                '%e2%80%8c',
     2178                                '%e2%80%8d',
     2179                                '%e2%80%8e',
     2180                                '%e2%80%8f',
     2181                                '%e2%80%a9',
     2182                                '%e2%80%aa',
     2183                                '%e2%80%ab',
     2184                                '%e2%80%ac',
     2185                                '%e2%80%ad',
     2186                                '%e2%80%ae',
     2187                                '%e2%80%af',
     2188                                '%e2%81%9f',
     2189                                '%e2%81%a0',
     2190                                '%e2%81%a1',
     2191                                '%e2%81%a2',
     2192                                '%e2%81%a3',
     2193                                '%e2%81%a4',
     2194                                '%e2%81%a5',
     2195                                '%e2%81%a6',
     2196                                '%e2%81%a7',
     2197                                '%e2%81%a8',
     2198                                '%e2%81%a9',
     2199                                '%e2%81%aa',
     2200                                '%e2%81%ab',
     2201                                '%e2%81%ac',
     2202                                '%e2%81%ad',
     2203                                '%e2%81%ae',
     2204                                '%e2%81%af',
     2205                                ' ',
     2206                                ' ',
     2207                                ' ',
     2208                                ' ',
     2209                                ' ',
     2210                                ' ',
     2211                                ' ',
     2212                                ' ',
     2213                                ' ',
     2214                                ' ',
     2215                                '​',
     2216                                '‌',
     2217                                '‍',
     2218                                '‎',
     2219                                '‏',
     2220                                '
',
     2221                                '‪',
     2222                                '‫',
     2223                                '‬',
     2224                                '‭',
     2225                                '‮',
     2226                                ' ',
     2227                                ' ',
     2228                                '⁠',
     2229                                '⁡',
     2230                                '⁢',
     2231                                '⁣',
     2232                                '⁤',
     2233                                '⁥',
     2234                                '⁦',
     2235                                '⁧',
     2236                                '⁨',
     2237                                '⁩',
     2238                                '',
     2239                                '',
     2240                                '',
     2241                                '',
     2242                                '',
     2243                                '',
     2244                        ),
     2245                        ' ',
     2246                        $title
     2247                );
     2248
    21622249                $title = remove_accents( $title );
    21632250        }
    21642251