Permalink
Browse files

Debug Warnings / class-feed.php has been deprecated in WordPress 4.7.

  • Loading branch information...
1 parent 4f98470 commit 0c5336abfac05903e8d82e4f7c1e7a1c9482f0de Rad Geek committed Dec 10, 2016
Showing with 8 additions and 2 deletions.
  1. +3 −1 feedwordpress-content-type-sniffer.class.php
  2. +5 −1 feedwordpress.php
@@ -1,5 +1,7 @@
<?php
-require_once(ABSPATH . WPINC . '/class-feed.php');
+if (!class_exists('SimplePie_Content_Type_Sniffer')) :
+ require_once(ABSPATH . WPINC . '/class-simplepie.php');
+endif;
class FeedWordPress_Content_Type_Sniffer extends SimplePie_Content_Type_Sniffer {
/**
View
@@ -96,7 +96,11 @@
if (!class_exists('SimplePie')) :
require_once(ABSPATH . WPINC . '/class-simplepie.php');
endif;
-require_once(ABSPATH . WPINC . '/class-feed.php');
+
+require_once( ABSPATH . WPINC . '/class-wp-feed-cache.php' );
+require_once( ABSPATH . WPINC . '/class-wp-feed-cache-transient.php' );
+require_once( ABSPATH . WPINC . '/class-wp-simplepie-file.php' );
+require_once( ABSPATH . WPINC . '/class-wp-simplepie-sanitize-kses.php' );
if (!function_exists('wp_insert_user')) :
require_once (ABSPATH . WPINC . '/registration.php'); // for wp_insert_user

0 comments on commit 0c5336a

Please sign in to comment.