WordPress.org

Make WordPress Core

Ticket #46813: 46813.2.diff

File 46813.2.diff, 512 bytes (added by tmdesigned, 9 months ago)

using filter to disable _doing_it_wrong

  • src/wp-includes/functions.php

     
    29792979                $title = '';
    29802980        }
    29812981
     2982        /* Disable doing_it_wrong checks to prevent additional notices while dying */
     2983        add_filter( 'doing_it_wrong_trigger_error', __return_false );
     2984
    29822985        if ( wp_doing_ajax() ) {
    29832986                /**
    29842987                 * Filters the callback for killing WordPress execution for Ajax requests.