Make WordPress Core


Ignore:
Timestamp:
09/25/2013 05:03:34 PM (11 years ago)
Author:
lancewillett
Message:

Twenty Ten: update code comments to reflect WP inline docs standards. Props DrewAPicture, closes #25256.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyten/author.php

    r15226 r25627  
    11<?php
    22/**
    3  * The template for displaying Author Archive pages.
     3 * Template for displaying Author Archive pages
    44 *
    55 * @package WordPress
     
    1414
    1515<?php
    16     /* Queue the first post, that way we know who
     16    /**
     17     * Queue the first post, that way we know who
    1718     * the author is when we try to get their name,
    1819     * URL, description, avatar, etc.
     
    3233                    <div id="entry-author-info">
    3334                        <div id="author-avatar">
    34                             <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) ); ?>
     35                            <?php
     36                            /**
     37                             * Filter the Twenty Ten author bio avatar size.
     38                             *
     39                             * @since Twenty Ten 1.0
     40                             *
     41                             * @param int The height and width avatar dimensions in pixels. Default 60.
     42                             */
     43                            echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyten_author_bio_avatar_size', 60 ) );
     44                            ?>
    3545                        </div><!-- #author-avatar -->
    3646                        <div id="author-description">
     
    4252
    4353<?php
    44     /* Since we called the_post() above, we need to
     54    /**
     55     * Since we called the_post() above, we need to
    4556     * rewind the loop back to the beginning that way
    4657     * we can run the loop properly, in full.
     
    4859    rewind_posts();
    4960
    50     /* Run the loop for the author archive page to output the authors posts
     61    /**
     62     * Run the loop for the author archive page to output the authors posts
    5163     * If you want to overload this in a child theme then include a file
    5264     * called loop-author.php and that will be used instead.
Note: See TracChangeset for help on using the changeset viewer.