Make WordPress Core

Opened 5 weeks ago

Closed 5 weeks ago

Last modified 5 weeks ago

#61360 closed defect (bug) (fixed)

Backport: Output post classes in the editor

Reported by: antonvlasenko's profile antonvlasenko Owned by: ellatrix's profile ellatrix
Milestone: 6.6 Priority: normal
Severity: normal Version: trunk
Component: REST API Keywords: has-patch has-unit-tests
Focuses: rest-api Cc:

Description

Original PR: https://github.com/WordPress/gutenberg/pull/60642

A new REST API class_list field needs to be added to the posts endpoint to return classes related to the given post type. This allows users to target specific elements and apply custom styles to them in the editor.

Change History (6)

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


5 weeks ago
#1

  • Keywords has-patch has-unit-tests added; needs-patch removed

This ticket was mentioned in Slack in #core-editor by antonvlasenko. View the logs.


5 weeks ago

@ellatrix commented on PR #6716:


5 weeks ago
#3

Looks good to me to and works.

#4 @ellatrix
5 weeks ago

  • Owner set to ellatrix
  • Resolution set to fixed
  • Status changed from new to closed

In 58326:

REST API: Add post class list field.

See https://github.com/WordPress/gutenberg/pull/60642.
See https://github.com/WordPress/wordpress-develop/pull/6716.

Fixes #61360.

Props antonvlasenko, timothyblynjacobs, ellatrix, oandregal.

#5 @ellatrix
5 weeks ago

  • Milestone changed from Awaiting Review to 6.6
Note: See TracTickets for help on using tickets.