Make WordPress Core


Ignore:
Timestamp:
09/20/2015 03:51:55 AM (11 years ago)
Author:
wonderboymusic
Message:

Pass false as the 2nd argument to class_exists() to disable autoloading and to not cause problems for those who define __autoload().

Fixes #20523.

File:
1 edited

Legend:

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

    r32990 r34348  
    99 */
    1010
    11 if ( !class_exists( 'POMO_Reader' ) ):
     11if ( ! class_exists( 'POMO_Reader', false ) ):
    1212class POMO_Reader {
    1313
     
    135135endif;
    136136
    137 if ( !class_exists( 'POMO_FileReader' ) ):
     137if ( ! class_exists( 'POMO_FileReader', false ) ):
    138138class POMO_FileReader extends POMO_Reader {
    139139
     
    205205endif;
    206206
    207 if ( !class_exists( 'POMO_StringReader' ) ):
     207if ( ! class_exists( 'POMO_StringReader', false ) ):
    208208/**
    209209 * Provides file-like methods for manipulating a string instead
     
    268268endif;
    269269
    270 if ( !class_exists( 'POMO_CachedFileReader' ) ):
     270if ( ! class_exists( 'POMO_CachedFileReader', false ) ):
    271271/**
    272272 * Reads the contents of the file in the beginning.
     
    293293endif;
    294294
    295 if ( !class_exists( 'POMO_CachedIntFileReader' ) ):
     295if ( ! class_exists( 'POMO_CachedIntFileReader', false ) ):
    296296/**
    297297 * Reads the contents of the file in the beginning.
Note: See TracChangeset for help on using the changeset viewer.