Changeset 49401 for branches/4.5/src/wp-includes/formatting.php
- Timestamp:
- 10/29/2020 07:01:42 PM (5 years ago)
- Location:
- branches/4.5
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/formatting.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.5
- Property svn:mergeinfo changed
/branches/5.5 (added) merged: 49373-49379,49381 /trunk merged: 49380,49382-49388
- Property svn:mergeinfo changed
-
branches/4.5/src/wp-includes/formatting.php
r47652 r49401 1071 1071 */ 1072 1072 function utf8_uri_encode( $utf8_string, $length = 0 ) { 1073 $unicode = '';1074 $values = array();1075 $num_octets = 1;1073 $unicode = ''; 1074 $values = array(); 1075 $num_octets = 1; 1076 1076 $unicode_length = 0; 1077 1077 … … 1085 1085 1086 1086 if ( $value < 128 ) { 1087 if ( $length && ( $unicode_length >= $length ) ) 1087 if ( $length && ( $unicode_length >= $length ) ) { 1088 1088 break; 1089 $unicode .= chr($value); 1089 } 1090 $unicode .= chr( $value ); 1090 1091 $unicode_length++; 1091 1092 } else { … … 1607 1608 $title = mb_strtolower($title, 'UTF-8'); 1608 1609 } 1609 $title = utf8_uri_encode( $title, 200);1610 $title = utf8_uri_encode( $title, 200 ); 1610 1611 } 1611 1612
Note: See TracChangeset
for help on using the changeset viewer.