Make WordPress Core


Ignore:
Timestamp:
11/25/2025 05:00:39 AM (3 months ago)
Author:
westonruter
Message:

Bundled Themes: Add missing @return tags and descriptions.

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

Props huzaifaalmesbah, sabernhardt, palak678, westonruter.
See #64224.
Fixes #64277.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentytwentyone/inc/template-functions.php

    r60913 r61302  
    1414 *
    1515 * @param array $classes Classes for the body element.
    16  * @return array
     16 * @return string[] Body classes with theme-specific additions.
    1717 */
    1818function twenty_twenty_one_body_classes( $classes ) {
     
    4444 *
    4545 * @param array $classes An array of CSS classes.
    46  * @return array
     46 * @return string[] Post classes with 'entry' class added.
    4747 */
    4848function twenty_twenty_one_post_classes( $classes ) {
     
    9292 *
    9393 * @param array $defaults The form defaults.
    94  * @return array
     94 * @return array Comment form defaults with adjusted textarea height.
    9595 */
    9696function twenty_twenty_one_comment_form_defaults( $defaults ) {
     
    201201 * @param string $icon  The icon.
    202202 * @param int    $size  The icon size in pixels.
    203  * @return string
     203 * @return string SVG code for the requested icon.
    204204 */
    205205function twenty_twenty_one_get_icon_svg( $group, $icon, $size = 24 ) {
     
    213213 *
    214214 * @param string $calendar_output The generated HTML of the calendar.
    215  * @return string
     215 * @return string Calendar HTML with SVG navigation arrows.
    216216 */
    217217function twenty_twenty_one_change_calendar_nav_arrows( $calendar_output ) {
     
    230230 *
    231231 * @param string $type Whether to return CSS for the "front-end", "block-editor", or "classic-editor".
    232  * @return string
     232 * @return string CSS styles for non-Latin languages based on the site locale.
    233233 */
    234234function twenty_twenty_one_get_non_latin_css( $type = 'front-end' ) {
Note: See TracChangeset for help on using the changeset viewer.