Skip to content

Commit

Permalink
Plugin: Deprecate gutenberg_add_responsive_body_class (#13461)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduth authored and youknowriad committed Mar 6, 2019
1 parent 147d7f7 commit fa13d50
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ The Gutenberg project's deprecation policy is intended to support backward compa
- The PHP function `gutenberg_remove_wpcom_markdown_support` has been removed.
- The PHP function `gutenberg_bulk_post_updated_messages` has been removed.
- The PHP function `gutenberg_kses_allowedtags` has been removed.
- The PHP function `gutenberg_add_responsive_body_class` has been removed.

## 4.5.0
- `Dropdown.refresh()` has been deprecated as the contained `Popover` is now automatically refreshed.
Expand Down
8 changes: 3 additions & 5 deletions gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -543,15 +543,13 @@ function gutenberg_kses_allowedtags( $tags ) {
* Gutenberg responsive embeds.
*
* @since 4.1.0
* @deprecated 5.0.0
*
* @param Array $classes Array of classes being added to the body tag.
* @return Array The $classes array, with wp-embed-responsive appended.
*/
function gutenberg_add_responsive_body_class( $classes ) {
if ( current_theme_supports( 'responsive-embeds' ) ) {
$classes[] = 'wp-embed-responsive';
}
_deprecated_function( __FUNCTION__, '5.0.0' );

return $classes;
}

add_filter( 'body_class', 'gutenberg_add_responsive_body_class' );

0 comments on commit fa13d50

Please sign in to comment.