<h4><?phpesc_html_e('Trouble with Jetpack?','jetpack');?></h4>
<p><?phpesc_html_e('It may be caused by one of these issues, which you can diagnose yourself:','jetpack');?></p>
<ol>
<li><?phpesc_html_e('A known issue.','jetpack');?>
<?php
echosprintf(
wp_kses(
/* translators: URLs to Jetpack support pages. */
__('Some themes and plugins have <a href="%1$s" target="_blank" rel="noopener noreferrer">known conflicts</a> with Jetpack – check the list. (You can also browse the <a href="%2$s" target="_blank" rel="noopener noreferrer">Jetpack support pages</a> or <a href="%3$s" target="_blank" rel="noopener noreferrer">Jetpack support forum</a> to see if others have experienced and solved the problem.)','jetpack'),
<?phpesc_html_e("Find out by disabling all plugins except Jetpack. If the problem persists, it's not a plugin issue. If the problem is solved, turn your plugins on one by one until the problem pops up again – there's the culprit! Let us know, and we'll try to help.",'jetpack');?>
</li>
<li>
<?phpesc_html_e('A theme conflict.','jetpack');?>
<?php
$default_theme=wp_get_theme(WP_DEFAULT_THEME);
if($default_theme->exists()){
/* translators: %s is the name of a theme */
echoesc_html(sprintf(__("If your problem isn't known or caused by a plugin, try activating %s (the default WordPress theme).",'jetpack'),$default_theme->get('Name')));
}else{
esc_html_e("If your problem isn't known or caused by a plugin, try activating the default WordPress theme.",'jetpack');
}
?>
<?phpesc_html_e("If this solves the problem, something in your theme is probably broken – let the theme's author know.",'jetpack');?>
</li>
<li>
<?phpesc_html_e('A problem with your XML-RPC file.','jetpack');?>
<?php
echosprintf(
wp_kses(
/* translators: The URL to the site's xmlrpc.php file. */
__('Load your <a href="%s">XML-RPC file</a>. It should say “XML-RPC server accepts POST requests only.” on a line by itself.','jetpack'),
array('a'=>array('href'=>array()))
),
esc_attr(site_url('xmlrpc.php'))
);
?>
<ul>
<li><?phpesc_html_e("If it's not by itself, a theme or plugin is displaying extra characters. Try steps 2 and 3.",'jetpack');?></li>
<li><?phpesc_html_e('If you get a 404 message, contact your web host. Their security may block the XML-RPC file.','jetpack');?></li>
<?phpesc_html_e('A connection problem with WordPress.com.','jetpack');?>
<?php
echosprintf(
wp_kses(
/* translators: URL to disconnect and reconnect Jetpack. */
__('Jetpack works by connecting to WordPress.com for a lot of features. Sometimes, when the connection gets messed up, you need to disconnect and reconnect to get things working properly. <a href="%s">Disconnect from WordPress.com</a>','jetpack'),
array(
'a'=>array(
'href'=>array(),
'class'=>array(),
),
)
),
esc_attr(
wp_nonce_url(
Jetpack::admin_url(
array(
'page'=>'jetpack-debugger',
'disconnect'=>true,
)
),
'jp_disconnect',
'nonce'
)
)
);
?>
</li>
<?phpendif;?>
</ol>
<h4><?phpesc_html_e('Still having trouble?','jetpack');?></h4>
/* translators: URL for Jetpack support. URL for WordPress's Site Health */
__('<a href="%1$s">Contact our Happiness team</a>. When you do, please include the <a href="%2$s">full debug information from your site</a>.','jetpack'),