Changeset 13398
- Timestamp:
- 02/25/2010 08:56:19 AM (15 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-content/themes/classic/functions.php
r10377 r13398 5 5 */ 6 6 7 a utomatic_feed_links();7 add_theme_support( 'automatic-feed-links' ); 8 8 9 9 if ( function_exists('register_sidebar') ) -
trunk/wp-content/themes/default/functions.php
r12546 r13398 7 7 $content_width = 450; 8 8 9 a utomatic_feed_links();9 add_theme_support( 'automatic-feed-links' ); 10 10 11 11 if ( function_exists('register_sidebar') ) { -
trunk/wp-content/themes/twentyten/functions.php
r13214 r13398 3 3 // Set the content width based on the Theme CSS 4 4 if ( ! isset( $content_width ) ) 5 5 $content_width = 640; 6 6 7 7 if ( ! function_exists( 'twentyten_init' ) ) : … … 27 27 set_post_thumbnail_size( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT, true ); 28 28 29 // Add default posts and comments RSS feed links to head .30 a utomatic_feed_links();29 // Add default posts and comments RSS feed links to head 30 add_theme_support( 'automatic-feed-links' ); 31 31 32 32 // Make theme available for translation -
trunk/wp-includes/default-filters.php
r13113 r13398 169 169 170 170 // Actions 171 add_action( 'wp_head', 'wp_enqueue_scripts', 1 ); 172 add_action( 'wp_head', 'feed_links_extra', 3 ); 171 add_action( 'wp_head', 'wp_enqueue_scripts', 1 ); 172 add_action( 'wp_head', 'feed_links', 3 ); 173 add_action( 'wp_head', 'feed_links_extra', 3 ); 173 174 add_action( 'wp_head', 'rsd_link' ); 174 175 add_action( 'wp_head', 'wlwmanifest_link' ); … … 179 180 add_action( 'wp_head', 'locale_stylesheet' ); 180 181 add_action( 'publish_future_post', 'check_and_publish_future_post', 10, 1 ); 181 add_action( 'wp_head', 'noindex', 1);182 add_action( 'wp_head', 'wp_print_styles', 8);183 add_action( 'wp_head', 'wp_print_head_scripts', 9);182 add_action( 'wp_head', 'noindex', 1 ); 183 add_action( 'wp_head', 'wp_print_styles', 8 ); 184 add_action( 'wp_head', 'wp_print_head_scripts', 9 ); 184 185 add_action( 'wp_head', 'wp_generator' ); 185 186 add_action( 'wp_head', 'rel_canonical' ); -
trunk/wp-includes/deprecated.php
r13382 r13398 2413 2413 return true; 2414 2414 } 2415 2416 /** 2417 * Enable automatic general feed link outputting. 2418 * 2419 * @since 2.8.0 2420 * @deprecated 3.0.0 2421 * @deprecated Use add_theme_support( 'automatic-feed-links' ) 2422 */ 2423 function automatic_feed_links() { 2424 _deprecated_function( __FUNCTION__, '3.0', "add_theme_support( 'automatic-feed-links' )" ); 2425 add_theme_support( 'automatic-feed-links' ); 2426 } -
trunk/wp-includes/general-template.php
r13382 r13398 1563 1563 1564 1564 /** 1565 * Enable/disable automatic general feed link outputting.1565 * Display the links to the general feeds. 1566 1566 * 1567 1567 * @since 2.8.0 1568 1568 * 1569 * @param boolean $add Optional, default is true. Add or remove links. Defaults to true.1570 */1571 function automatic_feed_links( $add = true ) {1572 if ( $add )1573 add_action( 'wp_head', 'feed_links', 2 );1574 else {1575 remove_action( 'wp_head', 'feed_links', 2 );1576 remove_action( 'wp_head', 'feed_links_extra', 3 );1577 }1578 }1579 1580 /**1581 * Display the links to the general feeds.1582 *1583 * @since 2.8.01584 *1585 1569 * @param array $args Optional arguments. 1586 1570 */ 1587 1571 function feed_links( $args = array() ) { 1572 if ( !current_theme_supports('automatic-feed-links') ) 1573 return; 1574 1588 1575 $defaults = array( 1589 1576 /* translators: Separator between blog name and feed type in feed links */
Note: See TracChangeset
for help on using the changeset viewer.