Skip to content

Commit

Permalink
Framework: Bump deprecation version for gutenberg_get_post_from_context
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth committed May 6, 2020
1 parent 8193c87 commit 74cc973
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

For features included in the Gutenberg plugin, the deprecation policy is intended to support backward compatibility for two minor plugin releases, when possible. Features and code included in a stable release of WordPress are not included in this deprecation timeline, and are instead subject to the [versioning policies of the WordPress project](https://make.wordpress.org/core/handbook/about/release-cycle/version-numbering/). The current deprecations are listed below and are grouped by _the version at which they will be removed completely_. If your plugin depends on these behaviors, you must update to the recommended alternative before the noted version.

## 8.3.0

- The PHP function `gutenberg_get_post_from_context` has been removed. Use [Block Context](https://github.com/WordPress/gutenberg/blob/master/docs/designers-developers/developers/block-api/block-context.md) instead.

## 5.5.0

- The PHP function `gutenberg_init` has been removed.
Expand Down
2 changes: 1 addition & 1 deletion lib/compat.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ function gutenberg_get_post_from_context() {
return null;
}

_deprecated_function( __FUNCTION__, '8.0.0' );
_deprecated_function( __FUNCTION__, '8.1.0' );

if ( ! in_the_loop() ) {
rewind_posts();
Expand Down

0 comments on commit 74cc973

Please sign in to comment.