Make WordPress Core


Ignore:
Timestamp:
03/09/2018 04:59:57 PM (7 years ago)
Author:
johnbillion
Message:

Themes: Revert [42788] as it breaks a lot of things.

See #43228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/theme/themeDir.php

    r42788 r42816  
    294294        rmdir( WP_CONTENT_DIR . '/themes/foo-themes' );
    295295    }
    296 
    297     /**
    298      * @ticket 43228
    299      */
    300     function test_theme_dir_caches() {
    301         @mkdir( WP_CONTENT_DIR . '/themes/foo' );
    302         @mkdir( WP_CONTENT_DIR . '/themes/foo/bar' );
    303 
    304         $old_roots = get_theme_roots();
    305 
    306         register_theme_directory( WP_CONTENT_DIR . '/themes/foo' );
    307 
    308         $new_roots = get_theme_roots();
    309 
    310         rmdir( WP_CONTENT_DIR . '/themes/foo/bar' );
    311         rmdir( WP_CONTENT_DIR . '/themes/foo' );
    312 
    313         $this->assertNotEquals( $new_roots, $old_roots );
    314         $this->assertArrayHasKey( 'foo', $new_roots );
    315     }
    316296}
Note: See TracChangeset for help on using the changeset viewer.