WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (15 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/src/wp-content/themes/twentytwenty/inc/template-tags.php

    r46832 r47122  
    8282    }
    8383
    84     echo $html; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     84    echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    8585
    8686}
     
    119119    }
    120120
    121     echo $html; //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
     121    echo $html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
    122122}
    123123
     
    179179function twentytwenty_the_post_meta( $post_id = null, $location = 'single-top' ) {
    180180
    181     echo twentytwenty_get_post_meta( $post_id, $location ); //phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in twentytwenty_get_post_meta().
     181    echo twentytwenty_get_post_meta( $post_id, $location ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Escaped in twentytwenty_get_post_meta().
    182182
    183183}
     
    351351                            <?php
    352352                            printf(
    353                                 /* translators: %s: Author name */
     353                                /* translators: %s: Author name. */
    354354                                __( 'By %s', 'twentytwenty' ),
    355355                                '<a href="' . esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ) . '">' . esc_html( get_the_author_meta( 'display_name' ) ) . '</a>'
Note: See TracChangeset for help on using the changeset viewer.