WordPress.org

Make WordPress Core

Changeset 13144


Ignore:
Timestamp:
02/14/2010 08:07:55 AM (8 years ago)
Author:
nacin
Message:

Use automatic_feed_links() in twentyten, see #9015

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

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/functions.php

    r13129 r13144  
    3737// so we want them to be 940 pixels wide by 198 pixels tall (larger images will be auto-cropped to fit)
    3838set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true );
     39
     40// Add default posts and comments RSS feed links to head.
     41automatic_feed_links();
    3942
    4043// Make theme available for translation
  • trunk/wp-content/themes/twentyten/header.php

    r13141 r13144  
    2828    <?php wp_head(); ?>
    2929
    30     <link rel="alternate" type="application/rss+xml" href="<?php bloginfo( 'rss2_url' ); ?>" title="<?php printf( esc_attr__( '%s latest posts', 'twentyten' ), esc_html( get_bloginfo('name') ) ); ?>" />
    31     <link rel="alternate" type="application/rss+xml" href="<?php bloginfo( 'comments_rss2_url' ); ?>" title="<?php printf( esc_attr__( '%s latest comments', 'twentyten' ), esc_html( get_bloginfo('name') ) ); ?>" />
    3230    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    3331</head>
Note: See TracChangeset for help on using the changeset viewer.