Make WordPress Core

Ticket #51669: 51669.diff

File 51669.diff, 825 bytes (added by SergeyBiryukov, 4 years ago)
  • tests/phpunit/tests/rest-api/rest-plugins-controller.php

     
    10231023                        10,
    10241024                        3
    10251025                );
     1026
     1027                // Remove upgrade hooks which are not required for plugin installation tests
     1028                // and may interfere with the results due to unnecessary external HTTP requests.
     1029                remove_action( 'upgrader_process_complete', array( 'Language_Pack_Upgrader', 'async_upgrade' ), 20 );
     1030                remove_action( 'upgrader_process_complete', 'wp_version_check' );
     1031                remove_action( 'upgrader_process_complete', 'wp_update_plugins' );
     1032                remove_action( 'upgrader_process_complete', 'wp_update_themes' );
    10261033        }
    10271034
    10281035        /**