Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Improve inline comments per the documentation standards.

Includes minor code layout fixes for better readability.

See #48303.

File:
1 edited

Legend:

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

    r46586 r47122  
    2020        add_filter( 'stylesheet_root', array( $this, '_theme_root' ) );
    2121        add_filter( 'template_root', array( $this, '_theme_root' ) );
    22         // clear caches
     22        // Clear caches.
    2323        wp_clean_themes_cache();
    2424        unset( $GLOBALS['wp_themes'] );
     
    3535    }
    3636
    37     // replace the normal theme root dir with our premade test dir
     37    // Replace the normal theme root directory with our premade test directory.
    3838    function _theme_root( $dir ) {
    3939        return $this->theme_root;
     
    5151        $this->assertFalse( empty( $theme ) );
    5252
    53         #echo gen_tests_array('theme', $theme);
     53        // echo gen_tests_array( 'theme', $theme );
    5454
    5555        $this->assertEquals( 'WordPress Default', $theme['Name'] );
     
    8080        $this->assertFalse( empty( $theme ) );
    8181
    82         #echo gen_tests_array('theme', $theme);
     82        // echo gen_tests_array( 'theme', $theme );
    8383
    8484        $this->assertEquals( 'Sandbox', $theme['Name'] );
     
    117117        $this->assertFalse( empty( $theme ) );
    118118
    119         #echo gen_tests_array('theme', $theme);
     119        // echo gen_tests_array( 'theme', $theme );
    120120
    121121        $this->assertEquals( 'Stylesheet Only', $theme['Name'] );
     
    157157            'Stylesheet Only',
    158158            'My Theme',
    159             'My Theme/theme1', // duplicate theme should be given a unique name
    160             'My Subdir Theme', // theme in a subdirectory should work
    161             'Page Template Child Theme', // theme which inherits page templates
    162             'Page Template Theme', // theme with page templates for other test code
     159            'My Theme/theme1',                    // Duplicate theme should be given a unique name.
     160            'My Subdir Theme',                    // Theme in a subdirectory should work.
     161            'Page Template Child Theme',          // Theme which inherits page templates.
     162            'Page Template Theme',                // Theme with page templates for other test code.
    163163            'Theme with Spaces in the Directory',
    164164            'Internationalized Theme',
Note: See TracChangeset for help on using the changeset viewer.