Changeset 49400 for branches/4.6/src/wp-includes/formatting.php
- Timestamp:
- 10/29/2020 06:59:47 PM (6 years ago)
- Location:
- branches/4.6
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/formatting.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.6
- Property svn:mergeinfo changed
/branches/5.5 (added) merged: 49373-49379,49381 /trunk merged: 49380,49382-49388
- Property svn:mergeinfo changed
-
branches/4.6/src/wp-includes/formatting.php
r47651 r49400 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 { … … 1976 1977 $title = mb_strtolower($title, 'UTF-8'); 1977 1978 } 1978 $title = utf8_uri_encode( $title, 200);1979 $title = utf8_uri_encode( $title, 200 ); 1979 1980 } 1980 1981
Note: See TracChangeset
for help on using the changeset viewer.