Skip to content

Clarify allowed_block_types filter - #4091

Closed
greatislander wants to merge 1 commit into
WordPress:masterfrom
greatislander:try/clarify-allowed-block-types-filter
Closed

greatislander wants to merge 1 commit into
WordPress:masterfrom
greatislander:try/clarify-allowed-block-types-filter

Conversation

@greatislander

@greatislander greatislander commented Dec 19, 2017 •

Copy link
Copy Markdown
Contributor

Description

As per conversation in Slack, this PR updates the docblock of the allowed_block_types filter to clarify existing behaviour.

How Has This Been Tested?

This PR does not affect functionality; it just changes code comments for clarity.

Types of changes

This PR does not affect functionality; it just changes code comments for clarity.

Checklist:

  • My code is tested.
  • My code follows the WordPress code style.
  • My code follows has proper inline documentation.

@aduth

aduth commented Dec 19, 2017

Copy link
Copy Markdown
Member

Rather than changing the documentation to reflect the current behavior, I'd be more inclined to file this as a bug where the allowed_block_types filter is not matching the expected behavior.

@greatislander

Copy link
Copy Markdown
Contributor Author

@aduth Cool. I'll close this PR and open an issue.

@greatislander
greatislander deleted the try/clarify-allowed-block-types-filter branch December 19, 2017 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants