Make WordPress Core


Ignore:
Timestamp:
10/29/2020 06:54:29 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.8 branch.

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

Location:
branches/4.8
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.8

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

    r47649 r49398  
    10771077 */
    10781078function utf8_uri_encode( $utf8_string, $length = 0 ) {
    1079         $unicode = '';
    1080         $values = array();
    1081         $num_octets = 1;
     1079        $unicode        = '';
     1080        $values         = array();
     1081        $num_octets     = 1;
    10821082        $unicode_length = 0;
    10831083
    … …  
    10911091
    10921092                if ( $value < 128 ) {
    1093                         if ( $length && ( $unicode_length >= $length ) )
     1093                        if ( $length && ( $unicode_length >= $length ) ) {
    10941094                                break;
    1095                         $unicode .= chr($value);
     1095                        }
     1096                        $unicode .= chr( $value );
    10961097                        $unicode_length++;
    10971098                } else {
    … …  
    19941995                        $title = mb_strtolower($title, 'UTF-8');
    19951996                }
    1996                 $title = utf8_uri_encode($title, 200);
     1997                $title = utf8_uri_encode( $title, 200 );
    19971998        }
    19981999
Note: See TracChangeset for help on using the changeset viewer.