Making WordPress.org


Ignore:
Timestamp:
04/12/2021 08:21:57 PM (4 years ago)
Author:
iandunn
Message:

Events: Remove unused RUNNING_TESTS constant.

It's no longer necessary now that all the tests have been migrated to PHPUnit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/events/1.0/index.php

    r10557 r10885  
    4646
    4747    // The test suite just needs the functions defined and doesn't want any headers or output
    48     if (
    49         ( defined( 'RUNNING_TESTS' ) && RUNNING_TESTS ) ||
    50         ( defined( 'WPORG_RUNNING_TESTS' ) && WPORG_RUNNING_TESTS )
    51     ) {
     48    if ( defined( 'WPORG_RUNNING_TESTS' ) && WPORG_RUNNING_TESTS ) {
    5249        disable_caching();
    5350        return;
     
    114111    require_once $base_dir . '/includes/wp-json-encode.php';
    115112
    116     if (
    117         ( ! defined( 'RUNNING_TESTS' ) || ! RUNNING_TESTS ) ||
    118         ( ! defined( 'WPORG_RUNNING_TESTS' ) || ! WPORG_RUNNING_TESTS )
    119     ) {
     113    if ( ! defined( 'WPORG_RUNNING_TESTS' ) || ! WPORG_RUNNING_TESTS ) {
    120114        require_once $base_dir . '/includes/object-cache.php';
    121115    }
Note: See TracChangeset for help on using the changeset viewer.