Skip to content

use add_feed #11

@pbearne

Description

@pbearne

Why don't you use the add_feed() function instead of the custom sniff

$has_markdown_type = $has_accept_header && 1 === preg_match( '~^text/(?:x-)?markdown(?:;|$)~', $_SERVER['HTTP_ACCEPT'] );

I believe it will do all the heavy lifting
See my core patch WordPress/wordpress-develop#10599

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions