Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin: Remove PHP functions slated for removal in 5.2 #14090

Merged
merged 2 commits into from
Feb 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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