WordPress.org

Make WordPress Core

Changeset 35749


Ignore:
Timestamp:
11/30/2015 04:14:31 AM (4 years ago)
Author:
markjaquith
Message:

Do not pass FALSE as second parameter in variable class_exists() checks

Because these are generally plugin-provided, we want plugins to be
able to use autoloaders.

fixes #20523

Location:
trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/ajax-actions.php

    r35646 r35749  
    11971197    $walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $_POST['menu'] );
    11981198
    1199     if ( ! class_exists( $walker_class_name, false ) )
     1199    if ( ! class_exists( $walker_class_name ) )
    12001200        wp_die( 0 );
    12011201
  • trunk/src/wp-admin/includes/file.php

    r35688 r35749  
    867867        return false;
    868868
    869     if ( ! class_exists( "WP_Filesystem_$method", false ) ) {
     869    if ( ! class_exists( "WP_Filesystem_$method" ) ) {
    870870
    871871        /**
  • trunk/src/wp-admin/includes/nav-menu.php

    r35502 r35749  
    900900        $walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $menu_id );
    901901
    902         if ( class_exists( $walker_class_name, false ) ) {
     902        if ( class_exists( $walker_class_name ) ) {
    903903            $walker = new $walker_class_name;
    904904        } else {
  • trunk/src/wp-includes/admin-bar.php

    r35704 r35749  
    4040     */
    4141    $admin_bar_class = apply_filters( 'wp_admin_bar_class', 'WP_Admin_Bar' );
    42     if ( class_exists( $admin_bar_class, false ) )
     42    if ( class_exists( $admin_bar_class ) )
    4343        $wp_admin_bar = new $admin_bar_class;
    4444    else
Note: See TracChangeset for help on using the changeset viewer.