Compare commits

..

1 Commits

Author SHA1 Message Date
Peter Wilson
bcffb1781f Tag 3.7.36
Built from https://develop.svn.wordpress.org/tags/3.7.36@50910


git-svn-id: http://core.svn.wordpress.org/tags/3.7.36@50519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-05-12 23:53:04 +00:00
6 changed files with 10 additions and 40 deletions

View File

@@ -36,27 +36,7 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
</h2>
<div class="changelog point-releases">
<h3><?php echo _n( 'Maintenance and Security Release', 'Maintenance and Security Releases', 37 ); ?></h3>
<p>
<?php
printf(
/* translators: %s: WordPress version number */
__( '<strong>Version %s</strong> addressed some security issues.' ),
'3.7.37'
);
?>
<?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( '3.7.37' )
)
);
?>
</p>
<h3><?php echo _n( 'Maintenance and Security Release', 'Maintenance and Security Releases', 36 ); ?></h3>
<p>
<?php
printf(

View File

@@ -1038,8 +1038,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 );

View File

@@ -663,14 +663,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
* @param int $length Max length of the string
* @param bool $encode_ascii_characters Whether to encode ascii characters such as < " '
* @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;
@@ -682,14 +680,10 @@ 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 ) $num_octets = ( $value < 224 ) ? 2 : 3;

View File

@@ -3175,7 +3175,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, '-' );

View File

@@ -810,11 +810,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' );

View File

@@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '3.7.37';
$wp_version = '3.7.36';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.