WordPress.org

Make WordPress Core


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

    r46586 r47122  
    102102        wp_mail( $to, $subject, $message, $headers );
    103103
    104         // WordPress 3.2 and later correctly split the address into the two parts and send them seperately to PHPMailer
     104        // WordPress 3.2 and later correctly split the address into the two parts and send them separately to PHPMailer.
    105105        // Earlier versions of PHPMailer were not touchy about the formatting of these arguments.
    106106
    107         //retrieve the mailer instance
     107        // Retrieve the mailer instance.
    108108        $mailer = tests_retrieve_phpmailer_instance();
    109109        $this->assertEquals( 'address@tld.com', $mailer->get_recipient( 'to' )->address );
     
    126126        wp_mail( $to, $subject, $message );
    127127
    128         // WordPress 3.2 and later correctly split the address into the two parts and send them seperately to PHPMailer
     128        // WordPress 3.2 and later correctly split the address into the two parts and send them separately to PHPMailer.
    129129        // Earlier versions of PHPMailer were not touchy about the formatting of these arguments.
    130130        $mailer = tests_retrieve_phpmailer_instance();
     
    168168     */
    169169    function test_wp_mail_return_value() {
    170         // No errors
     170        // No errors.
    171171        $this->assertTrue( wp_mail( 'valid@address.com', 'subject', 'body' ) );
    172172
    173         // Non-fatal errors
     173        // Non-fatal errors.
    174174        $this->assertTrue( wp_mail( 'valid@address.com', 'subject', 'body', "Cc: invalid-address\nBcc: @invalid.address", ABSPATH . '/non-existant-file.html' ) );
    175175
    176         // Fatal errors
     176        // Fatal errors.
    177177        $this->assertFalse( wp_mail( 'invalid.address', 'subject', 'body', '', array() ) );
    178178    }
     
    401401        );
    402402
    403         //Retrieve the arguments passed to the 'wp_mail_failed' hook callbacks
     403        // Retrieve the arguments passed to the 'wp_mail_failed' hook callbacks.
    404404        $all_args  = $ma->get_args();
    405405        $call_args = array_pop( $all_args );
Note: See TracChangeset for help on using the changeset viewer.