WordPress.org

Make WordPress Core

Ticket #44534: 44534.diff

File 44534.diff, 351 bytes (added by duanestorey, 17 months ago)

Patch

  • rest-api.php

     
    255255         */
    256256        define( 'REST_REQUEST', true );
    257257
     258        // The current debug state depends on REST_REQUEST
     259        wp_debug_mode();
     260
    258261        // Initialize the server.
    259262        $server = rest_get_server();
    260263