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/meta/slashes.php

    r46586 r47122  
    3232
    3333    /**
    34      * Tests the controller function that expects slashed data
     34     * Tests the controller function that expects slashed data.
    3535     */
    3636    function test_edit_post() {
     
    4141            $meta_3 = wp_add_post_meta( $id, 'slash_test_3', 'foo' );
    4242        } else {
    43             // expects slashed data
     43            // Expects slashed data.
    4444            $meta_1 = add_post_meta( $id, 'slash_test_1', addslashes( 'foo' ) );
    4545            $meta_2 = add_post_meta( $id, 'slash_test_2', addslashes( 'foo' ) );
     
    6666            ),
    6767        );
    68         $_POST                  = add_magic_quotes( $_POST ); // the edit_post() function will strip slashes
     68
     69        $_POST = add_magic_quotes( $_POST ); // The edit_post() function will strip slashes.
    6970
    7071        edit_post();
     
    9596            ),
    9697        );
    97         $_POST                  = add_magic_quotes( $_POST ); // the edit_post() function will strip slashes
     98
     99        $_POST = add_magic_quotes( $_POST ); // The edit_post() function will strip slashes.
    98100
    99101        edit_post();
     
    106108
    107109    /**
    108      * Tests the legacy model function that expects slashed data
     110     * Tests the legacy model function that expects slashed data.
    109111     */
    110112    function test_add_post_meta() {
     
    120122
    121123    /**
    122      * Tests the legacy model function that expects slashed data
     124     * Tests the legacy model function that expects slashed data.
    123125     */
    124126    function test_update_post_meta() {
     
    134136
    135137    /**
    136      * Tests the model function that expects slashed data
     138     * Tests the model function that expects slashed data.
    137139     */
    138140    function test_add_comment_meta() {
     
    157159
    158160    /**
    159      * Tests the model function that expects slashed data
     161     * Tests the model function that expects slashed data.
    160162     */
    161163    function test_update_comment_meta() {
     
    184186
    185187    /**
    186      * Tests the model function that expects slashed data
     188     * Tests the model function that expects slashed data.
    187189     */
    188190    function test_add_user_meta() {
     
    207209
    208210    /**
    209      * Tests the model function that expects slashed data
     211     * Tests the model function that expects slashed data.
    210212     */
    211213    function test_update_user_meta() {
Note: See TracChangeset for help on using the changeset viewer.