Make WordPress Core


Ignore:
Timestamp:
09/20/2015 03:51:55 AM (10 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-admin/includes/nav-menu.php

    r34168 r34348  
    876876        $walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $menu_id );
    877877
    878         if ( class_exists( $walker_class_name ) )
     878        if ( class_exists( $walker_class_name, false ) )
    879879            $walker = new $walker_class_name;
    880880        else
Note: See TracChangeset for help on using the changeset viewer.