Make WordPress Core


Ignore:
Timestamp:
01/29/2020 12:43:23 AM (5 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/twentyten/functions.php

    r46117 r47122  
    2828 * add_action( 'after_setup_theme', 'my_child_theme_setup' );
    2929 * function my_child_theme_setup() {
    30  *     // We are providing our own filter for excerpt_length (or using the unfiltered value)
     30 *     // We are providing our own filter for excerpt_length (or using the unfiltered value).
    3131 *     remove_filter( 'excerpt_length', 'twentyten_excerpt_length' );
    3232 *     ...
     
    120120        add_theme_support( 'post-formats', array( 'aside', 'gallery' ) );
    121121
    122         // This theme uses post thumbnails
     122        // This theme uses post thumbnails.
    123123        add_theme_support( 'post-thumbnails' );
    124124
    125         // Add default posts and comments RSS feed links to head
     125        // Add default posts and comments RSS feed links to head.
    126126        add_theme_support( 'automatic-feed-links' );
    127127
    128128        /*
    129129         * Make theme available for translation.
    130          * Translations can be filed in the /languages/ directory
     130         * Translations can be filed in the /languages/ directory.
    131131         */
    132132        load_theme_textdomain( 'twentyten', get_template_directory() . '/languages' );
     
    201201        set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true );
    202202
    203         // ... and thus ends the custom header business.
     203        // ...and thus ends the custom header business.
    204204
    205205        // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI.
     
    395395    return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css );
    396396}
    397 // Backwards compatibility with WordPress 3.0.
     397// Backward compatibility with WordPress 3.0.
    398398if ( version_compare( $GLOBALS['wp_version'], '3.1', '<' ) ) {
    399399    add_filter( 'gallery_style', 'twentyten_remove_gallery_css' );
     
    741741     * Fire the wp_body_open action.
    742742     *
    743      * Added for backwards compatibility to support pre 5.2.0 WordPress versions.
     743     * Added for backward compatibility to support pre-5.2.0 WordPress versions.
    744744     *
    745745     * @since Twenty Ten 2.9
Note: See TracChangeset for help on using the changeset viewer.