Changeset 47122 for trunk/src/wp-content/themes/twentyten/functions.php
- Timestamp:
- 01/29/2020 12:43:23 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyten/functions.php
r46117 r47122 28 28 * add_action( 'after_setup_theme', 'my_child_theme_setup' ); 29 29 * 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). 31 31 * remove_filter( 'excerpt_length', 'twentyten_excerpt_length' ); 32 32 * ... … … 120 120 add_theme_support( 'post-formats', array( 'aside', 'gallery' ) ); 121 121 122 // This theme uses post thumbnails 122 // This theme uses post thumbnails. 123 123 add_theme_support( 'post-thumbnails' ); 124 124 125 // Add default posts and comments RSS feed links to head 125 // Add default posts and comments RSS feed links to head. 126 126 add_theme_support( 'automatic-feed-links' ); 127 127 128 128 /* 129 129 * Make theme available for translation. 130 * Translations can be filed in the /languages/ directory 130 * Translations can be filed in the /languages/ directory. 131 131 */ 132 132 load_theme_textdomain( 'twentyten', get_template_directory() . '/languages' ); … … 201 201 set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true ); 202 202 203 // ... 203 // ...and thus ends the custom header business. 204 204 205 205 // Default custom headers packaged with the theme. %s is a placeholder for the theme template directory URI. … … 395 395 return preg_replace( "#<style type='text/css'>(.*?)</style>#s", '', $css ); 396 396 } 397 // Backward scompatibility with WordPress 3.0.397 // Backward compatibility with WordPress 3.0. 398 398 if ( version_compare( $GLOBALS['wp_version'], '3.1', '<' ) ) { 399 399 add_filter( 'gallery_style', 'twentyten_remove_gallery_css' ); … … 741 741 * Fire the wp_body_open action. 742 742 * 743 * Added for backward s compatibility to support pre5.2.0 WordPress versions.743 * Added for backward compatibility to support pre-5.2.0 WordPress versions. 744 744 * 745 745 * @since Twenty Ten 2.9
Note: See TracChangeset
for help on using the changeset viewer.