Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#57621 closed enhancement (fixed)

Add support for global styles per-block custom css

Reported by: aristath's profile aristath Owned by: flixos90's profile flixos90
Milestone: 6.2 Priority: normal
Severity: normal Version:
Component: General Keywords: gutenberg-merge has-patch has-unit-tests
Focuses: Cc:

Description

Change History (6)

This ticket was mentioned in PR #3977 on WordPress/wordpress-develop by @aristath.


2 years ago
#1

  • Keywords has-patch has-unit-tests added

Backports https://github.com/WordPress/gutenberg/pull/46571

This is a continuation of https://github.com/WordPress/wordpress-develop/pull/3896
That PR included a call to the `process_blocks_custom_css` method, but the method itself was not included.
This PR back ports that method, and its related tests.

Trac ticket: https://core.trac.wordpress.org/ticket/57621

#3 @flixos90
2 years ago

  • Owner set to flixos90
  • Status changed from new to reviewing

#5 @SergeyBiryukov
2 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

Fixed in [55216].

#6 @hellofromTonya
2 years ago

In 55468:

Tests: Use assertSame() in Tests_Theme_wpThemeJson.

Change from assertEquals() to assertSame(). Why? To ensure both the return value and data type match the expected results.

Follow-up to [55216].

Props costdev, peterwilsoncc, mukesh27, ankitmaru.
See #56800, #57621.

Note: See TracTickets for help on using tickets.