Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/jetpack/modules
File: seo-tools.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Module Name: SEO Tools
[2] Fix | Delete
* Module Description: Optimize titles, meta descriptions, and social previews for better search results.
[3] Fix | Delete
* Sort Order: 35
[4] Fix | Delete
* Recommendation Order: 15
[5] Fix | Delete
* First Introduced: 4.4
[6] Fix | Delete
* Requires Connection: No
[7] Fix | Delete
* Requires User Connection: No
[8] Fix | Delete
* Auto Activate: No
[9] Fix | Delete
* Module Tags: Social, Appearance
[10] Fix | Delete
* Feature: Traffic
[11] Fix | Delete
* Additional Search Queries: search engine optimization, social preview, meta description, custom title format
[12] Fix | Delete
*
[13] Fix | Delete
* @package automattic/jetpack
[14] Fix | Delete
*/
[15] Fix | Delete
[16] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[17] Fix | Delete
exit( 0 );
[18] Fix | Delete
}
[19] Fix | Delete
[20] Fix | Delete
// Suppress SEO Tools output if any of the following plugins is active.
[21] Fix | Delete
$jetpack_seo_conflicting_plugins = array(
[22] Fix | Delete
'wordpress-seo/wp-seo.php',
[23] Fix | Delete
'wordpress-seo-premium/wp-seo-premium.php',
[24] Fix | Delete
'all-in-one-seo-pack/all_in_one_seo_pack.php',
[25] Fix | Delete
'all-in-one-seo-pack-pro/all_in_one_seo_pack.php',
[26] Fix | Delete
'seo-by-rank-math/rank-math.php',
[27] Fix | Delete
'autodescription/autodescription.php',
[28] Fix | Delete
'slim-seo/slim-seo.php',
[29] Fix | Delete
'wp-seopress/seopress.php',
[30] Fix | Delete
'wp-seopress-pro/seopress-pro.php',
[31] Fix | Delete
'seo-key/seo-key.php',
[32] Fix | Delete
'seo-key-pro/seo-key.php',
[33] Fix | Delete
);
[34] Fix | Delete
[35] Fix | Delete
foreach ( $jetpack_seo_conflicting_plugins as $seo_plugin ) {
[36] Fix | Delete
if ( Jetpack::is_plugin_active( $seo_plugin ) ) {
[37] Fix | Delete
// Disable all custom meta tags that SEO tools manages.
[38] Fix | Delete
add_filter( 'jetpack_disable_seo_tools', '__return_true' );
[39] Fix | Delete
[40] Fix | Delete
// Also disable default meta tags.
[41] Fix | Delete
add_filter( 'jetpack_seo_meta_tags_enabled', '__return_false' );
[42] Fix | Delete
break;
[43] Fix | Delete
}
[44] Fix | Delete
}
[45] Fix | Delete
[46] Fix | Delete
/** This filter is documented in modules/seo-tools/class-jetpack-seo-utils.php */
[47] Fix | Delete
if ( ! apply_filters( 'jetpack_disable_seo_tools', false ) ) {
[48] Fix | Delete
require_once __DIR__ . '/seo-tools/class-jetpack-seo.php';
[49] Fix | Delete
new Jetpack_SEO();
[50] Fix | Delete
}
[51] Fix | Delete
[52] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function