Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b0b7f820ac |
@@ -108,27 +108,7 @@ $tech_features = array(
|
||||
</h2>
|
||||
|
||||
<div class="changelog point-releases">
|
||||
<h3><?php echo _n( 'Maintenance and Security Release', 'Maintenance and Security Releases', 27 ); ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: WordPress version number */
|
||||
__( '<strong>Version %1$s</strong> addressed some security issues.' ),
|
||||
'4.3.27'
|
||||
);
|
||||
?>
|
||||
<?php
|
||||
printf(
|
||||
/* translators: %s: HelpHub URL */
|
||||
__( 'For more information, see <a href="%s">the release notes</a>.' ),
|
||||
sprintf(
|
||||
/* translators: %s: WordPress version */
|
||||
esc_url( __( 'https://wordpress.org/support/wordpress-version/version-%s/' ) ),
|
||||
sanitize_title( '4.3.27' )
|
||||
)
|
||||
);
|
||||
?>
|
||||
</p>
|
||||
<h3><?php echo _n( 'Maintenance and Security Release', 'Maintenance and Security Releases', 26 ); ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
printf(
|
||||
|
||||
@@ -1206,8 +1206,8 @@ function upgrade_280() {
|
||||
$start = 0;
|
||||
while( $rows = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options ORDER BY option_id LIMIT $start, 20" ) ) {
|
||||
foreach( $rows as $row ) {
|
||||
$value = maybe_unserialize( $row->option_value );
|
||||
if ( $value === $row->option_value )
|
||||
$value = $row->option_value;
|
||||
if ( !@unserialize( $value ) )
|
||||
$value = stripslashes( $value );
|
||||
if ( $value !== $row->option_value ) {
|
||||
update_option( $row->option_name, $value );
|
||||
|
||||
@@ -998,14 +998,12 @@ function wp_check_invalid_utf8( $string, $strip = false ) {
|
||||
* Encode the Unicode values to be used in the URI.
|
||||
*
|
||||
* @since 1.5.0
|
||||
* @since 5.8.3 Added the `encode_ascii_characters` parameter.
|
||||
*
|
||||
* @param string $utf8_string String to encode.
|
||||
* @param int $length Max length of the string
|
||||
* @param bool $encode_ascii_characters Whether to encode ascii characters such as < " '
|
||||
* @param string $utf8_string
|
||||
* @param int $length Max length of the string
|
||||
* @return string String with Unicode encoded for URI.
|
||||
*/
|
||||
function utf8_uri_encode( $utf8_string, $length = 0, $encode_ascii_characters = false ) {
|
||||
function utf8_uri_encode( $utf8_string, $length = 0 ) {
|
||||
$unicode = '';
|
||||
$values = array();
|
||||
$num_octets = 1;
|
||||
@@ -1020,14 +1018,11 @@ function utf8_uri_encode( $utf8_string, $length = 0, $encode_ascii_characters =
|
||||
$value = ord( $utf8_string[ $i ] );
|
||||
|
||||
if ( $value < 128 ) {
|
||||
$char = chr( $value );
|
||||
$encoded_char = $encode_ascii_characters ? rawurlencode( $char ) : $char;
|
||||
$encoded_char_length = strlen( $encoded_char );
|
||||
if ( $length && ( $unicode_length + $encoded_char_length ) > $length ) {
|
||||
if ( $length && ( $unicode_length >= $length ) ) {
|
||||
break;
|
||||
}
|
||||
$unicode .= $encoded_char;
|
||||
$unicode_length += $encoded_char_length;
|
||||
$unicode .= chr( $value );
|
||||
$unicode_length++;
|
||||
} else {
|
||||
if ( count( $values ) == 0 ) {
|
||||
if ( $value < 224 ) {
|
||||
|
||||
@@ -1571,7 +1571,7 @@ class WP_Meta_Query {
|
||||
$clause_compare = strtoupper( $clause['compare'] );
|
||||
$sibling_compare = strtoupper( $sibling['compare'] );
|
||||
if ( in_array( $clause_compare, $compatible_compares ) && in_array( $sibling_compare, $compatible_compares ) ) {
|
||||
$alias = preg_replace( '/\W/', '_', $sibling['alias'] );
|
||||
$alias = $sibling['alias'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3894,7 +3894,7 @@ function _truncate_post_slug( $slug, $length = 200 ) {
|
||||
if ( $decoded_slug === $slug )
|
||||
$slug = substr( $slug, 0, $length );
|
||||
else
|
||||
$slug = utf8_uri_encode( $decoded_slug, $length, true );
|
||||
$slug = utf8_uri_encode( $decoded_slug, $length );
|
||||
}
|
||||
|
||||
return rtrim( $slug, '-' );
|
||||
|
||||
@@ -1186,7 +1186,7 @@ class WP_Tax_Query {
|
||||
|
||||
// The sibling must both have compatible operator to share its alias.
|
||||
if ( in_array( strtoupper( $sibling['operator'] ), $compatible_operators ) ) {
|
||||
$alias = preg_replace( '/\W/', '_', $sibling['alias'] );
|
||||
$alias = $sibling['alias'];
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1216,11 +1216,7 @@ class WP_Tax_Query {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( 'slug' === $query['field'] || 'name' === $query['field'] ) {
|
||||
$query['terms'] = array_unique( (array) $query['terms'] );
|
||||
} else {
|
||||
$query['terms'] = wp_parse_id_list( $query['terms'] );
|
||||
}
|
||||
$query['terms'] = array_unique( (array) $query['terms'] );
|
||||
|
||||
if ( is_taxonomy_hierarchical( $query['taxonomy'] ) && $query['include_children'] ) {
|
||||
$this->transform_query( $query, 'term_id' );
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.3.27';
|
||||
$wp_version = '4.3.26';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
||||
Reference in New Issue
Block a user