Make WordPress Core


Ignore:
Timestamp:
10/29/2020 06:59:47 PM (6 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.6 branch.

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

Location:
branches/4.6
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.6

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

    r47651 r49400  
    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 {
    … …  
    19761977                        $title = mb_strtolower($title, 'UTF-8');
    19771978                }
    1978                 $title = utf8_uri_encode($title, 200);
     1979                $title = utf8_uri_encode( $title, 200 );
    19791980        }
    19801981
Note: See TracChangeset for help on using the changeset viewer.