Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (4 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/EscHtml.php

    r46586 r47122  
    66class Tests_Formatting_EscHtml extends WP_UnitTestCase {
    77    function test_esc_html_basics() {
    8         // Simple string
     8        // Simple string.
    99        $html = 'The quick brown fox.';
    1010        $this->assertEquals( $html, esc_html( $html ) );
    1111
    12         // URL with &
     12        // URL with &.
    1313        $html    = 'http://localhost/trunk/wp-login.php?action=logout&_wpnonce=cd57d75985';
    1414        $escaped = 'http://localhost/trunk/wp-login.php?action=logout&_wpnonce=cd57d75985';
    1515        $this->assertEquals( $escaped, esc_html( $html ) );
    1616
    17         // SQL query
     17        // SQL query.
    1818        $html    = "SELECT meta_key, meta_value FROM wp_trunk_sitemeta WHERE meta_key IN ('site_name', 'siteurl', 'active_sitewide_plugins', '_site_transient_timeout_theme_roots', '_site_transient_theme_roots', 'site_admins', 'can_compress_scripts', 'global_terms_enabled') AND site_id = 1";
    1919        $escaped = 'SELECT meta_key, meta_value FROM wp_trunk_sitemeta WHERE meta_key IN ('site_name', 'siteurl', 'active_sitewide_plugins', '_site_transient_timeout_theme_roots', '_site_transient_theme_roots', 'site_admins', 'can_compress_scripts', 'global_terms_enabled') AND site_id = 1';
Note: See TracChangeset for help on using the changeset viewer.