Make WordPress Core

Opened 8 months ago

Closed 8 months ago

Last modified 8 months 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: 6.6
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.


8 months 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.


8 months ago

@ellatrix commented on PR #6716:


8 months ago
#3

Looks good to me to and works.

#4 @ellatrix
8 months 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
8 months ago

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