Make WordPress Core

Changeset 28845


Ignore:
Timestamp:
06/26/2014 02:13:16 AM (10 years ago)
Author:
wonderboymusic
Message:

In kses.php, ensure that $allowedposttags, $allowedtags, and $allowedentitynames are added to the global namespace.

Props Jaza613.
Fixes #28582.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/kses.php

    r27739 r28845  
    4444if ( ! defined( 'CUSTOM_TAGS' ) )
    4545    define( 'CUSTOM_TAGS', false );
     46
     47// Ensure that these variables are added to the global namespace
     48// (e.g. if using namespaces / autoload in the current PHP environment).
     49global $allowedposttags, $allowedtags, $allowedentitynames;
    4650
    4751if ( ! CUSTOM_TAGS ) {
Note: See TracChangeset for help on using the changeset viewer.