summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/jetpack/modules/widgets/top-posts.php')
-rw-r--r--plugins/jetpack/modules/widgets/top-posts.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/jetpack/modules/widgets/top-posts.php b/plugins/jetpack/modules/widgets/top-posts.php
index a4b6b157..f581741c 100644
--- a/plugins/jetpack/modules/widgets/top-posts.php
+++ b/plugins/jetpack/modules/widgets/top-posts.php
@@ -303,10 +303,15 @@ class Jetpack_Top_Posts_Widget extends WP_Widget {
echo $args['before_title'] . $title . $args['after_title'];
if ( ! $posts ) {
+ $link = 'https://jetpack.com/support/getting-more-views-and-traffic/';
+ if ( defined( 'IS_WPCOM' ) && IS_WPCOM ) {
+ $link = 'http://en.support.wordpress.com/getting-more-site-traffic/';
+ }
+
if ( current_user_can( 'edit_theme_options' ) ) {
echo '<p>' . sprintf(
__( 'There are no posts to display. <a href="%s" target="_blank">Want more traffic?</a>', 'jetpack' ),
- 'https://jetpack.com/support/getting-more-views-and-traffic/'
+ esc_url( $link )
) . '</p>';
}