Skip to content

Commit

Permalink
Plugin: Remove PHP functions slated for removal in 5.2 (#14090)
Browse files Browse the repository at this point in the history
* Plugin: Remove PHP functions slated for removal in 5.2

* Documentation: Update FAQ to avoid reference to deprecated function
  • Loading branch information
aduth committed Feb 27, 2019
1 parent 845185b commit 4d4f1ef
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 1,016 deletions.
3 changes: 1 addition & 2 deletions docs/designers-developers/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,7 @@ var blocks = wp.blocks.parse( postContent );
In PHP:

```php
$blocks = gutenberg_parse_blocks( $post_content ); // plugin
$blocks = parse_blocks( $post_content ); // WordPress 5.0
$blocks = parse_blocks( $post_content );
```

## Why should I start using this once released?
Expand Down
100 changes: 0 additions & 100 deletions gutenberg.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,103 +234,3 @@ function gutenberg_init( $return, $post ) {

return true;
}

/**
* Adds the filters to register additional links for the Gutenberg editor in
* the post/page screens.
*
* @since 1.5.0
* @deprecated 5.0.0
*/
function gutenberg_add_edit_link_filters() {
_deprecated_function( __FUNCTION__, '5.0.0' );
}

/**
* Registers an additional link in the post/page screens to edit any post/page in
* the Classic editor.
*
* @since 1.5.0
* @deprecated 5.0.0
*
* @param array $actions Post actions.
*
* @return array Updated post actions.
*/
function gutenberg_add_edit_link( $actions ) {
_deprecated_function( __FUNCTION__, '5.0.0' );

return $actions;
}

/**
* Removes the Edit action from the reusable block list's Bulk Actions dropdown.
*
* @since 3.8.0
* @deprecated 5.0.0
*
* @param array $actions Bulk actions.
*
* @return array Updated bulk actions.
*/
function gutenberg_block_bulk_actions( $actions ) {
_deprecated_function( __FUNCTION__, '5.0.0' );

return $actions;
}

/**
* Prints the JavaScript to replace the default "Add New" button.$_COOKIE
*
* @since 1.5.0
* @deprecated 5.0.0
*/
function gutenberg_replace_default_add_new_button() {
_deprecated_function( __FUNCTION__, '5.0.0' );
}

/**
* Adds the block-editor-page class to the body tag on the Gutenberg page.
*
* @since 1.5.0
* @deprecated 5.0.0
*
* @param string $classes Space separated string of classes being added to the body tag.
* @return string The $classes string, with block-editor-page appended.
*/
function gutenberg_add_admin_body_class( $classes ) {
_deprecated_function( __FUNCTION__, '5.0.0' );

return $classes;
}

/**
* Adds attributes to kses allowed tags that aren't in the default list
* and that Gutenberg needs to save blocks such as the Gallery block.
*
* @deprecated 5.0.0
*
* @param array $tags Allowed HTML.
* @return array (Maybe) modified allowed HTML.
*/
function gutenberg_kses_allowedtags( $tags ) {
_deprecated_function( __FUNCTION__, '5.0.0' );

return $tags;
}

/**
* Adds the wp-embed-responsive class to the body tag if the theme has opted in to
* 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 ) {
_deprecated_function( __FUNCTION__, '5.0.0' );

return $classes;
}
142 changes: 0 additions & 142 deletions lib/blocks.php

This file was deleted.

Loading

0 comments on commit 4d4f1ef

Please sign in to comment.