Make WordPress Core

Ticket #28582: kses_declare_globals.patch

File kses_declare_globals.patch, 547 bytes (added by Jaza613, 10 years ago)
  • wp-includes/kses.php

     
    4444if ( ! defined( 'CUSTOM_TAGS' ) )
    4545        define( 'CUSTOM_TAGS', false );
    4646
     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).
     51global $allowedposttags, $allowedtags, $allowedentitynames;
     52
    4753if ( ! CUSTOM_TAGS ) {
    4854        /**
    4955         * Kses global for default allowable HTML tags.