Make WordPress Core


Ignore:
Timestamp:
10/29/2020 07:05:53 PM (5 years ago)
Author:
whyisjake
Message:

General: WordPress updates

  • XML-RPC: Improve error messages for unprivileged users.
  • External Libraries: Disable deserialization in Requests_Utility_FilteredIterator
  • Embeds: Disable embeds on deactivated Multisite sites.
  • Coding standards: Modify escaping functions to avoid potential false positives.
  • XML-RPC: Return error message if attachment ID is incorrect.
  • Upgrade/install: Improve logic check when determining installation status.
  • Meta: Sanitize meta key before checking protection status.
  • Themes: Ensure that only privileged users can set a background image when a theme is using the deprecated custom background page.

Brings the changes from [49380,49382-49388] to the 4.3 branch.

Props xknown, zieladam, peterwilsoncc, whyisjake, desrosj, dd32.

Location:
branches/4.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.3

  • branches/4.3/src/wp-includes/formatting.php

    r47656 r49403  
    10051005 */
    10061006function utf8_uri_encode( $utf8_string, $length = 0 ) {
    1007     $unicode = '';
    1008     $values = array();
    1009     $num_octets = 1;
     1007    $unicode        = '';
     1008    $values         = array();
     1009    $num_octets     = 1;
    10101010    $unicode_length = 0;
    10111011
     
    10191019
    10201020        if ( $value < 128 ) {
    1021             if ( $length && ( $unicode_length >= $length ) )
     1021            if ( $length && ( $unicode_length >= $length ) ) {
    10221022                break;
    1023             $unicode .= chr($value);
     1023            }
     1024            $unicode .= chr( $value );
    10241025            $unicode_length++;
    10251026        } else {
     
    15411542            $title = mb_strtolower($title, 'UTF-8');
    15421543        }
    1543         $title = utf8_uri_encode($title, 200);
     1544        $title = utf8_uri_encode( $title, 200 );
    15441545    }
    15451546
Note: See TracChangeset for help on using the changeset viewer.