<h3><?phpesc_html_e('Trouble with Jetpack?','jetpack');?></h3>
<h4><?phpesc_html_e('It may be caused by one of these issues, which you can diagnose yourself:','jetpack');?></h4>
<ol>
<li><b><em>
<?php
esc_html_e('A known issue.','jetpack');
?>
</em></b>
<?php
echosprintf(
wp_kses(
/* translators: URLs to Jetpack support pages. */
__('Some themes and plugins have <a href="%1$s" target="_blank">known conflicts</a> with Jetpack – check the <a href="%2$s" target="_blank">list</a>. (You can also browse the <a href="%3$s" target="_blank">Jetpack support pages</a> or <a href="%4$s" target="_blank">Jetpack support forum</a> to see if others have experienced and solved the problem.)','jetpack'),
<li><b><em><?phpesc_html_e('An incompatible plugin.','jetpack');?></em></b> <?php esc_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>
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><b><em><?phpesc_html_e('A problem with your XMLRPC file.','jetpack');?></em></b>
<?php
echosprintf(
wp_kses(
/* translators: The URL to the site's xmlrpc.php file. */
__('Load your <a href="%s">XMLRPC 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 XMLRPC.','jetpack');?></li>
<strong><em><?phpesc_html_e('A connection problem with WordPress.com.','jetpack');?></em></strong>
<?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>
<p><b><em><?phpesc_html_e('Ask us for help!','jetpack');?></em></b>
/* 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'),
array('a'=>array('href'=>array()))
),
esc_url($support_url),
esc_url(admin_url().'site-health.php?tab=debug')
);
?>
</p>
<hr/>
<?phpif(Jetpack::is_active()):?>
<divid="connected-user-details">
<h3><?phpesc_html_e('More details about your Jetpack settings','jetpack');?></h3>
<p>
<?php
printf(
wp_kses(
/* translators: %s is an e-mail address */
__('The primary connection is owned by <strong>%s</strong>\'s WordPress.com account.','jetpack'),
array('strong'=>array())
),
esc_html(Jetpack::get_master_user_email())
);
?>
</p>
</div>
<?phpelse:?>
<divid="dev-mode-details">
<p>
<?php
printf(
wp_kses(
/* translators: Link to a Jetpack support page. */