Make WordPress Core


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

    r46586 r47122  
    11<?php
    22/**
    3  * Testing ajax response class
     3 * Testing Ajax response class
    44 *
    55 * @package    WordPress
    … …  
    2727                add_filter( 'wp_doing_ajax', '__return_true' );
    2828
    29                 // Suppress warnings from "Cannot modify header information - headers already sent by"
     29                // Suppress warnings from "Cannot modify header information - headers already sent by".
    3030                $this->_error_level = error_reporting();
    3131                error_reporting( $this->_error_level & ~E_WARNING );
    … …  
    7878                }
    7979
    80                 // Generate an ajax response
     80                // Generate an Ajax response.
    8181                ob_start();
    8282                $ajax_response = new WP_Ajax_Response();
    8383                $ajax_response->send();
    8484
    85                 // Check the header
     85                // Check the header.
    8686                $headers = xdebug_get_headers();
    8787                ob_end_clean();
    … …  
    9797        public function test_response_charset_in_xml() {
    9898
    99                 // Generate an ajax response
     99                // Generate an Ajax response.
    100100                ob_start();
    101101                $ajax_response = new WP_Ajax_Response();
    102102                $ajax_response->send();
    103103
    104                 // Check the XML tag
     104                // Check the XML tag.
    105105                $contents = ob_get_clean();
    106106                $this->assertRegExp( '/<\?xml\s+version=\'1.0\'\s+encoding=\'' . preg_quote( get_option( 'blog_charset' ) ) . '\'\s+standalone=\'yes\'\?>/', $contents );
Note: See TracChangeset for help on using the changeset viewer.