Quantcast
Channel: WordPress.org Forums » [Header Footer Code Manager] Support
Viewing all articles
Browse latest Browse all 38

Passing null in strip-tags

$
0
0

Replies: 2

It seems like the latest version is passing a null string as the title which causes an error to appear on the admin page
Error is like this:

Deprecated: strip_tags(): Passing null to parameter #1 ($string) of type string is deprecated in /www/tripplocom_635/public/wp-admin/admin-header.php on line 36

Which then comes from the title being empty

https://github.com/WordPress/WordPress/blob/master/wp-admin/admin-header.php

// This submenu is HIDDEN, however, we need to add it anyways
add_submenu_page(
'',
( 'Update Script', 'header-footer-code-manager' ), ( 'Update', 'header-footer-code-manager' ),
'manage_options',
'hfcm-update',
array( 'NNR_HFCM', 'hfcm_update' )
);

And after inspecting the plugin on row 265 one can see that the page for editing the snippets have a empty title.


Viewing all articles
Browse latest Browse all 38

Trending Articles