Changeset 49403 for branches/4.3/src/wp-includes/formatting.php
- Timestamp:
- 10/29/2020 07:05:53 PM (5 years ago)
- Location:
- branches/4.3
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/formatting.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3
- Property svn:mergeinfo changed
/branches/5.5 (added) merged: 49373-49379,49381 /trunk merged: 49380,49382-49388
- Property svn:mergeinfo changed
-
branches/4.3/src/wp-includes/formatting.php
r47656 r49403 1005 1005 */ 1006 1006 function utf8_uri_encode( $utf8_string, $length = 0 ) { 1007 $unicode = '';1008 $values = array();1009 $num_octets = 1;1007 $unicode = ''; 1008 $values = array(); 1009 $num_octets = 1; 1010 1010 $unicode_length = 0; 1011 1011 … … 1019 1019 1020 1020 if ( $value < 128 ) { 1021 if ( $length && ( $unicode_length >= $length ) ) 1021 if ( $length && ( $unicode_length >= $length ) ) { 1022 1022 break; 1023 $unicode .= chr($value); 1023 } 1024 $unicode .= chr( $value ); 1024 1025 $unicode_length++; 1025 1026 } else { … … 1541 1542 $title = mb_strtolower($title, 'UTF-8'); 1542 1543 } 1543 $title = utf8_uri_encode( $title, 200);1544 $title = utf8_uri_encode( $title, 200 ); 1544 1545 } 1545 1546
Note: See TracChangeset
for help on using the changeset viewer.