Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#52795 closed enhancement (fixed)

Wrong DocBlock for unregister_block_style

Reported by: kraftner's profile kraftner Owned by: davidbaumwald's profile davidbaumwald
Milestone: 5.8 Priority: normal
Severity: normal Version: 5.8
Component: General Keywords: has-patch
Focuses: docs Cc:


Currently the DocBlock for the $block_style_name parameter of unregister_block_style() is documented as being an array while in fact it needs to be a string since it passes the parameter on to WP_Block_Styles_Registry::unregister() which takes a string.

Change History (5)

This ticket was mentioned in PR #1093 on WordPress/wordpress-develop by kraftner.

3 years ago

  • Keywords has-patch added

#2 @kraftner
3 years ago

I've added a PR that fixes this.

#3 @davidbaumwald
3 years ago

  • Owner set to davidbaumwald
  • Status changed from new to assigned

#4 @davidbaumwald
3 years ago

  • Milestone changed from Awaiting Review to 5.8

#5 @davidbaumwald
3 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

In 50528:

Docs: Correct unregister_block_style @param for $block_name.

In unregister_block_style, the $block_name parameter was documented as an array. This change corrects the type to string, as that's what is expected in WP_Block_Styles_Registry->unregister.

Props kraftner.
Fixes #52795.

Note: See TracTickets for help on using tickets.