Ticket #12364: 12364.patch
| File 12364.patch, 5.4 KB (added by Viper007Bond, 3 years ago) |
|---|
-
wp-content/themes/classic/functions.php
4 4 * @subpackage Classic_Theme 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') ) 10 10 register_sidebar(array( -
wp-content/themes/default/functions.php
6 6 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') ) { 12 12 register_sidebar(array( -
wp-content/themes/twentyten/functions.php
2 2 3 3 // Set the content width based on the Theme CSS 4 4 if ( ! isset( $content_width ) ) 5 $content_width = 640;5 $content_width = 640; 6 6 7 7 if ( ! function_exists( 'twentyten_init' ) ) : 8 8 function twentyten_init() { … … 26 26 // so we want them to be 940 pixels wide by 198 pixels tall (larger images will be auto-cropped to fit) 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 33 33 // Translations can be filed in the /languages/ directory -
wp-includes/default-filters.php
168 168 add_filter( 'atom_service_url','atom_service_url_filter' ); 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' ); 175 176 add_action( 'wp_head', 'index_rel_link' ); … … 178 179 add_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 ); 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' ); 186 187 add_action( 'wp_footer', 'wp_print_footer_scripts' ); -
wp-includes/deprecated.php
2411 2411 do_action( 'updated_usermeta', $cur->umeta_id, $user_id, $meta_key, $meta_value ); 2412 2412 2413 2413 return true; 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' ); 2414 2426 } 2427 No newline at end of file -
wp-includes/general-template.php
1562 1562 } 1563 1563 1564 1564 /** 1565 * Enable/disable automatic general feed link outputting.1566 *1567 * @since 2.8.01568 *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 1565 * Display the links to the general feeds. 1582 1566 * 1583 1567 * @since 2.8.0 … … 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 */ 1590 1577 'separator' => _x('»', 'feed link'),
