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/formatting/GetUrlInContent.php

    r46586 r47122  
    1313    public function get_input_output() {
    1414        return array(
    15             array(
     15            array( // Empty content.
    1616                '',
    1717                false,
    18             ), //empty content
    19             array(
     18            ),
     19            array( // No URLs.
    2020                '<div>NO URL CONTENT</div>',
    2121                false,
    22             ), //no URLs
    23             array(
     22            ),
     23            array( // Ignore none link elements.
    2424                '<div href="/relative.php">NO URL CONTENT</div>',
    2525                false,
    26             ), // ignore none link elements
    27             array(
     26            ),
     27            array( // Single link.
    2828                'ABC<div><a href="/relative.php">LINK</a> CONTENT</div>',
    2929                '/relative.php',
    30             ), // single link
    31             array(
     30            ),
     31            array( // Multiple links.
    3232                'ABC<div><a href="/relative.php">LINK</a> CONTENT <a href="/suppress.php">LINK</a></div>',
    3333                '/relative.php',
    34             ), // multiple links
    35             array(
     34            ),
     35            array( // Escape link.
    3636                'ABC<div><a href="http://example.com/Mr%20WordPress 2">LINK</a> CONTENT </div>',
    3737                'http://example.com/Mr%20WordPress%202',
    38             ), // escape link
     38            ),
    3939        );
    4040    }
Note: See TracChangeset for help on using the changeset viewer.