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/src/wp-content/themes/twentyten/header.php

    r45932 r47122  
    8787                                }
    8888
    89                                 // Check if this is a post or page, if it has a thumbnail, and if it's a big one
     89                                // Check if this is a post or page, if it has a thumbnail, and if it's a big one.
    9090                                if ( is_singular() && has_post_thumbnail( $post->ID ) ) {
    9191                                        $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( $header_image_width, $header_image_width ) );
     
    106106                                        <img src="<?php header_image(); ?>" width="<?php echo esc_attr( $header_image_width ); ?>" height="<?php echo esc_attr( $header_image_height ); ?>" alt="" />
    107107                                        <?php
    108                                 } // end check for featured image or standard header
     108                                } // End check for featured image or standard header.
    109109                                ?>
    110110                        </div><!-- #branding -->
    111111
    112112                        <div id="access" role="navigation">
    113                                 <?php /* Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff */ ?>
     113                                <?php // Allow screen readers / text browsers to skip the navigation menu and get right to the good stuff. ?>
    114114                                <div class="skip-link screen-reader-text"><a href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentyten' ); ?>"><?php _e( 'Skip to content', 'twentyten' ); ?></a></div>
    115                                 <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assiged to the primary position is the one used. If none is assigned, the menu with the lowest ID is used. */ ?>
    116115                                <?php
     116                                /*
     117                                 * Our navigation menu. If one isn't filled out, wp_nav_menu() falls back to wp_page_menu().
     118                                 * The menu assigned to the primary location is the one used.
     119                                 * If one isn't assigned, the menu with the lowest ID is used.
     120                                 */
    117121                                wp_nav_menu(
    118122                                        array(
Note: See TracChangeset for help on using the changeset viewer.