- Timestamp:
- 12/23/2020 04:56:08 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/events/1.0/index.php
r10543 r10544 1 1 <?php 2 2 3 namespace Dotorg\API\Events; 3 4 use stdClass; … … 46 47 47 48 // The test suite just needs the functions defined and doesn't want any headers or output 48 if ( defined( 'RUNNING_TESTS' ) && RUNNING_TESTS ) { 49 if ( 50 ( defined( 'RUNNING_TESTS' ) && RUNNING_TESTS ) || 51 ( defined( 'WPORG_RUNNING_TESTS' ) && WPORG_RUNNING_TESTS ) 52 ) { 49 53 disable_caching(); 50 54 return; … … 111 115 require_once $base_dir . '/includes/wp-json-encode.php'; 112 116 113 if ( ! defined( 'RUNNING_TESTS' ) || ! RUNNING_TESTS ) { 117 if ( 118 ( ! defined( 'RUNNING_TESTS' ) || ! RUNNING_TESTS ) || 119 ( ! defined( 'WPORG_RUNNING_TESTS' ) || ! WPORG_RUNNING_TESTS ) 120 ) { 114 121 require_once $base_dir . '/includes/object-cache.php'; 115 122 }
Note: See TracChangeset
for help on using the changeset viewer.