diff --git a/disable-feeds.php b/disable-feeds.php index 79886ba..2248cce 100644 --- a/disable-feeds.php +++ b/disable-feeds.php @@ -1,12 +1,13 @@ redirect_status(); - echo '
The Disable Feeds plugin is active, By default, all feeds are disabled, and all requests for feeds are redirected to the corresponding HTML content. You can tweak this behaviour below.
'; - echo 'allow_main(), true, false ) . '/>
'; + echo '' . __('The Disable Feeds plugin is active, By default, all feeds are disabled, and all requests for feeds are redirected to the corresponding HTML content. You can tweak this behaviour below.', 'disable-feeds') . '
'; + echo '';
+ echo '
allow_main(), true, false ) . '/>
'; } function remove_links() { @@ -135,6 +143,8 @@ private function redirect_feed() { $wp_query->is_feed = false; $wp_query->set_404(); status_header( 404 ); + // Override the xml+rss header set by WP in send_headers + header( 'Content-Type: ' . get_option('html_type') . '; charset=' . get_option('blog_charset') ); } } @@ -153,4 +163,4 @@ private function allow_main() { } } -Disable_Feeds::get_instance(); \ No newline at end of file +Disable_Feeds::get_instance(); diff --git a/readme.txt b/readme.txt index 18b153c..f6ed1dd 100644 --- a/readme.txt +++ b/readme.txt @@ -1,8 +1,8 @@ === Disable Feeds === Contributors: solarissmoke Tags: disable, rss, atom, rdf, feeds -Requires at least: 3.6 -Tested up to: 4.2 +Requires at least: 4.0 +Tested up to: 4.9 Stable tag: trunk Disables all RSS/Atom/RDF feeds on your WordPress site. @@ -37,6 +37,12 @@ In `Settings -> Reading` you will find an option to allow global feeds. All othe == Changelog == += 1.4.4 = +* Add translation support. + += 1.4.3 = +* Compatiblity for for WP 3.6 when feed URLs are set to return a 404 response. + = 1.4.2 = * Fix potential security issue when redirecting feeds.