Make WordPress Core


Ignore:
Location:
branches/5.8
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • branches/5.8/package-lock.json

    r52113 r52487  
    11{
    22    "name": "WordPress",
    3     "version": "5.8.2",
     3    "version": "5.8.3",
    44    "lockfileVersion": 1,
    55    "requires": true,
  • branches/5.8/package.json

    r52113 r52487  
    11{
    22    "name": "WordPress",
    3     "version": "5.8.2",
     3    "version": "5.8.3",
    44    "description": "WordPress is open source software you can use to create a beautiful website, blog, or app.",
    55    "repository": {
  • branches/5.8/src/wp-admin/about.php

    r52113 r52487  
    4444            <div class="column">
    4545                <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>
    4666                <p>
    4767                    <?php
  • branches/5.8/src/wp-admin/includes/upgrade.php

    r52113 r52487  
    16131613        while ( $rows = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options ORDER BY option_id LIMIT $start, 20" ) ) {
    16141614            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 ) {
    16171617                    $value = stripslashes( $value );
    16181618                }
  • branches/5.8/src/wp-includes/class-wp-meta-query.php

    r52113 r52487  
    813813            $sibling_compare = strtoupper( $sibling['compare'] );
    814814            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'] );
    816816                break;
    817817            }
  • branches/5.8/src/wp-includes/class-wp-tax-query.php

    r52113 r52487  
    528528            // The sibling must both have compatible operator to share its alias.
    529529            if ( in_array( strtoupper( $sibling['operator'] ), $compatible_operators, true ) ) {
    530                 $alias = $sibling['alias'];
     530                $alias = preg_replace( '/\W/', '_', $sibling['alias'] );
    531531                break;
    532532            }
     
    557557        }
    558558
    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        }
    560564
    561565        if ( is_taxonomy_hierarchical( $query['taxonomy'] ) && $query['include_children'] ) {
  • branches/5.8/src/wp-includes/formatting.php

    r52113 r52487  
    11391139 *
    11401140 * @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 < " '
    11441146 * @return string String with Unicode encoded for URI.
    11451147 */
    1146 function utf8_uri_encode( $utf8_string, $length = 0 ) {
     1148function utf8_uri_encode( $utf8_string, $length = 0, $encode_ascii_characters = false ) {
    11471149    $unicode        = '';
    11481150    $values         = array();
     
    11591161
    11601162        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 ) {
    11621167                break;
    11631168            }
    1164             $unicode .= chr( $value );
    1165             $unicode_length++;
     1169            $unicode        .= $encoded_char;
     1170            $unicode_length += $encoded_char_length;
    11661171        } else {
    11671172            if ( count( $values ) == 0 ) {
  • branches/5.8/src/wp-includes/post.php

    r52113 r52487  
    49254925            $slug = substr( $slug, 0, $length );
    49264926        } else {
    4927             $slug = utf8_uri_encode( $decoded_slug, $length );
     4927            $slug = utf8_uri_encode( $decoded_slug, $length, true );
    49284928        }
    49294929    }
  • branches/5.8/src/wp-includes/version.php

    r52113 r52487  
    1414 * @global string $wp_version
    1515 */
    16 $wp_version = '5.8.2-src';
     16$wp_version = '5.8.3-src';
    1717
    1818/**
Note: See TracChangeset for help on using the changeset viewer.