Make WordPress Core


Ignore:
Timestamp:
04/29/2020 04:04:20 PM (6 years ago)
Author:
whyisjake
Message:

Customize: Add additional filters to Customizer to prevent JSON corruption.
User: Invalidate user_activation_key on password update.
Query: Ensure that only a single post can be returned on date/time based queries.
Block Editor: Coding standards, properly escape class names.
Cache API: Ensure proper escaping around the stats method in the cache API.
Formatting: Expand sanitize_file_name to have better support for utf8 characters.

Brings the changes in [47633], [47634], [47635], [47636], [47637], and [47638] to the 5.4 branch.

Props: aduth, batmoo, ehti, ellatrix, jorgefilipecosta, nickdaugherty, noisysocks, pento, peterwilsoncc, sergeybiryukov, sstoqnov, talldanwp, westi, westonruter, whyisjake, whyisjake, xknown.

Location:
branches/5.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/5.3

  • branches/5.3/src/wp-includes/class-wp-query.php

    r46474 r47644  
    801801        } elseif ( $qv['p'] ) {
    802802            $this->is_single = true;
    803         } elseif ( ( '' !== $qv['hour'] ) && ( '' !== $qv['minute'] ) && ( '' !== $qv['second'] ) && ( '' != $qv['year'] ) && ( '' != $qv['monthnum'] ) && ( '' != $qv['day'] ) ) {
    804             // If year, month, day, hour, minute, and second are set, a single
    805             // post is being queried.
    806             $this->is_single = true;
    807803        } elseif ( '' != $qv['pagename'] || ! empty( $qv['page_id'] ) ) {
    808804            $this->is_page   = true;
Note: See TracChangeset for help on using the changeset viewer.