Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#53511 closed defect (bug) (invalid)

Deprecated: block_categories / block_editor_preload_paths is deprecated since version 5.8.0!

Reported by: oldrup's profile oldrup Owned by:
Milestone: Priority: normal
Severity: minor Version:
Component: Editor Keywords:
Focuses: Cc:

Description

Hey

When testing WordPress 5.8 beta 3 with debug on, I get these errors in the post editor if any plugin adding blocks or shortcodes is activated:

Deprecated: block_editor_preload_paths is deprecated since version 5.8.0! Use block_editor_rest_api_preload_paths instead. in /home/oldrupdk/oldrup.net/wp-includes/functions.php on line 5465

Deprecated: block_categories is deprecated since version 5.8.0! Use block_categories_all instead. in /home/oldrupdk/oldrup.net/wp-includes/functions.php on line 5465

Deprecated: block_categories is deprecated since version 5.8.0! Use block_categories_all instead. in /home/oldrupdk/oldrup.net/wp-includes/functions.php on line 5465

The editor somewhat covers the errors, in this screenshot turned down a bit to make the error visible : https://snipboard.io/b9q87r.jpg

Are those issues that should be examined by the plugin developers, or is it a core thing? I'm in doubt as the errors are thrown by /wp-includes/functions.php on line 5465

Bjarne

Change History (3)

#1 @desrosj
4 years ago

  • Component changed from General to Editor
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

Hi @oldrup,

This is a notice used to inform developers of a change to how something works or should be used within the code base. The site should continue working without issues if WP_DEBUG is set to false, but these will be displayed otherwise.

The errors come from functions.php because that's where apply_filters_deprecated() is defined.

#2 @jorbin
4 years ago

If you need to figure out exactly where the deprecation notice is coming from, https://wordpress.org/plugins/log-deprecated-notices/ can be useful for that when used on a staging site.

#3 @oldrup
4 years ago

Very useful. Thank you!

Note: See TracTickets for help on using tickets.