Deprecated warning Link Manager
-
Hi,
I still have the native Link Manager enabled and there are some deprecated warnings at the Add Link page, regarding the editor switch meta box. Example:
Deprecated: strstr(): Passing null to parameter #1 ($haystack) of type string is deprecated in my-domain\wp-includes\functions.php on line 1154
As the Link Manager does not support the Block Editor, adding an extra condition to file classic-editor.php will solve this and hide the meta box on the Add Link page.
$current_screen = get_current_screen();
if ( ! $editors['block_editor'] || ! $editors['classic_editor'] || ( $current_screen !== 'link' ) ) {Guido
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
You must be logged in to reply to this topic.