Make WordPress Core

Changeset 63498


Ignore:
Timestamp:
09/05/2026 10:22:30 AM (4 days ago)
Author:
wildworks
Message:

Bundled Themes: Document the parameters of five template functions.

Adds missing @param/@return tags to five Twenty Nineteen and Twenty Twelve functions.

Developed in: https://github.com/WordPress/wordpress-develop/pull/12792

Props bejignesh, mukesh27, wildworks.
See #65860.

Location:
trunk/src/wp-content/themes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentynineteen/inc/template-tags.php

    r63404 r63498  
    171171        /**
    172172         * Returns the HTML markup to generate a user avatar.
     173         *
     174         * @param mixed $id_or_email Optional. The avatar to retrieve. Accepts a user ID, Gravatar MD5 hash,
     175         *                           user email, WP_User object, WP_Post object, or WP_Comment object.
     176         *                           Default null, which uses the current user ID.
     177         * @return string HTML markup for the user avatar.
    173178         */
    174179        function twentynineteen_get_user_avatar_markup( $id_or_email = null ) {
     
    185190        /**
    186191         * Displays a list of avatars involved in a discussion for a given post.
     192         *
     193         * @param array $comment_authors Comment authors to display avatars for. Each entry is a user ID,
     194         *                               or an email address for authors without an account.
    187195         */
    188196        function twentynineteen_discussion_avatars_list( $comment_authors ) {
     
    204212        /**
    205213         * Displays the comment form.
     214         *
     215         * @param bool|string $order Whether to display the form. Accepts 'asc' or 'desc' to display it only
     216         *                           when the value matches the 'comment_order' option, or true to always
     217         *                           display it.
    206218         */
    207219        function twentynineteen_comment_form( $order ) {
  • trunk/src/wp-content/themes/twentytwelve/functions.php

    r63494 r63498  
    345345 *
    346346 * @since Twenty Twelve 1.0
     347 *
     348 * @param array $args An array of page menu arguments. See wp_page_menu() for information
     349 *                    on accepted arguments.
     350 * @return array Filtered page menu arguments.
    347351 */
    348352function twentytwelve_page_menu_args( $args ) {
     
    423427         *
    424428         * @global WP_Query $wp_query WordPress Query object.
     429         *
     430         * @param string $html_id The HTML id attribute for the navigation element.
    425431         */
    426432        function twentytwelve_content_nav( $html_id ) {
Note: See TracChangeset for help on using the changeset viewer.