Make WordPress Core

Changeset 61678

Timestamp:
02/18/2026 08:10:59 PM (2 weeks ago)
Author:
ellatrix
Message:

Gutenberg PHP merge: block level custom CSS.

Merges/syncs PHP changes from https://github.com/WordPress/gutenberg/pull/73959.

Developed in https://github.com/WordPress/wordpress-develop/pull/10777.

Props glendaviesnz, shailu25, scruffian, aaronrobertshaw, mamaduka, shimotomoki.
Fixes #64544.

Location:
trunk
Files:
3 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/block-editor.php

    r61473 r61678  
    658658        $editor_settings = apply_filters_deprecated( 'block_editor_settings', array( $editor_settings, $post ), '5.8.0', 'block_editor_settings_all' );
    659659    }
     660
     661
    660662
    661663    return $editor_settings;
  • trunk/src/wp-includes/class-wp-theme-json.php

    r61640 r61678  
    15211521     * @since 6.2.0
    15221522     * @since 6.6.0 Enforced 0-1-0 specificity for block custom CSS selectors.
     1523
    15231524     *
    15241525     * @param string $css      The CSS to process.
     
    15261527     * @return string The processed CSS.
    15271528     */
    1528     protected function process_blocks_custom_css( $css, $selector ) {
     1529    p function process_blocks_custom_css( $css, $selector ) {
    15291530        $processed_css = '';
    15301531
  • trunk/src/wp-settings.php

    r61674 r61678  
    416416require ABSPATH . WPINC . '/block-supports/anchor.php';
    417417require ABSPATH . WPINC . '/block-supports/block-visibility.php';
     418
    418419require ABSPATH . WPINC . '/style-engine.php';
    419420require ABSPATH . WPINC . '/style-engine/class-wp-style-engine.php';
  • trunk/tests/phpunit/tests/blocks/editor.php

    r60930 r61678  
    584584        $this->assertSameSets(
    585585            array(
    586                 'filter' => 'deprecated',
     586                'canEditCSS' => false,
     587                'filter'     => 'deprecated',
    587588            ),
    588589            $settings
Note: See TracChangeset for help on using the changeset viewer.