Changeset 13398 for trunk/wp-includes/general-template.php
- Timestamp:
- 02/25/2010 08:56:19 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.