WordPress Related Posts - Version 3.5

Version Description

  • Removed statistics
Download this release

Release Info

Developer ddksr
Plugin Icon wp plugin WordPress Related Posts
Version 3.5
Comparing to
See all releases

Code changes from version 3.5.2 to 3.5

config.php CHANGED
@@ -252,20 +252,6 @@ function wp_rp_is_classic() {
252
  return false;
253
  }
254
 
255
- function wp_rp_migrate_3_5_1() {
256
- $meta = get_option('wp_rp_meta');
257
- $meta['version'] = '3.5.2';
258
- $meta['new_user'] = false;
259
- update_option('wp_rp_meta', $meta);
260
- }
261
-
262
- function wp_rp_migrate_3_5() {
263
- $meta = get_option('wp_rp_meta');
264
- $meta['version'] = '3.5.1';
265
- $meta['new_user'] = false;
266
- update_option('wp_rp_meta', $meta);
267
- }
268
-
269
  function wp_rp_migrate_3_4_3() {
270
  $meta = get_option('wp_rp_meta');
271
  $meta['version'] = '3.5';
252
  return false;
253
  }
254
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
255
  function wp_rp_migrate_3_4_3() {
256
  $meta = get_option('wp_rp_meta');
257
  $meta['version'] = '3.5';
init.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- define('WP_RP_VERSION', '3.5.2');
3
 
4
  define('WP_RP_PLUGIN_FILE', plugin_basename(__FILE__));
5
 
@@ -118,8 +118,6 @@ function wp_rp_get_platform_options() {
118
  function wp_rp_ajax_load_articles_callback() {
119
  global $post;
120
 
121
- $platform_options = wp_rp_get_platform_options();
122
-
123
  $getdata = stripslashes_deep($_GET);
124
  if (!isset($getdata['post_id'])) {
125
  die('error');
@@ -163,23 +161,11 @@ function wp_rp_ajax_load_articles_callback() {
163
  $response_list = array();
164
 
165
  foreach (array_slice($related_posts, $from) as $related_post) {
166
- $excerpt_max_length = $platform_options["excerpt_max_length"];
167
-
168
- $excerpt = $related_post->post_excerpt;
169
- if (!$excerpt) {
170
- $excerpt = strip_shortcodes(strip_tags($related_post->post_content));
171
- }
172
- if ($excerpt) {
173
- if (strlen($excerpt) > $excerpt_max_length) {
174
- $excerpt = wp_rp_text_shorten($excerpt, $excerpt_max_length);
175
- }
176
- }
177
-
178
  array_push($response_list, array(
179
  'id' => $related_post->ID,
180
  'url' => get_permalink($related_post->ID),
181
  'title' => $related_post->post_title,
182
- 'excerpt' => $excerpt,
183
  'date' => $related_post->post_date,
184
  'comments' => $related_post->comment_count,
185
  'img' => wp_rp_get_post_thumbnail_img($related_post, $image_size)
1
  <?php
2
+ define('WP_RP_VERSION', '3.5');
3
 
4
  define('WP_RP_PLUGIN_FILE', plugin_basename(__FILE__));
5
 
118
  function wp_rp_ajax_load_articles_callback() {
119
  global $post;
120
 
 
 
121
  $getdata = stripslashes_deep($_GET);
122
  if (!isset($getdata['post_id'])) {
123
  die('error');
161
  $response_list = array();
162
 
163
  foreach (array_slice($related_posts, $from) as $related_post) {
 
 
 
 
 
 
 
 
 
 
 
 
164
  array_push($response_list, array(
165
  'id' => $related_post->ID,
166
  'url' => get_permalink($related_post->ID),
167
  'title' => $related_post->post_title,
168
+ 'excerpt' => $related_post->post_excerpt,
169
  'date' => $related_post->post_date,
170
  'comments' => $related_post->comment_count,
171
  'img' => wp_rp_get_post_thumbnail_img($related_post, $image_size)
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: zemanta
3
  Tags: related,posts,post,related posts,plugin,seo
4
  License: GPLv2
5
- Requires at least: 3.6
6
- Tested up to: 4.0
7
- Stable tag: 3.5.2
8
 
9
  WordPress Related Posts - the plugin for related posts with thumbnails. Caching included.
10
 
@@ -54,10 +54,6 @@ Yes, Zemanta is offered in different themes which you can also customize with si
54
 
55
  No, Zemanta does not use redirects and is juice friendly. :)
56
 
57
- = What about Terms of Service and Privacy Policy? =
58
-
59
- Before using the plugin please read the full version of [Zemanta Terms of Service](http://www.zemanta.com/legal/terms-of-service/) and [Zemanta Privacy Policy](http://www.zemanta.com/legal/privacy/).
60
-
61
  == Installation ==
62
 
63
  = Via admin: =
@@ -80,9 +76,6 @@ Before using the plugin please read the full version of [Zemanta Terms of Servic
80
  1. WordPress Related Posts Default Theme.
81
  2. WordPress Related Posts responsive theme on a Galaxy Nexus and iPhone 4s.
82
 
83
- == Terms of service ==
84
- The plugin source code is released under GPLv2. Usage of plugin is governed by [Zemanta Terms of Service](http://www.zemanta.com/legal/terms-of-service/) and [Zemanta Privacy Policy](http://www.zemanta.com/legal/privacy/).
85
-
86
  == Upgrade Notice ==
87
 
88
  = 2.7 =
@@ -93,13 +86,6 @@ Fix for security vulnerability. Upgrade immediately.
93
 
94
  == Changelog ==
95
 
96
- = 3.5.2 =
97
- * Fixed excerpt bug
98
-
99
- = 3.5.1 =
100
- * The subscription API forwards blog URLs
101
- * Responsive themes bugfix
102
-
103
  = 3.5 =
104
  * Removed statistics
105
 
2
  Contributors: zemanta
3
  Tags: related,posts,post,related posts,plugin,seo
4
  License: GPLv2
5
+ Requires at least: 3.3
6
+ Tested up to: 3.9.1
7
+ Stable tag: 3.5
8
 
9
  WordPress Related Posts - the plugin for related posts with thumbnails. Caching included.
10
 
54
 
55
  No, Zemanta does not use redirects and is juice friendly. :)
56
 
 
 
 
 
57
  == Installation ==
58
 
59
  = Via admin: =
76
  1. WordPress Related Posts Default Theme.
77
  2. WordPress Related Posts responsive theme on a Galaxy Nexus and iPhone 4s.
78
 
 
 
 
79
  == Upgrade Notice ==
80
 
81
  = 2.7 =
86
 
87
  == Changelog ==
88
 
 
 
 
 
 
 
 
89
  = 3.5 =
90
  * Removed statistics
91
 
settings.php CHANGED
@@ -42,7 +42,6 @@ function wp_rp_subscription($email_or_unsubscribe, $subscription_types) {
42
  $post = array(
43
  'api_key' => $meta['zemanta_api_key'],
44
  'platform' => 'wordpress-wprp',
45
- 'url' => get_site_url(),
46
  'subscriptions' => $subscription_types
47
  );
48
 
@@ -354,8 +353,6 @@ function wp_rp_settings_page() {
354
  'order' => 'ASC',
355
  'hide_empty' => false
356
  ));
357
-
358
- $blog_url = get_site_url();
359
 
360
  include wp_rp_get_template('settings');
361
  }
42
  $post = array(
43
  'api_key' => $meta['zemanta_api_key'],
44
  'platform' => 'wordpress-wprp',
 
45
  'subscriptions' => $subscription_types
46
  );
47
 
353
  'order' => 'ASC',
354
  'hide_empty' => false
355
  ));
 
 
356
 
357
  include wp_rp_get_template('settings');
358
  }
static/css/dashboard.css CHANGED
@@ -155,4 +155,4 @@ form.wp_rp_message_form a.dismiss {float: right;}
155
  #wpwrap #wpcontent .wp_rp-updated .wp_rp-dismiss a:before {content: '\f153'; display: inline-block; font: 400 16px/1 dashicons; speak: none; height: 20px; margin: 2px 0; text-align: center; vertical-align: middle; width: 20px; -webkit-font-smoothing: antialiased!important;}
156
  #wpwrap h2.title span {font-size:0.5em;}
157
 
158
- #wpwrap .subscription-container { width: 700px; padding: 5px 5px 5px 5px; background-color: #eee; margin-bottom: 20px;}
155
  #wpwrap #wpcontent .wp_rp-updated .wp_rp-dismiss a:before {content: '\f153'; display: inline-block; font: 400 16px/1 dashicons; speak: none; height: 20px; margin: 2px 0; text-align: center; vertical-align: middle; width: 20px; -webkit-font-smoothing: antialiased!important;}
156
  #wpwrap h2.title span {font-size:0.5em;}
157
 
158
+ #wpwrap .subscription-container { width: 800px; border: 1px solid #ccc; margin-bottom: 20px; padding: 5px 5px 5px 5px; background-color: #eee;}
static/img/themes/modern.jpg CHANGED
Binary file
static/img/themes/vertical-m.jpg CHANGED
Binary file
static/img/themes/vertical-s.jpg CHANGED
Binary file
static/img/themes/vertical.jpg CHANGED
Binary file
static/img/turnonscreen.jpg CHANGED
Binary file
static/themes/momma.css CHANGED
@@ -117,6 +117,8 @@ ul.related_post li small {
117
  @media screen and (max-width: 480px) {
118
  ul.related_post li {
119
  display: inline-block !important;
 
 
120
  clear: both !important;
121
  border:none !important;
122
  }
117
  @media screen and (max-width: 480px) {
118
  ul.related_post li {
119
  display: inline-block !important;
120
+ width: auto !important;
121
+ min-height: auto !important;
122
  clear: both !important;
123
  border:none !important;
124
  }
static/themes/twocolumns.css CHANGED
@@ -66,13 +66,13 @@ div.wp_rp_footer a.wp_rp_edit {
66
  }
67
  @media screen and (max-width: 480px) {
68
  ul.related_post {
69
- -moz-column-count: auto !important;
70
  -moz-column-gap: normal !important;
71
  -moz-column-rule: none !important;
72
- -webkit-column-count:auto !important;
73
  -webkit-column-gap: normal !important;
74
  -webkit-column-rule: none !important;
75
- column-count: auto !important;
76
  column-gap: normal !important;
77
  column-rule: none !important;
78
  }
66
  }
67
  @media screen and (max-width: 480px) {
68
  ul.related_post {
69
+ -moz-column-count: 2 !important;
70
  -moz-column-gap: normal !important;
71
  -moz-column-rule: none !important;
72
+ -webkit-column-count: 2 !important;
73
  -webkit-column-gap: normal !important;
74
  -webkit-column-rule: none !important;
75
+ column-count: 2 !important;
76
  column-gap: normal !important;
77
  column-rule: none !important;
78
  }
static/themes/vertical-m.css CHANGED
@@ -77,7 +77,7 @@ ul.related_post li small {
77
  @media screen and (max-width: 480px) {
78
  ul.related_post li {
79
  display: inline-block !important;
80
- width: 100px !important;
81
  clear: both !important;
82
  }
83
  ul.related_post li a:nth-child(1) {
77
  @media screen and (max-width: 480px) {
78
  ul.related_post li {
79
  display: inline-block !important;
80
+ width: auto !important;
81
  clear: both !important;
82
  }
83
  ul.related_post li a:nth-child(1) {
static/themes/vertical-s.css CHANGED
@@ -77,7 +77,7 @@ ul.related_post li small {
77
  @media screen and (max-width: 480px) {
78
  ul.related_post li {
79
  display: inline-block !important;
80
- width: 75px !important;
81
  clear: both !important;
82
  }
83
  ul.related_post li a:nth-child(1) {
77
  @media screen and (max-width: 480px) {
78
  ul.related_post li {
79
  display: inline-block !important;
80
+ width: auto !important;
81
  clear: both !important;
82
  }
83
  ul.related_post li a:nth-child(1) {
static/themes/vertical.css CHANGED
@@ -77,7 +77,7 @@ ul.related_post li small {
77
  @media screen and (max-width: 480px) {
78
  ul.related_post li {
79
  display: inline-block !important;
80
- width: 150px !important;
81
  clear: both !important;
82
  }
83
  ul.related_post li a:nth-child(1) {
77
  @media screen and (max-width: 480px) {
78
  ul.related_post li {
79
  display: inline-block !important;
80
+ width: auto !important;
81
  clear: both !important;
82
  }
83
  ul.related_post li a:nth-child(1) {
views/settings.php CHANGED
@@ -36,7 +36,7 @@
36
  <tr valign="top">
37
  <th scope="row"></th>
38
  <td>
39
- <?php _e("Subscribe and we'll start monitoring our network for your <a href=\"$blog_url\" target=\"_blank\">blog</a>. <br />We'll <strong>let you know</strong> when somebody links to you.", 'wp_related_posts'); ?>
40
  </td>
41
  </tr>
42
  </table>
36
  <tr valign="top">
37
  <th scope="row"></th>
38
  <td>
39
+ <?php _e("We know when Zemanta users link to each other and we know when they link to you! Subscribe and <strong>we'll let you know</strong> when this happens.", 'wp_related_posts'); ?>
40
  </td>
41
  </tr>
42
  </table>
wp_related_posts.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: WordPress Related Posts
4
- Version: 3.5.2
5
  Plugin URI: http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/
6
  Description: Quickly increase your readers' engagement with your posts by adding Related Posts in the footer of your content. Click on <a href="admin.php?page=wordpress-related-posts">Related Posts tab</a> to configure your settings.
7
  Author: Zemanta Ltd.
1
  <?php
2
  /*
3
  Plugin Name: WordPress Related Posts
4
+ Version: 3.5
5
  Plugin URI: http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/
6
  Description: Quickly increase your readers' engagement with your posts by adding Related Posts in the footer of your content. Click on <a href="admin.php?page=wordpress-related-posts">Related Posts tab</a> to configure your settings.
7
  Author: Zemanta Ltd.