Skip to:
Content

bbPress.org

Changeset 2055


Ignore:
Timestamp:
04/17/2009 10:44:04 AM (17 years ago)
Author:
sambauers
Message:

Add generator to head. Functions snuck through in [2054].

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/defaults.bb-filters.php

    r1935 r2055  
    130130// Actions
    131131
     132add_action( 'bb_head', 'bb_generator' );
    132133add_action('bb_head', 'bb_template_scripts');
    133134add_action('bb_head', 'wp_print_scripts');
  • trunk/bb-templates/kakumei/rss2.php

    r1791 r2055  
    1 <?php header('Content-Type: text/xml; charset=UTF-8'); ?>
    2 <?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
    3 <!-- generator="bbPress" -->
     1<?php
     2header( 'Content-Type: text/xml; charset=UTF-8' );
     3echo '<' . '?xml version="1.0" encoding="UTF-8"?' . '>' . "/n";
     4bb_generator( 'comment' );
     5?>
    46<rss version="2.0"
    57    xmlns:content="http://purl.org/rss/1.0/modules/content/"
    68    xmlns:dc="http://purl.org/dc/elements/1.1/"
    7     xmlns:atom="http://www.w3.org/2005/Atom"
    8 >
     9    xmlns:atom="http://www.w3.org/2005/Atom">
    910    <channel>
    1011        <title><?php echo $title; ?></title>
     
    1314        <language><?php wp_specialchars( bb_option('language') ); ?></language>
    1415        <pubDate><?php echo gmdate('D, d M Y H:i:s +0000'); ?></pubDate>
    15         <generator>bbpress <?php bb_option('version'); ?></generator>
     16        <?php bb_generator( 'rss2' ); ?>
    1617        <textInput>
    1718            <title><![CDATA[<?php _e('Search'); ?>]]></title>
Note: See TracChangeset for help on using the changeset viewer.