Changeset 49396 for branches/5.0/src/wp-includes/formatting.php
- Timestamp:
- 10/29/2020 06:50:55 PM (5 years ago)
- Location:
- branches/5.0
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/wp-includes/formatting.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/5.0
- Property svn:mergeinfo changed
/branches/5.5 (added) merged: 49373-49379,49381 /trunk merged: 49380,49382-49388
- Property svn:mergeinfo changed
-
branches/5.0/src/wp-includes/formatting.php
r47647 r49396 1091 1091 */ 1092 1092 function utf8_uri_encode( $utf8_string, $length = 0 ) { 1093 $unicode = '';1094 $values = array();1095 $num_octets = 1;1093 $unicode = ''; 1094 $values = array(); 1095 $num_octets = 1; 1096 1096 $unicode_length = 0; 1097 1097 … … 1105 1105 1106 1106 if ( $value < 128 ) { 1107 if ( $length && ( $unicode_length >= $length ) ) 1107 if ( $length && ( $unicode_length >= $length ) ) { 1108 1108 break; 1109 $unicode .= chr($value); 1109 } 1110 $unicode .= chr( $value ); 1110 1111 $unicode_length++; 1111 1112 } else { … … 2008 2009 $title = mb_strtolower($title, 'UTF-8'); 2009 2010 } 2010 $title = utf8_uri_encode( $title, 200);2011 $title = utf8_uri_encode( $title, 200 ); 2011 2012 } 2012 2013
Note: See TracChangeset
for help on using the changeset viewer.