WordPress.org

Make WordPress Core

Ticket #34240: patch_for_34928.diff

File patch_for_34928.diff, 448 bytes (added by marcello.colacino, 5 years ago)

Patch to fix issue on revision 34928

  • spy-rest-server.php

     
    11<?php
    22
     3if (class_exists( 'WP_REST_Server' ) ) :
     4
    35class Spy_REST_Server extends WP_REST_Server {
    46        /**
    57         * Get the raw $endpoints data from the server
     
    2123                return call_user_func_array( array( $this, $method ), $args );
    2224        }
    2325}
     26
     27endif;