]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-includes/feed.php
WordPress 4.5.1
[autoinstalls/wordpress.git] / wp-includes / feed.php
index 4842c6e1a2ed4404925f904aa0d81dcf16749f8e..7b1f30c78a4928a3ad29f0a39bf055f10f5e60b4 100644 (file)
@@ -622,17 +622,19 @@ function self_link() {
  * Return the content type for specified feed type.
  *
  * @since 2.8.0
+ *
+ * @param string $type Type of feed. Possible values include 'rss', rss2', 'atom', and 'rdf'.
  */
 function feed_content_type( $type = '' ) {
        if ( empty($type) )
                $type = get_default_feed();
 
        $types = array(
-               'rss'  => 'application/rss+xml',
-               'rss2' => 'application/rss+xml',
-               'rss-http'  => 'text/xml',
-               'atom' => 'application/atom+xml',
-               'rdf'  => 'application/rdf+xml'
+               'rss'      => 'application/rss+xml',
+               'rss2'     => 'application/rss+xml',
+               'rss-http' => 'text/xml',
+               'atom'     => 'application/atom+xml',
+               'rdf'      => 'application/rdf+xml'
        );
 
        $content_type = ( !empty($types[$type]) ) ? $types[$type] : 'application/octet-stream';
@@ -643,8 +645,7 @@ function feed_content_type( $type = '' ) {
         * @since 2.8.0
         *
         * @param string $content_type Content type indicating the type of data that a feed contains.
-        * @param string $type         Type of feed. Possible values include 'rss2', 'atom'.
-        *                             Default 'rss2'.
+        * @param string $type         Type of feed. Possible values include 'rss', rss2', 'atom', and 'rdf'.
         */
        return apply_filters( 'feed_content_type', $content_type, $type );
 }