Make WordPress Core


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

    r46195 r47122  
    8484
    8585            <?php
    86                 // Check to see if the header image has been removed
     86                // Check to see if the header image has been removed.
    8787                $header_image = get_header_image();
    8888            if ( $header_image ) :
     
    122122                    <img src="<?php header_image(); ?>" width="<?php echo esc_attr( $header_image_width ); ?>" height="<?php echo esc_attr( $header_image_height ); ?>" alt="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" />
    123123                    <?php
    124                 } // end check for featured image or standard header
     124                } // End check for featured image or standard header.
    125125                ?>
    126126            </a>
    127             <?php endif; // end check for removed header image ?>
     127            <?php endif; // End check for removed header image. ?>
    128128
    129129            <?php
     
    146146            <nav id="access" role="navigation">
    147147                <h3 class="assistive-text"><?php _e( 'Main menu', 'twentyeleven' ); ?></h3>
    148                 <?php /* Our navigation menu. If one isn't filled out, wp_nav_menu falls back to wp_page_menu. The menu assigned to the primary location is the one used. If one isn't assigned, the menu with the lowest ID is used. */ ?>
    149                 <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?>
     148                <?php
     149                /*
     150                 * Our navigation menu. If one isn't filled out, wp_nav_menu() falls back to wp_page_menu().
     151                 * The menu assigned to the primary location is the one used.
     152                 * If one isn't assigned, the menu with the lowest ID is used.
     153                 */
     154                wp_nav_menu( array( 'theme_location' => 'primary' ) );
     155                ?>
    150156            </nav><!-- #access -->
    151157    </header><!-- #branding -->
Note: See TracChangeset for help on using the changeset viewer.