WordPressにはMagpieRSSとSimplePieという2種類のRSS(XML)パーサーが入っている。
このMagpieRSSとSimplePieの違いは何だろうかと、まずMagpierssの/wp-includes/rss.phpを開いてみたら、「MagpieRSSは非推奨なのでSimplePieを使え」と書いてあった。
16 /**
17 * Deprecated. Use SimplePie (class-simplepie.php) instead.
18 */(非推奨、代わりにSimplePieを使用してください。)
過去のバージョンのWordPressのrss.phpソースコードを確認したところ、WordPress3.0(2010年)からMagpieRSSに非推奨と書かれていた。
WordPress2.9.2のMagpieRSS
WordPress.org
Blog Tool and Publishing Platform
WordPress3.0のMagpieRSS
15 /**
16 * Deprecated. Use SimplePie (class-simplepie.php) instead.
17 */
WordPress.org
Blog Tool and Publishing Platform
MagpieRSSとSimplePieのどちらを使えばいいのだろうかと思ったけど、そもそもMagpieRSSは使うな、SimplePieを使えということだった。これで悩まないで済む。
SimplePie
SimplePieはSimplePieで最終更新が2017年で止まっていて、PHP7.3でエラー表示というか警告表示が出るみたいだけど。
503 Service Unavailable


コメント