In `kses.php`, ensure that `$allowedposttags`, `$allowedtags`, and `$allowedentitynames` are added to the global namespace.
Props Jaza613. Fixes #28582. Built from https://develop.svn.wordpress.org/trunk@28845 git-svn-id: http://core.svn.wordpress.org/trunk@28649 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c725b77068
commit
38e39c93ea
|
@ -44,6 +44,10 @@
|
|||
if ( ! defined( 'CUSTOM_TAGS' ) )
|
||||
define( 'CUSTOM_TAGS', false );
|
||||
|
||||
// Ensure that these variables are added to the global namespace
|
||||
// (e.g. if using namespaces / autoload in the current PHP environment).
|
||||
global $allowedposttags, $allowedtags, $allowedentitynames;
|
||||
|
||||
if ( ! CUSTOM_TAGS ) {
|
||||
/**
|
||||
* Kses global for default allowable HTML tags.
|
||||
|
|
Loading…
Reference in New Issue