Ticket #28582: kses_declare_globals.patch
File kses_declare_globals.patch, 547 bytes (added by , 10 years ago) |
---|
-
wp-includes/kses.php
44 44 if ( ! defined( 'CUSTOM_TAGS' ) ) 45 45 define( 'CUSTOM_TAGS', false ); 46 46 47 // Declare these variables with 'global' keyword here. 48 // Because they're within an 'if' statement further down, they may 49 // under some circumstances not be added to the global namespace (e.g. 50 // if using namespaces / autoload in the current PHP environment). 51 global $allowedposttags, $allowedtags, $allowedentitynames; 52 47 53 if ( ! CUSTOM_TAGS ) { 48 54 /** 49 55 * Kses global for default allowable HTML tags.