WordPress.org

Make WordPress Core

Ticket #20523: 20523-revert.2.diff

File 20523-revert.2.diff, 2.2 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/file.php

    diff --git src/wp-admin/includes/file.php src/wp-admin/includes/file.php
    index d588e15..3b4d1c6 100644
    function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_own 
    866866        if ( ! $method )
    867867                return false;
    868868
    869         if ( ! class_exists( "WP_Filesystem_$method", false ) ) {
     869        if ( ! class_exists( "WP_Filesystem_$method" ) ) {
    870870
    871871                /**
    872872                 * Filter the path for a specific filesystem method class file.
  • 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;