Make WordPress Core

Opened 3 weeks ago

Closed 3 weeks ago

#66150 closed enhancement (fixed)

Expose `wp_get_viewport_media_queries` for custom block controls

Reported by: isabel_brison Owned by: isabel_brison
Priority: normal Milestone: 7.2
Component: Editor Version:
Severity: normal Keywords: gutenberg-merge has-patch has-unit-tests
Cc: Focuses:

Description

A public API for supporting viewport states in custom block controls was added to Gutenberg in ​https://github.com/WordPress/gutenberg/pull/82741. The PHP changes consist of a wrapper around WP_Theme_JSON_Gutenberg::get_viewport_media_queries, which now needs adding to core.

Change History (2)

This ticket was mentioned in ​PR #13561 on ​WordPress/wordpress-develop by ​@isabel_brison.


3 weeks ago
#1

  • Keywords has-patch has-unit-tests added

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

Use of AI Tools

Changes from PR ​https://github.com/WordPress/gutenberg/pull/82741 copied with copilot/Kimi 3.0

#2 @isabel_brison
3 weeks ago

  • Owner set to isabel_brison
  • Resolution → fixed
  • Status new → closed

In 63889:

Editor: add public function to retrieve viewport state media queries.

Adds a wrapper for WP_Theme_JSON::get_viewport_media_queries so that custom blocks and custom block controls can make use of viewport states.

Props isabel_brison, ramonopoly.
Fixes #66150.

Note: See TracTickets for help on using tickets.