WordPress.org

Make WordPress Core

Ticket #20523: 20523-revert.diff

File 20523-revert.diff, 1.7 KB (added by markjaquith, 5 years ago)
  • src/wp-admin/includes/ajax-actions.php

    diff --git src/wp-admin/includes/ajax-actions.php src/wp-admin/includes/ajax-actions.php
    index cf1e92b..d96a2fb 100644
    function wp_ajax_add_menu_item() { 
    11961196        /** This filter is documented in wp-admin/includes/nav-menu.php */
    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
    12021202        if ( ! empty( $menu_items ) ) {
  • src/wp-admin/includes/nav-menu.php

    diff --git src/wp-admin/includes/nav-menu.php src/wp-admin/includes/nav-menu.php
    index 5944f93..16b157e 100644
    function wp_get_nav_menu_to_edit( $menu_id = 0 ) { 
    899899                 */
    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 {
    905905                        return new WP_Error( 'menu_walker_not_exist',
  • src/wp-includes/admin-bar.php

    diff --git src/wp-includes/admin-bar.php src/wp-includes/admin-bar.php
    index 162e680..2bf56a8 100644
    function _wp_admin_bar_init() { 
    3939         * @param string $wp_admin_bar_class Admin bar class to use. Default 'WP_Admin_Bar'.
    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
    4545                return false;