Changeset 49398 for branches/4.8/src/wp-includes/formatting.php
- Timestamp:
- 10/29/2020 06:54:29 PM (5 years ago)
- Location:
- branches/4.8
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/formatting.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/4.8
- Property svn:mergeinfo changed
/branches/5.5 (added) merged: 49373-49379,49381 /trunk merged: 49380,49382-49388
- Property svn:mergeinfo changed
-
branches/4.8/src/wp-includes/formatting.php
r47649 r49398 1077 1077 */ 1078 1078 function utf8_uri_encode( $utf8_string, $length = 0 ) { 1079 $unicode = '';1080 $values = array();1081 $num_octets = 1;1079 $unicode = ''; 1080 $values = array(); 1081 $num_octets = 1; 1082 1082 $unicode_length = 0; 1083 1083 … … 1091 1091 1092 1092 if ( $value < 128 ) { 1093 if ( $length && ( $unicode_length >= $length ) ) 1093 if ( $length && ( $unicode_length >= $length ) ) { 1094 1094 break; 1095 $unicode .= chr($value); 1095 } 1096 $unicode .= chr( $value ); 1096 1097 $unicode_length++; 1097 1098 } else { … … 1994 1995 $title = mb_strtolower($title, 'UTF-8'); 1995 1996 } 1996 $title = utf8_uri_encode( $title, 200);1997 $title = utf8_uri_encode( $title, 200 ); 1997 1998 } 1998 1999
Note: See TracChangeset
for help on using the changeset viewer.