Make WordPress Core


Ignore:
Timestamp:
10/12/2023 02:59:09 PM (16 months ago)
Author:
joemcgill
Message:

Grouped backports to the 6.0 branch.

  • REST API: Limit search_columns for users without list_users.
  • Comments: Prevent users who can not see a post from seeing comments on it.
  • Application Passwords: Prevent the use of some pseudo protocols in application passwords.
  • Restrict media shortcode ajax to certain type
  • REST API: Ensure no-cache headers are sent when methods are overriden.
  • Prevent unintended behavior when certain objects are unserialized.

Merges [56833], [56834], [56835], [56836], [56837], and [56838] to the 6.0 branch.
Props xknown, jorbin, Vortfu, joehoyle, timothyblynjacobs, peterwilsoncc, ehtis, tykoted, martinkrcho, paulkevan, dd32, antpb, rmccue.

Location:
branches/6.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0

  • branches/6.0/src/wp-includes/class-wp-block-patterns-registry.php

    r53405 r56870  
    187187    }
    188188
     189    public function __wakeup() {
     190        if ( ! $this->registered_patterns ) {
     191            return;
     192        }
     193        if ( ! is_array( $this->registered_patterns ) ) {
     194            throw new UnexpectedValueException();
     195        }
     196        foreach ( $this->registered_patterns as $value ) {
     197            if ( ! is_array( $value ) ) {
     198                throw new UnexpectedValueException();
     199            }
     200        }
     201        $this->registered_patterns_outside_init = array();
     202    }
     203
    189204    /**
    190205     * Utility method to retrieve the main instance of the class.
Note: See TracChangeset for help on using the changeset viewer.