Detailed description
I am running WordPress 5.8 beta 2 and am getting deprecated notices on block_editor_preload_paths
PHP Deprecated: block_editor_preload_paths is <strong>deprecated</strong> since version 5.8.0! Use block_editor_rest_api_preload_paths instead. in /usr/local/wordpress/wp-includes/functions.php on line 5381
[24-Jun-2021 17:03:38 UTC] PHP Stack trace:
[24-Jun-2021 17:03:38 UTC] PHP 1. {main}() /usr/local/wordpress/wp-admin/post-new.php:0
[24-Jun-2021 17:03:38 UTC] PHP 2. require() /usr/local/wordpress/wp-admin/post-new.php:72
[24-Jun-2021 17:03:38 UTC] PHP 3. block_editor_rest_api_preload($preload_paths = [0 => '/', 1 => '/wp/v2/types?context=edit', 2 => '/wp/v2/taxonomies?per_page=-1&context=edit', 3 => '/wp/v2/themes?status=active', 4 => '/wp/v2/graphql-query/3620893?context=edit', 5 => '/wp/v2/types/graphql-query?context=edit', 6 => '/wp/v2/users/me?post_type=graphql-query&context=edit', 7 => [0 => '/wp/v2/media', 1 => 'OPTIONS'], 8 => [0 => '/wp/v2/blocks', 1 => 'OPTIONS'], 9 => '/wp/v2/graphql-query/3620893/autosaves?context=edit'], $block_editor_context = class WP_Block_Editor_Context { public $post = class WP_Post { public $ID = 3620893; public $post_author = '2'; public $post_date = '2021-06-24 10:03:38'; public $post_date_gmt = '0000-00-00 00:00:00'; public $post_content = ''; public $post_title = ''; public $post_excerpt = ''; public $post_status = 'auto-draft'; public $comment_status = 'closed'; public $ping_status = 'closed'; public $post_password = ''; public $post_name = ''; public $to_ping = ''; public $pinged = ''; public $post_modified = '2021-06-24 10:03:38'; public $post_modified_gmt = '0000-00-00 00:00:00'; public $post_content_filtered = ''; public $post_parent = 0; public $guid = 'https://bodcms.test/?post_type=graphql-query&p=3620893'; public $menu_order = 0; public $post_type = 'graphql-query'; public $post_mime_type = ''; public $comment_count = '0'; public $filter = 'raw' } }) /usr/local/wordpress/wp-admin/edit-form-blocks.php:69
[24-Jun-2021 17:03:38 UTC] PHP 4. apply_filters_deprecated($hook_name = 'block_editor_preload_paths', $args = [0 => [0 => '/', 1 => '/wp/v2/types?context=edit', 2 => '/wp/v2/taxonomies?per_page=-1&context=edit', 3 => '/wp/v2/themes?status=active', 4 => '/wp/v2/graphql-query/3620893?context=edit', 5 => '/wp/v2/types/graphql-query?context=edit', 6 => '/wp/v2/users/me?post_type=graphql-query&context=edit', 7 => [...], 8 => [...], 9 => '/wp/v2/graphql-query/3620893/autosaves?context=edit'], 1 => class WP_Post { public $ID = 3620893; public $post_author = '2'; public $post_date = '2021-06-24 10:03:38'; public $post_date_gmt = '0000-00-00 00:00:00'; public $post_content = ''; public $post_title = ''; public $post_excerpt = ''; public $post_status = 'auto-draft'; public $comment_status = 'closed'; public $ping_status = 'closed'; public $post_password = ''; public $post_name = ''; public $to_ping = ''; public $pinged = ''; public $post_modified = '2021-06-24 10:03:38'; public $post_modified_gmt = '0000-00-00 00:00:00'; public $post_content_filtered = ''; public $post_parent = 0; public $guid = 'https://bodcms.test/?post_type=graphql-query&p=3620893'; public $menu_order = 0; public $post_type = 'graphql-query'; public $post_mime_type = ''; public $comment_count = '0'; public $filter = 'raw' }], $version = '5.8.0', $replacement = 'block_editor_rest_api_preload_paths', $message = *uninitialized*) /usr/local/wordpress/wp-includes/block-editor.php:435
[24-Jun-2021 17:03:38 UTC] PHP 5. _deprecated_hook($hook = 'block_editor_preload_paths', $version = '5.8.0', $replacement = 'block_editor_rest_api_preload_paths', $message = '') /usr/local/wordpress/wp-includes/plugin.php:654
[24-Jun-2021 17:03:38 UTC] PHP 6. trigger_error($message = 'block_editor_preload_paths is <strong>deprecated</strong> since version 5.8.0! Use block_editor_rest_api_preload_paths instead.', $error_type = 16384) /usr/local/wordpress/wp-includes/functions.php:5381
[24-Jun-2021 17:03:39 UTC] PHP Deprecated: block_categories is <strong>deprecated</strong> since version 5.8.0! Use block_categories_all instead. in /usr/local/wordpress/wp-includes/functions.php on line 5381
Context
Looks like loading of the custom Query pages are broken: /wp-admin/post-new.php?post_type=graphql-query
Your environment
Include as many relevant details about the environment you experienced the bug in and how to reproduce it.
| Software | Version |
| --- | --- |
| GraphQL API plugin | 0.7.13 |
| PHP | 7.4 |
| WordPress | 5.8 beta 2 |
| Gutenberg | NA |