Framework: Deprecate gutenberg_get_post_from_context
#21662
Labels
Backwards Compatibility
Issues or PRs that impact backwards compatability
Framework
Issues related to broader framework topics, especially as it relates to javascript
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Status] In Progress
Tracking issues with work in progress
[Type] Code Quality
Issues or PRs that relate to code quality
Previously: #21467 (#21467 (comment))
Context:
#21467 adds first-class support for block context, which by default includes support for providing the post ID to any block which defines an intent to consume this context value.
This had previously been achieved by the implementation of a
gutenberg_get_post_from_context
function.Task:
gutenberg_get_post_from_context
to use block context_deprecated_function
function call ingutenberg_get_post_from_context
.gutenberg_get_post_from_context
to a more appropriate file.compat.php
is intended to be reserved for functions with a corresponding WordPress proposal ticket proposing the addition of a function.The text was updated successfully, but these errors were encountered: