Make WordPress Core

Opened 10 months ago

Closed 10 months ago

Last modified 10 months ago

#58562 closed defect (bug) (fixed)

Doc block for register_block_style missing style_handle

Reported by: bacoords's profile bacoords Owned by: audrasjb's profile audrasjb
Milestone: 6.3 Priority: normal
Severity: normal Version:
Component: General Keywords: has-patch
Focuses: docs Cc:


The style_properties parameter in the doc block for the register_block_style function should say style_handle not style.

Correct example would look like:

 * @param array  $style_properties Array containing the properties of the style name,
 *                                 label, style_handle (name of the stylesheet to be enqueued),
 *                                 inline_style (string containing the CSS to be added).

Change History (6)

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

10 months ago

  • Keywords has-patch added

@audrasjb commented on PR #4638:

10 months ago

Thanks. I added a small text alignment fix in a follow-up comment.

#3 @audrasjb
10 months ago

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

In 55952:

Docs: register_block_style() docblock improvement.

This changeset replaces style with style_handle in the description of $style_properties to better match WP_Block_Styles_Registry::register().

Follow-up to [46111], [48102].

Props bacoords, dilipbheda, audrasjb.
Fixes #58562.
See #57840.

#5 @kebbet
10 months ago

@audrasjb please set the milestone to 6.3.

#6 @audrasjb
10 months ago

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