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/import/postmeta.php

    r46586 r47122  
    8484        $this->_import_wp( DIR_TESTDATA . '/export/test-serialized-postmeta-with-cdata.xml', array( 'johncoswell' => 'johncoswell' ) );
    8585
    86         //HTML in the CDATA should work with old WordPress version
     86        // HTML in the CDATA should work with old WordPress version.
    8787        $this->assertEquals( '<pre>some html</pre>', get_post_meta( 10, 'contains-html', true ) );
    88         //Serialised will only work with 3.0 onwards.
     88        // Serialised will only work with 3.0 onwards.
    8989        $expected['special_post_title'] = 'A special title';
    9090        $expected['is_calendar']        = '';
     
    9797    function test_serialized_postmeta_with_evil_stuff_in_cdata() {
    9898        $this->_import_wp( DIR_TESTDATA . '/export/test-serialized-postmeta-with-cdata.xml', array( 'johncoswell' => 'johncoswell' ) );
    99         // evil content in the CDATA
     99        // Evil content in the CDATA.
    100100        $this->assertEquals( '<wp:meta_value>evil</wp:meta_value>', get_post_meta( 10, 'evil', true ) );
    101101    }
Note: See TracChangeset for help on using the changeset viewer.