| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yoast\WP\SEO\Config; |
| 4 |
|
| 5 |
/** |
| 6 |
* Conflicting_Plugins class that holds all known conflicting plugins. |
| 7 |
*/ |
| 8 |
class Conflicting_Plugins { |
| 9 |
|
| 10 |
public const OPEN_GRAPH_PLUGINS = [ |
| 11 |
'2-click-socialmedia-buttons/2-click-socialmedia-buttons.php', |
| 12 |
// 2 Click Social Media Buttons. |
| 13 |
'add-link-to-facebook/add-link-to-facebook.php', // Add Link to Facebook. |
| 14 |
'add-meta-tags/add-meta-tags.php', // Add Meta Tags. |
| 15 |
'easy-facebook-share-thumbnails/esft.php', // Easy Facebook Share Thumbnail. |
| 16 |
'facebook/facebook.php', // Facebook (official plugin). |
| 17 |
'facebook-awd/AWD_facebook.php', // Facebook AWD All in one. |
| 18 |
'facebook-featured-image-and-open-graph-meta-tags/fb-featured-image.php', |
| 19 |
// Facebook Featured Image & OG Meta Tags. |
| 20 |
'facebook-meta-tags/facebook-metatags.php', // Facebook Meta Tags. |
| 21 |
'wonderm00ns-simple-facebook-open-graph-tags/wonderm00n-open-graph.php', |
| 22 |
// Facebook Open Graph Meta Tags for WordPress. |
| 23 |
'facebook-revised-open-graph-meta-tag/index.php', // Facebook Revised Open Graph Meta Tag. |
| 24 |
'facebook-thumb-fixer/_facebook-thumb-fixer.php', // Facebook Thumb Fixer. |
| 25 |
'facebook-and-digg-thumbnail-generator/facebook-and-digg-thumbnail-generator.php', |
| 26 |
// Fedmich's Facebook Open Graph Meta. |
| 27 |
'network-publisher/networkpub.php', // Network Publisher. |
| 28 |
'nextgen-facebook/nextgen-facebook.php', // NextGEN Facebook OG. |
| 29 |
'opengraph/opengraph.php', // Open Graph. |
| 30 |
'open-graph-protocol-framework/open-graph-protocol-framework.php', |
| 31 |
// Open Graph Protocol Framework. |
| 32 |
'seo-facebook-comments/seofacebook.php', // SEO Facebook Comments. |
| 33 |
'sexybookmarks/sexy-bookmarks.php', // Shareaholic. |
| 34 |
'shareaholic/sexy-bookmarks.php', // Shareaholic. |
| 35 |
'sharepress/sharepress.php', // SharePress. |
| 36 |
'simple-facebook-connect/sfc.php', // Simple Facebook Connect. |
| 37 |
'social-discussions/social-discussions.php', // Social Discussions. |
| 38 |
'social-sharing-toolkit/social_sharing_toolkit.php', // Social Sharing Toolkit. |
| 39 |
'socialize/socialize.php', // Socialize. |
| 40 |
'only-tweet-like-share-and-google-1/tweet-like-plusone.php', |
| 41 |
// Tweet, Like, Google +1 and Share. |
| 42 |
'wordbooker/wordbooker.php', // Wordbooker. |
| 43 |
'wpsso/wpsso.php', // WordPress Social Sharing Optimization. |
| 44 |
'wp-caregiver/wp-caregiver.php', // WP Caregiver. |
| 45 |
'wp-facebook-like-send-open-graph-meta/wp-facebook-like-send-open-graph-meta.php', |
| 46 |
// WP Facebook Like Send & Open Graph Meta. |
| 47 |
'wp-facebook-open-graph-protocol/wp-facebook-ogp.php', // WP Facebook Open Graph protocol. |
| 48 |
'wp-ogp/wp-ogp.php', // WP-OGP. |
| 49 |
'zoltonorg-social-plugin/zosp.php', // Zolton.org Social Plugin. |
| 50 |
]; |
| 51 |
|
| 52 |
public const XML_SITEMAPS_PLUGINS = [ |
| 53 |
'google-sitemap-plugin/google-sitemap-plugin.php', |
| 54 |
// Google Sitemap (BestWebSoft). |
| 55 |
'xml-sitemaps/xml-sitemaps.php', |
| 56 |
// XML Sitemaps (Denis de Bernardy and Mike Koepke). |
| 57 |
'bwp-google-xml-sitemaps/bwp-simple-gxs.php', |
| 58 |
// Better WordPress Google XML Sitemaps (Khang Minh). |
| 59 |
'google-sitemap-generator/sitemap.php', |
| 60 |
// Google XML Sitemaps (Arne Brachhold). |
| 61 |
'xml-sitemap-feed/xml-sitemap.php', |
| 62 |
// XML Sitemap & Google News feeds (RavanH). |
| 63 |
'google-monthly-xml-sitemap/monthly-xml-sitemap.php', |
| 64 |
// Google Monthly XML Sitemap (Andrea Pernici). |
| 65 |
'simple-google-sitemap-xml/simple-google-sitemap-xml.php', |
| 66 |
// Simple Google Sitemap XML (iTx Technologies). |
| 67 |
'another-simple-xml-sitemap/another-simple-xml-sitemap.php', |
| 68 |
// Another Simple XML Sitemap. |
| 69 |
'xml-maps/google-sitemap.php', |
| 70 |
// Xml Sitemap (Jason Martens). |
| 71 |
'google-xml-sitemap-generator-by-anton-dachauer/adachauer-google-xml-sitemap.php', |
| 72 |
// Google XML Sitemap Generator by Anton Dachauer (Anton Dachauer). |
| 73 |
'wp-xml-sitemap/wp-xml-sitemap.php', |
| 74 |
// WP XML Sitemap (Team Vivacity). |
| 75 |
'sitemap-generator-for-webmasters/sitemap.php', |
| 76 |
// Sitemap Generator for Webmasters (iwebslogtech). |
| 77 |
'xml-sitemap-xml-sitemapcouk/xmls.php', |
| 78 |
// XML Sitemap - XML-Sitemap.co.uk (Simon Hancox). |
| 79 |
'sewn-in-xml-sitemap/sewn-xml-sitemap.php', |
| 80 |
// Sewn In XML Sitemap (jcow). |
| 81 |
'rps-sitemap-generator/rps-sitemap-generator.php', |
| 82 |
// RPS Sitemap Generator (redpixelstudios). |
| 83 |
]; |
| 84 |
|
| 85 |
public const CLOAKING_PLUGINS = [ |
| 86 |
'rs-head-cleaner/rs-head-cleaner.php', |
| 87 |
// RS Head Cleaner Plus https://wordpress.org/plugins/rs-head-cleaner/. |
| 88 |
'rs-head-cleaner-lite/rs-head-cleaner-lite.php', |
| 89 |
// RS Head Cleaner Lite https://wordpress.org/plugins/rs-head-cleaner-lite/. |
| 90 |
]; |
| 91 |
|
| 92 |
public const SEO_PLUGINS = [ |
| 93 |
'all-in-one-seo-pack/all_in_one_seo_pack.php', // All in One SEO Pack. |
| 94 |
'seo-ultimate/seo-ultimate.php', // SEO Ultimate. |
| 95 |
'seo-by-rank-math/rank-math.php', // Rank Math. |
| 96 |
]; |
| 97 |
|
| 98 |
/** |
| 99 |
* Returns the list of all conflicting plugins. |
| 100 |
* |
| 101 |
* @return array The list of all conflicting plugins. |
| 102 |
*/ |
| 103 |
public static function all_plugins() { |
| 104 |
return \array_merge( |
| 105 |
self::OPEN_GRAPH_PLUGINS, |
| 106 |
self::XML_SITEMAPS_PLUGINS, |
| 107 |
self::CLOAKING_PLUGINS, |
| 108 |
self::SEO_PLUGINS, |
| 109 |
); |
| 110 |
} |
| 111 |
} |
| 112 |
|