In kses.php
, ensure that $allowedposttags
, $allowedtags
, and $allowedentitynames
are added to the global namespace.
Props Jaza613. Fixes #28582. git-svn-id: https://develop.svn.wordpress.org/trunk@28845 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
b4c75b8ab1
commit
4d1313bffc
@ -44,6 +44,10 @@
|
|||||||
if ( ! defined( 'CUSTOM_TAGS' ) )
|
if ( ! defined( 'CUSTOM_TAGS' ) )
|
||||||
define( 'CUSTOM_TAGS', false );
|
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 ) {
|
if ( ! CUSTOM_TAGS ) {
|
||||||
/**
|
/**
|
||||||
* Kses global for default allowable HTML tags.
|
* Kses global for default allowable HTML tags.
|
||||||
|
Loading…
Reference in New Issue
Block a user