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/upload.php

    r46586 r47122  
    1414
    1515    function _reset_options() {
    16         // system defaults
     16        // System defaults.
    1717        update_option( 'upload_path', 'wp-content/uploads' );
    1818        update_option( 'upload_url_path', '' );
     
    2121
    2222    function test_upload_dir_default() {
    23         // wp_upload_dir() with default parameters
     23        // wp_upload_dir() with default parameters.
    2424        $info   = wp_upload_dir();
    2525        $subdir = gmstrftime( '/%Y/%m' );
     
    3232
    3333    function test_upload_dir_relative() {
    34         // wp_upload_dir() with a relative upload path that is not 'wp-content/uploads'
     34        // wp_upload_dir() with a relative upload path that is not 'wp-content/uploads'.
    3535        update_option( 'upload_path', 'foo/bar' );
    3636        $info   = _wp_upload_dir();
     
    4949        $path = '/tmp/wp-unit-test';
    5050
    51         // wp_upload_dir() with an absolute upload path
     51        // wp_upload_dir() with an absolute upload path.
    5252        update_option( 'upload_path', $path );
    5353
    54         // doesn't make sense to use an absolute file path without setting the url path
     54        // Doesn't make sense to use an absolute file path without setting the url path.
    5555        update_option( 'upload_url_path', '/baz' );
    5656
     
    9393
    9494    function test_upload_dir_empty() {
    95         // upload path setting is empty - it should default to 'wp-content/uploads'
     95        // Upload path setting is empty - it should default to 'wp-content/uploads'.
    9696        update_option( 'upload_path', '' );
    9797
Note: See TracChangeset for help on using the changeset viewer.