Make WordPress Core

Changeset 53434


Ignore:
Timestamp:
05/23/2022 02:10:33 PM (2 years ago)
Author:
hellofromTonya
Message:

Build/Test Tools: Follow-up to r53432.

Removes comments global resets from base test case.

Follow-up to [53432].

See #54725,#55643.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/6.0/tests/phpunit/includes/abstract-testcase.php

    r53432 r53434  
    172172        $current_screen_globals = array( 'current_screen', 'taxnow', 'typenow' );
    173173        foreach ( $current_screen_globals as $global ) {
    174             $GLOBALS[ $global ] = null;
    175         }
    176 
    177         // Reset comment globals.
    178         $comment_globals = array( 'comment_alt', 'comment_depth', 'comment_thread_alt' );
    179         foreach ( $comment_globals as $global ) {
    180174            $GLOBALS[ $global ] = null;
    181175        }
Note: See TracChangeset for help on using the changeset viewer.