Make WordPress Core


Ignore:
Timestamp:
09/10/2019 07:22:07 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Fix placement of some duplicate hook references.

Hook documentation should be on the line directly above the line containing the do_action() or apply_filters() call. The CS auto-fixing, which changed some inconsistent function calls to multi-line function calls, is part of the reason why this was no longer the case for a select group of duplicate hook references.

Includes minor code layout fixes.

See #47110.

File:
1 edited

Legend:

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

    r45932 r46088  
    6060                         * @param int The height and width avatar dimension in pixels. Default 60.
    6161                         */
    62                         echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentyeleven_author_bio_avatar_size', 60 ) );
     62                        $author_bio_avatar_size = apply_filters( 'twentyeleven_author_bio_avatar_size', 60 );
     63                        echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size );
    6364                        ?>
    6465                    </div><!-- #author-avatar -->
Note: See TracChangeset for help on using the changeset viewer.