Make WordPress Core

Opened 2 months ago

Closed 2 months ago

Last modified 2 months ago

#62665 closed defect (bug) (fixed)

Update `wp_get_global_stylesheet` and `WP_Theme_JSON::get_stylesheet` docblocks.

Reported by: isabel_brison's profile isabel_brison Owned by: isabel_brison's profile isabel_brison
Milestone: 6.8 Priority: normal
Severity: normal Version: trunk
Component: Editor Keywords: has-patch
Focuses: Cc:

Description

The changes from #61395, where wp_get_global_styles_custom_css was deprecated in favour of wp_get_global_stylesheet for handling custom css, introduced a new custom-css type to WP_Theme_JSON::get_stylesheet, but neglected to update the docblock with it.

wp_get_global_stylesheet's docblock also mentions the types that WP_Theme_JSON::get_stylesheet handles, so should also be updated accordingly.

Change History (4)

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


2 months ago
#1

  • Keywords has-patch added

…et_stylesheet`.

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

#2 @isabel_brison
2 months ago

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

In 59499:

Editor: Update docblocks for wp_get_global_stylesheet and WP_Theme_JSON::get_stylesheet.

Updates docblocks to account for new use of the custom-css string in their $types parameters and adds information to deprecation of wp_get_global_styles_custom_css.

Props justlevine, isabel_brison, ramonopoly.
Fixes #62665.

@isabel_brison commented on PR #7976:


2 months ago
#4

Oh forgot to close it 🤦 thanks Mukesh!

Note: See TracTickets for help on using tickets.