Make WordPress Core


Ignore:
Timestamp:
10/29/2020 07:01:42 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.5 branch.

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

Location:
branches/4.5
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.5

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

    r47652 r49401  
    10711071 */
    10721072function utf8_uri_encode( $utf8_string, $length = 0 ) {
    1073     $unicode = '';
    1074     $values = array();
    1075     $num_octets = 1;
     1073    $unicode        = '';
     1074    $values         = array();
     1075    $num_octets     = 1;
    10761076    $unicode_length = 0;
    10771077
     
    10851085
    10861086        if ( $value < 128 ) {
    1087             if ( $length && ( $unicode_length >= $length ) )
     1087            if ( $length && ( $unicode_length >= $length ) ) {
    10881088                break;
    1089             $unicode .= chr($value);
     1089            }
     1090            $unicode .= chr( $value );
    10901091            $unicode_length++;
    10911092        } else {
     
    16071608            $title = mb_strtolower($title, 'UTF-8');
    16081609        }
    1609         $title = utf8_uri_encode($title, 200);
     1610        $title = utf8_uri_encode( $title, 200 );
    16101611    }
    16111612
Note: See TracChangeset for help on using the changeset viewer.