Make WordPress Core


Ignore:
Timestamp:
08/06/2026 07:38:52 PM (2 months ago)
Author:
desrosj
Message:

Security: Backport the WordPress 7.0.3 security fixes to the 5.9 branch.

  • Users: Ensure a proper email address is used before sending email confirmations.
  • Formatting: Prevent stack overflow in safecss_filter_attr.
  • Multisite: Enforce the active signup policy for existing users.
  • HTTP API: Improve compliance with IPv4 Special-Purpose Address Space.
  • Users: Prevent Usernames from mangling HTML
  • Canonical: Only redirect for publicly viewable post types.
  • Administration: When wp_is_large_user_count(), ensure that the post author is always added to author dropdown.
  • Editor: Fix output for post date.

Merges [63060],[63061],[63062],[63063],[63064],[63065],[63067] to the 5.9 branch.

Props xknown, westonruter, jeremyfelt, peterwilsoncc, paulkevan, lucasbustamante, jorbin, desrosj, vortfu, dmsnell, johnbillion, ehtis, batmoo, lancewillett, jonsurrell, isabel_brison, bernhard-reiter, tyxla, aduth.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0/src/wp-includes/kses.php

    r54763 r63100  
    24712471                        // Allow CSS calc().
    24722472                        $css_test_string = preg_replace( '/calc\(((?:\([^()]*\)?|[^()])*)\)/', '', $css_test_string );
     2473                        if ( null === $css_test_string ) {
     2474                                continue;
     2475                        }
     2476
    24732477                        // Allow CSS var().
    24742478                        $css_test_string = preg_replace( '/\(?var\(--[a-zA-Z0-9_-]*\)/', '', $css_test_string );
     2479                        if ( null === $css_test_string ) {
     2480                                continue;
     2481                        }
    24752482
    24762483                        // Check for any CSS containing \ ( & } = or comments,
    24772484                        // except for url(), calc(), or var() usage checked above.
    2478                         $allow_css = ! preg_match( '%[\\\(&=}]|/\*%', $css_test_string );
     2485                        $allow_css = 0 === preg_match( '%[\\\(&=}]|/\*%', $css_test_string );
    24792486
    24802487                        /**
Note: See TracChangeset for help on using the changeset viewer.