WordPress Related Posts - Version 2.6.3

Version Description

  • Due to popular demand, "Edit related posts" is back in action. Send us more feedback to support@zemanta.com. Thanks!
Download this release

Release Info

Developer zemanta
Plugin Icon wp plugin WordPress Related Posts
Version 2.6.3
Comparing to
See all releases

Code changes from version 2.6.2 to 2.6.3

edit_related_posts.php CHANGED
@@ -1,8 +1,7 @@
1
  <?php
2
 
3
  function wp_rp_update_related_posts_callback() {
4
- die('error'); // Not supported any more.
5
-
6
  if (!current_user_can('edit_posts')) {
7
  die('error');
8
  }
1
  <?php
2
 
3
  function wp_rp_update_related_posts_callback() {
4
+ check_ajax_referer('wp_rp_ajax_nonce');
 
5
  if (!current_user_can('edit_posts')) {
6
  die('error');
7
  }
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: zemanta
3
  Tags: related,posts,post,related posts,plugin
4
  License: GPLv2
5
  Requires at least: 3.3
6
- Tested up to: 3.5
7
- Stable tag: 2.6.1
8
 
9
  WordPress Related Posts generates a list of related posts with thumbnails and gives you click-through statistics.
10
 
@@ -70,6 +70,9 @@ Fix for security vulnerability. Upgrade immediately.
70
 
71
  == Changelog ==
72
 
 
 
 
73
  = 2.6.2 =
74
  * Fix for Cross-Site Request Forgery vulnerability. Credits for finding and reporting the vulnerability go to Charlie Eriksen via Secunia SVCRP.
75
 
3
  Tags: related,posts,post,related posts,plugin
4
  License: GPLv2
5
  Requires at least: 3.3
6
+ Tested up to: 3.6
7
+ Stable tag: 2.6.3
8
 
9
  WordPress Related Posts generates a list of related posts with thumbnails and gives you click-through statistics.
10
 
70
 
71
  == Changelog ==
72
 
73
+ = 2.6.3 =
74
+ * Due to popular demand, "Edit related posts" is back in action. Send us more feedback to support@zemanta.com. Thanks!
75
+
76
  = 2.6.2 =
77
  * Fix for Cross-Site Request Forgery vulnerability. Credits for finding and reporting the vulnerability go to Charlie Eriksen via Secunia SVCRP.
78
 
settings.php CHANGED
@@ -62,7 +62,7 @@ function wp_rp_settings_scripts() {
62
  wp_enqueue_script("wp_rp_dashboard_script", plugins_url('static/js/dashboard.js', __FILE__), array('jquery'), WP_RP_VERSION);
63
  }
64
  function wp_rp_settings_styles() {
65
- wp_enqueue_style("wp_rp_dashboard_style", plugins_url("static/css/dashboard.css", __FILE__));
66
  }
67
 
68
  function wp_rp_register_blog($button_type='other') {
62
  wp_enqueue_script("wp_rp_dashboard_script", plugins_url('static/js/dashboard.js', __FILE__), array('jquery'), WP_RP_VERSION);
63
  }
64
  function wp_rp_settings_styles() {
65
+ wp_enqueue_style("wp_rp_dashboard_style", plugins_url("static/css/dashboard.css", __FILE__), array(), WP_RP_VERSION);
66
  }
67
 
68
  function wp_rp_register_blog($button_type='other') {
static/img/arrow_down.png CHANGED
Binary file
static/img/arrow_right.png CHANGED
Binary file
static/img/check.png CHANGED
Binary file
static/img/close.png CHANGED
Binary file
static/img/cross.png CHANGED
Binary file
static/img/cross_2x.png CHANGED
Binary file
static/img/desktop_icon.png CHANGED
Binary file
static/img/icon_support.png CHANGED
Binary file
static/img/measure_icon.png CHANGED
Binary file
static/img/measure_icon_2x.png CHANGED
Binary file
static/img/menu_icon.png CHANGED
Binary file
static/img/menu_icon_2x.png CHANGED
Binary file
static/img/mobile_icon.png CHANGED
Binary file
static/img/network_icon.png CHANGED
Binary file
static/img/outlink.png CHANGED
Binary file
static/img/promoted_arrow.png CHANGED
Binary file
wp_related_posts.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: WordPress Related Posts
4
- Version: 2.6.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.
@@ -424,17 +424,17 @@ function wp_rp_head_resources() {
424
 
425
  if ($platform_options['theme_name'] === 'm-stream.css') {
426
  //error_log("infinite JS loaded");
427
- wp_enqueue_script('wp_rp_infiniterecs', WP_RP_STATIC_BASE_URL . WP_RP_STATIC_INFINITE_RECS_JS_FILE, array('jquery'));
428
  }
429
 
430
  if ($platform_options['theme_name'] === 'pinterest.css') {
431
- wp_enqueue_script('wp_rp_pinterest', WP_RP_STATIC_BASE_URL . WP_RP_STATIC_PINTEREST_JS_FILE, array('jquery'));
432
  }
433
  }
434
 
435
  if (current_user_can('edit_posts')) {
436
- wp_enqueue_style('wp_rp_edit_related_posts_css', WP_RP_STATIC_BASE_URL . 'wp-rp-css/edit_related_posts.css');
437
- wp_enqueue_script('wp_rp_edit_related_posts_js', WP_RP_STATIC_BASE_URL . 'js/edit_related_posts.js', array('jquery'));
438
  }
439
 
440
  echo $output;
@@ -489,10 +489,11 @@ function wp_rp_get_related_posts($before_title = '', $after_title = '') {
489
  }
490
 
491
  $posts_footer = '';
 
 
 
492
  if ($options['display_zemanta_linky']) {
493
- $posts_footer = '<div class="wp_rp_footer">' .
494
- '<a class="wp_rp_backlink" target="_blank" rel="nofollow" href="http://www.zemanta.com/?wp-related-posts">Zemanta</a>' .
495
- '</div>';
496
  }
497
 
498
  $css_classes = 'related_post wp_rp';
1
  <?php
2
  /*
3
  Plugin Name: WordPress Related Posts
4
+ Version: 2.6.3
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.
424
 
425
  if ($platform_options['theme_name'] === 'm-stream.css') {
426
  //error_log("infinite JS loaded");
427
+ wp_enqueue_script('wp_rp_infiniterecs', WP_RP_STATIC_BASE_URL . WP_RP_STATIC_INFINITE_RECS_JS_FILE, array('jquery'), WP_RP_VERSION);
428
  }
429
 
430
  if ($platform_options['theme_name'] === 'pinterest.css') {
431
+ wp_enqueue_script('wp_rp_pinterest', WP_RP_STATIC_BASE_URL . WP_RP_STATIC_PINTEREST_JS_FILE, array('jquery'), WP_RP_VERSION);
432
  }
433
  }
434
 
435
  if (current_user_can('edit_posts')) {
436
+ wp_enqueue_style('wp_rp_edit_related_posts_css', WP_RP_STATIC_BASE_URL . 'wp-rp-css/edit_related_posts.css', array(), WP_RP_VERSION);
437
+ wp_enqueue_script('wp_rp_edit_related_posts_js', WP_RP_STATIC_BASE_URL . 'js/edit_related_posts.js', array('jquery'), WP_RP_VERSION);
438
  }
439
 
440
  echo $output;
489
  }
490
 
491
  $posts_footer = '';
492
+ if (current_user_can('edit_posts')) {
493
+ $posts_footer .= '<div class="wp_rp_footer"><a class="wp_rp_edit" href="#" id="wp_rp_edit_related_posts">Edit Related Posts</a></div>';
494
+ }
495
  if ($options['display_zemanta_linky']) {
496
+ $posts_footer .= '<div class="wp_rp_footer"><a class="wp_rp_backlink" target="_blank" href="http://www.zemanta.com/?wp-related-posts">Zemanta</a></div>';
 
 
497
  }
498
 
499
  $css_classes = 'related_post wp_rp';