Changes in branches/5.8 [52113:52487]
- Location:
- branches/5.8
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8/package-lock.json
r52113 r52487 1 1 { 2 2 "name": "WordPress", 3 "version": "5.8. 2",3 "version": "5.8.3", 4 4 "lockfileVersion": 1, 5 5 "requires": true, -
branches/5.8/package.json
r52113 r52487 1 1 { 2 2 "name": "WordPress", 3 "version": "5.8. 2",3 "version": "5.8.3", 4 4 "description": "WordPress is open source software you can use to create a beautiful website, blog, or app.", 5 5 "repository": { -
branches/5.8/src/wp-admin/about.php
r52113 r52487 44 44 <div class="column"> 45 45 <h2><?php _e( 'Maintenance and Security Releases' ); ?></h2> 46 <p> 47 <?php 48 printf( 49 /* translators: %s: WordPress version number. */ 50 __( '<strong>Version %s</strong> addressed some security issues.' ), 51 '5.8.3' 52 ); 53 ?> 54 <?php 55 printf( 56 /* translators: %s: HelpHub URL. */ 57 __( 'For more information, see <a href="%s">the release notes</a>.' ), 58 sprintf( 59 /* translators: %s: WordPress version. */ 60 esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ), 61 sanitize_title( '5.8.3' ) 62 ) 63 ); 64 ?> 65 </p> 46 66 <p> 47 67 <?php -
branches/5.8/src/wp-admin/includes/upgrade.php
r52113 r52487 1613 1613 while ( $rows = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options ORDER BY option_id LIMIT $start, 20" ) ) { 1614 1614 foreach ( $rows as $row ) { 1615 $value = $row->option_value;1616 if ( ! @unserialize( $value )) {1615 $value = maybe_unserialize( $row->option_value ); 1616 if ( $value === $row->option_value ) { 1617 1617 $value = stripslashes( $value ); 1618 1618 } -
branches/5.8/src/wp-includes/class-wp-meta-query.php
r52113 r52487 813 813 $sibling_compare = strtoupper( $sibling['compare'] ); 814 814 if ( in_array( $clause_compare, $compatible_compares, true ) && in_array( $sibling_compare, $compatible_compares, true ) ) { 815 $alias = $sibling['alias'];815 $alias = preg_replace( '/\W/', '_', $sibling['alias'] ); 816 816 break; 817 817 } -
branches/5.8/src/wp-includes/class-wp-tax-query.php
r52113 r52487 528 528 // The sibling must both have compatible operator to share its alias. 529 529 if ( in_array( strtoupper( $sibling['operator'] ), $compatible_operators, true ) ) { 530 $alias = $sibling['alias'];530 $alias = preg_replace( '/\W/', '_', $sibling['alias'] ); 531 531 break; 532 532 } … … 557 557 } 558 558 559 $query['terms'] = array_unique( (array) $query['terms'] ); 559 if ( 'slug' === $query['field'] || 'name' === $query['field'] ) { 560 $query['terms'] = array_unique( (array) $query['terms'] ); 561 } else { 562 $query['terms'] = wp_parse_id_list( $query['terms'] ); 563 } 560 564 561 565 if ( is_taxonomy_hierarchical( $query['taxonomy'] ) && $query['include_children'] ) { -
branches/5.8/src/wp-includes/formatting.php
r52113 r52487 1139 1139 * 1140 1140 * @since 1.5.0 1141 * 1142 * @param string $utf8_string 1143 * @param int $length Max length of the string 1141 * @since 5.8.3 Added the `encode_ascii_characters` parameter. 1142 * 1143 * @param string $utf8_string String to encode. 1144 * @param int $length Max length of the string 1145 * @param bool $encode_ascii_characters Whether to encode ascii characters such as < " ' 1144 1146 * @return string String with Unicode encoded for URI. 1145 1147 */ 1146 function utf8_uri_encode( $utf8_string, $length = 0 ) {1148 function utf8_uri_encode( $utf8_string, $length = 0, $encode_ascii_characters = false ) { 1147 1149 $unicode = ''; 1148 1150 $values = array(); … … 1159 1161 1160 1162 if ( $value < 128 ) { 1161 if ( $length && ( $unicode_length >= $length ) ) { 1163 $char = chr( $value ); 1164 $encoded_char = $encode_ascii_characters ? rawurlencode( $char ) : $char; 1165 $encoded_char_length = strlen( $encoded_char ); 1166 if ( $length && ( $unicode_length + $encoded_char_length ) > $length ) { 1162 1167 break; 1163 1168 } 1164 $unicode .= chr( $value );1165 $unicode_length ++;1169 $unicode .= $encoded_char; 1170 $unicode_length += $encoded_char_length; 1166 1171 } else { 1167 1172 if ( count( $values ) == 0 ) { -
branches/5.8/src/wp-includes/post.php
r52113 r52487 4925 4925 $slug = substr( $slug, 0, $length ); 4926 4926 } else { 4927 $slug = utf8_uri_encode( $decoded_slug, $length );4927 $slug = utf8_uri_encode( $decoded_slug, $length, true ); 4928 4928 } 4929 4929 } -
branches/5.8/src/wp-includes/version.php
r52113 r52487 14 14 * @global string $wp_version 15 15 */ 16 $wp_version = '5.8. 2-src';16 $wp_version = '5.8.3-src'; 17 17 18 18 /**
Note: See TracChangeset
for help on using the changeset viewer.