WordPress Related Posts - Version 3.6.5

Version Description

  • Migrated API URL to sovrn.com domain.
Download this release

Release Info

Developer sovrn
Plugin Icon wp plugin WordPress Related Posts
Version 3.6.5
Comparing to
See all releases

Code changes from version 3.6.4 to 3.6.5

config.php CHANGED
@@ -1,12 +1,12 @@
1
  <?php
2
- define('WP_RP_STATIC_BASE_URL', 'https://wprp.zemanta.com/static/');
3
- define("WP_RP_ZEMANTA_API_URL", "http://api.zemanta.com/services/rest/0.0/");
4
- define("WP_RP_ZEMANTA_SUBSCRIPTION_URL", "http://prefs.zemanta.com/api/");
5
  define('WP_RP_STATIC_THEMES_PATH', 'static/themes/');
6
  define('WP_RP_STATIC_JSON_PATH', 'json/');
7
- define('WP_RP_CONTENT_BASE_URL', 'https://wprp.zemanta.com/static/');
8
- define("WP_RP_ZEMANTA_UPLOAD_URL", "http://prefs.zemanta.com/api/upload-articles/");
9
- define("WP_RP_ZEMANTA_ARTICLE_COUNT_URL", "http://prefs.zemanta.com/api/article-count/");
10
 
11
 
12
  define("WP_RP_DEFAULT_CUSTOM_CSS",
@@ -31,7 +31,7 @@ define('WP_RP_THUMBNAILS_DEFAULTS_COUNT', 31);
31
 
32
  define("WP_RP_MAX_LABEL_LENGTH", 32);
33
 
34
- define("WP_RP_CTR_DASHBOARD_URL", "https://d.zemanta.com/");
35
  define("WP_RP_STATIC_LOADER_FILE", "js/loader.js");
36
 
37
  define("WP_RP_STATIC_INFINITE_RECS_JS_FILE", "js/infiniterecs.js");
1
  <?php
2
+ define('WP_RP_STATIC_BASE_URL', 'https://wprp.sovrn.com/static/');
3
+ define("WP_RP_ZEMANTA_API_URL", "http://api-ea.sovrn.com/services/rest/0.0/");
4
+ define("WP_RP_ZEMANTA_SUBSCRIPTION_URL", "http://prefs-ea.sovrn.com/api/");
5
  define('WP_RP_STATIC_THEMES_PATH', 'static/themes/');
6
  define('WP_RP_STATIC_JSON_PATH', 'json/');
7
+ define('WP_RP_CONTENT_BASE_URL', 'https://wprp.sovrn.com/static/');
8
+ define("WP_RP_ZEMANTA_UPLOAD_URL", "http://prefs-ea.sovrn.com/api/upload-articles/");
9
+ define("WP_RP_ZEMANTA_ARTICLE_COUNT_URL", "http://prefs-ea.sovrn.com/api/article-count/");
10
 
11
 
12
  define("WP_RP_DEFAULT_CUSTOM_CSS",
31
 
32
  define("WP_RP_MAX_LABEL_LENGTH", 32);
33
 
34
+ define("WP_RP_CTR_DASHBOARD_URL", "https://d-ea.sovrn.com/");
35
  define("WP_RP_STATIC_LOADER_FILE", "js/loader.js");
36
 
37
  define("WP_RP_STATIC_INFINITE_RECS_JS_FILE", "js/infiniterecs.js");
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
- === WordPress Related Posts ===
2
  Contributors: sovrn, zemanta
3
  Tags: related,posts,post,related posts,plugin,seo,sovrn
4
  License: GPLv2
5
  Requires at least: 3.6
6
  Tested up to: 4.7
7
- Stable tag: 3.6.4
8
 
9
  WordPress Related Posts - the plugin for related posts with thumbnails. Caching included.
10
 
@@ -93,6 +93,9 @@ Fix for security vulnerability. Upgrade immediately.
93
 
94
  == Changelog ==
95
 
 
 
 
96
  = 3.6.4 =
97
  * Added error and app performance monitoring to help us fix bugs and improve performance.
98
  * Requires php 5.4 or greater.
1
+ === WordPress Related Posts ===
2
  Contributors: sovrn, zemanta
3
  Tags: related,posts,post,related posts,plugin,seo,sovrn
4
  License: GPLv2
5
  Requires at least: 3.6
6
  Tested up to: 4.7
7
+ Stable tag: 3.6.5
8
 
9
  WordPress Related Posts - the plugin for related posts with thumbnails. Caching included.
10
 
93
 
94
  == Changelog ==
95
 
96
+ = 3.6.5 =
97
+ * Migrated API URL to sovrn.com domain.
98
+
99
  = 3.6.4 =
100
  * Added error and app performance monitoring to help us fix bugs and improve performance.
101
  * Requires php 5.4 or greater.
static/js/dashboard.js CHANGED
@@ -18,7 +18,7 @@
18
  };
19
  extras = extras || {};
20
  payload = $.extend(extras, payload);
21
- img.src = protocol + "eyepatch.zemanta.com/log/?" + object_to_query(payload);
22
  },
23
  ajaxCallSubscribe = function (email, subscriptions, successCallback) {
24
  $.ajax({
@@ -49,7 +49,7 @@
49
 
50
  disableCustomCSS();
51
  $('#wp_rp_desktop_custom_theme_enabled').click(disableCustomCSS);
52
-
53
  if ($('#wp_rp_subscribe_email').length) {
54
  if (! $('#wp_rp_subscribe_email').val().length) {
55
  $('#wp_rp_unsubscribe_button').hide();
@@ -58,7 +58,7 @@
58
  $('#wp_rp_subscribe_button').hide();
59
  }
60
  }
61
-
62
  $('#wp_rp_subscribe_button').on('click', function (evt) {
63
  var email = $('#wp_rp_subscribe_email').val();
64
  evt.preventDefault();
@@ -74,7 +74,7 @@
74
  }
75
  });
76
  });
77
-
78
  $('#wp_rp_unsubscribe_button').on('click', function (evt) {
79
  evt.preventDefault();
80
  $('#wp_rp_unsubscribe_button').attr('disabled', true);
@@ -87,7 +87,7 @@
87
  }
88
  });
89
  });
90
-
91
  // collapsible blocks implementation
92
  $('#wp_rp_wrap .collapsible .collapse-handle').on('click', function (event) {
93
  var wrapper = $(this).closest('.collapsible');
@@ -114,7 +114,7 @@
114
  logHabit('statistics_' + (is_collapsed ? 'on' : 'off'));
115
  }
116
 
117
-
118
  event.preventDefault();
119
  });
120
 
18
  };
19
  extras = extras || {};
20
  payload = $.extend(extras, payload);
21
+ img.src = protocol + "eyepatch-ea.sovrn.com/log/?" + object_to_query(payload);
22
  },
23
  ajaxCallSubscribe = function (email, subscriptions, successCallback) {
24
  $.ajax({
49
 
50
  disableCustomCSS();
51
  $('#wp_rp_desktop_custom_theme_enabled').click(disableCustomCSS);
52
+
53
  if ($('#wp_rp_subscribe_email').length) {
54
  if (! $('#wp_rp_subscribe_email').val().length) {
55
  $('#wp_rp_unsubscribe_button').hide();
58
  $('#wp_rp_subscribe_button').hide();
59
  }
60
  }
61
+
62
  $('#wp_rp_subscribe_button').on('click', function (evt) {
63
  var email = $('#wp_rp_subscribe_email').val();
64
  evt.preventDefault();
74
  }
75
  });
76
  });
77
+
78
  $('#wp_rp_unsubscribe_button').on('click', function (evt) {
79
  evt.preventDefault();
80
  $('#wp_rp_unsubscribe_button').attr('disabled', true);
87
  }
88
  });
89
  });
90
+
91
  // collapsible blocks implementation
92
  $('#wp_rp_wrap .collapsible .collapse-handle').on('click', function (event) {
93
  var wrapper = $(this).closest('.collapsible');
114
  logHabit('statistics_' + (is_collapsed ? 'on' : 'off'));
115
  }
116
 
117
+
118
  event.preventDefault();
119
  });
120
 
static/js/edit_related_posts.js CHANGED
@@ -13,7 +13,7 @@
13
  admin_ajax_action: 'rp_update_related_posts',
14
 
15
  plugin_static_url: window._wp_rp_plugin_static_base_url,
16
- zemanta_thumbnail_url: 'http://i.zemanta.com/{aid}_150_150.jpg',
17
  num_default_thumbnails: 30,
18
 
19
  search_support: !!window._wp_rp_erp_search,
@@ -93,7 +93,7 @@
93
  '<div class="content">' +
94
  '<ul></ul>' +
95
  '</div>' +
96
- '<div class="footer"><a href="http://www.zemanta.com/?ref=edit-rp" target="_blank">zemanta.com</a></div>' +
97
  '</div>');
98
  elms.wrapper.append(elms.replace_articles_wrap);
99
 
13
  admin_ajax_action: 'rp_update_related_posts',
14
 
15
  plugin_static_url: window._wp_rp_plugin_static_base_url,
16
+ zemanta_thumbnail_url: 'http://i-ea.sovrn.com/{aid}_150_150.jpg',
17
  num_default_thumbnails: 30,
18
 
19
  search_support: !!window._wp_rp_erp_search,
93
  '<div class="content">' +
94
  '<ul></ul>' +
95
  '</div>' +
96
+ '<div class="footer"><a href="http://www.sovrn.com/?ref=edit-rp" target="_blank">sovrn.com</a></div>' +
97
  '</div>');
98
  elms.wrapper.append(elms.replace_articles_wrap);
99
 
zemanta/views/assets.php CHANGED
@@ -27,4 +27,4 @@ endfor;
27
  //]]>
28
  </script>
29
 
30
- <script type="text/javascript" id="zemanta-loader" src="https://static.zemanta.com/plugins/wordpress-wprp/loader.js"></script>
27
  //]]>
28
  </script>
29
 
30
+ <script type="text/javascript" id="zemanta-loader" src="https://static-ea.sovrn.com/plugins/wordpress-wprp/loader.js"></script>
zemanta/views/options.php CHANGED
@@ -11,9 +11,9 @@
11
  <iframe src="http://player.vimeo.com/video/46745200?title=0&amp;byline=0&amp;portrait=0" width="100%" height="280px" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
12
  </div>
13
  <p>
14
- <a href="http://prefs.zemanta.com/" target="_blank" class="signin-button prefs-signin">Sign In</a>
15
  </p>
16
- <p class="below-signin-button"><a href="http://prefs.zemanta.com/" target="_blank" class="prefs-signin">to check stats, change settings and more</a></p>
17
  </div>
18
  <div class="col-right">
19
  <div id="tweets_div"></div>
@@ -30,7 +30,7 @@
30
  <input name="Submit" type="submit" value="<?php esc_attr_e('Save Changes'); ?>" class="button-primary" />
31
  </p>
32
  <?php endif; ?>
33
-
34
  </form>
35
-
36
  </div>
11
  <iframe src="http://player.vimeo.com/video/46745200?title=0&amp;byline=0&amp;portrait=0" width="100%" height="280px" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe>
12
  </div>
13
  <p>
14
+ <a href="http://prefs-ea.sovrn.com/" target="_blank" class="signin-button prefs-signin">Sign In</a>
15
  </p>
16
+ <p class="below-signin-button"><a href="http://prefs-ea.sovrn.com/" target="_blank" class="prefs-signin">to check stats, change settings and more</a></p>
17
  </div>
18
  <div class="col-right">
19
  <div id="tweets_div"></div>
30
  <input name="Submit" type="submit" value="<?php esc_attr_e('Save Changes'); ?>" class="button-primary" />
31
  </p>
32
  <?php endif; ?>
33
+
34
  </form>
35
+
36
  </div>
zemanta/views/scripts.php CHANGED
@@ -12,7 +12,7 @@ jQuery(document).ready(function ($) {
12
  api_key: api_key,
13
  format: 'json'
14
  };
15
- $.post('http://api.zemanta.com/services/rest/0.0/', params, function (data) {
16
  if (data && data.config_url) {
17
  $('a.prefs-signin').attr('href', data.config_url);
18
  }
12
  api_key: api_key,
13
  format: 'json'
14
  };
15
+ $.post('http://api-ea.sovrn.com/services/rest/0.0/', params, function (data) {
16
  if (data && data.config_url) {
17
  $('a.prefs-signin').attr('href', data.config_url);
18
  }
zemanta/zemanta.php CHANGED
@@ -12,7 +12,7 @@ require_once(ABSPATH . 'wp-admin/includes/image.php');
12
  class WPRPZemanta {
13
 
14
  var $version = '1.2.3';
15
- var $api_url = 'http://api.zemanta.com/services/rest/0.0/';
16
  var $api_key = '';
17
  var $options = array();
18
  var $supported_features = array();
@@ -380,8 +380,8 @@ class WPRPZemanta {
380
  $url = $urls[$i];
381
  $desc = $descs[$i];
382
 
383
- // skip images from img.zemanta.com and FMP
384
- if(strpos($url, 'http://img.zemanta.com/') !== false || preg_match('#https?://.+\.fmpub\.net/#i', $url))
385
  continue;
386
 
387
  // skip if already hosted on our blog
12
  class WPRPZemanta {
13
 
14
  var $version = '1.2.3';
15
+ var $api_url = 'http://api-ea.sovrn.com/services/rest/0.0/';
16
  var $api_key = '';
17
  var $options = array();
18
  var $supported_features = array();
380
  $url = $urls[$i];
381
  $desc = $descs[$i];
382
 
383
+ // skip images from img-ea.sovrn.com and FMP
384
+ if(strpos($url, 'http://img-ea.sovrn.com/') !== false || preg_match('#https?://.+\.fmpub\.net/#i', $url))
385
  continue;
386
 
387
  // skip if already hosted on our blog