Disqus Comment System - Version 2.83

Version Description

  • Fix errors when using SSO and rendering javascript inline
Download this release

Release Info

Developer ryanv12
Plugin Icon Disqus Comment System
Version 2.83
Comparing to
See all releases

Code changes from version 2.82 to 2.83

Files changed (3) hide show
  1. comments.php +2 -1
  2. disqus.php +18 -2
  3. readme.txt +5 -1
comments.php CHANGED
@@ -115,7 +115,8 @@ var disqus_config = function () {
115
  $sso = dsq_sso();
116
  if ($sso) {
117
  foreach ($sso as $k=>$v) {
118
- echo esc_js( 'this.page.{$k} = \'{$v}\';\n' );
 
119
  }
120
  echo dsq_sso_login();
121
  }
115
  $sso = dsq_sso();
116
  if ($sso) {
117
  foreach ($sso as $k=>$v) {
118
+ echo 'this.page.' . esc_js($k) . ' = \'' . esc_js($v) . '\';';
119
+ echo "\n";
120
  }
121
  echo dsq_sso_login();
122
  }
disqus.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Disqus Comment System
4
  Plugin URI: http://disqus.com/
5
  Description: The Disqus comment system replaces your WordPress comment system with your comments hosted and powered by Disqus. Head over to the Comments admin page to set up your Disqus Comment System.
6
  Author: Disqus <team@disqus.com>
7
- Version: 2.82
8
  Author URI: http://disqus.com/
9
  */
10
 
@@ -18,7 +18,7 @@ define('DISQUS_CAN_EXPORT', is_file(dirname(__FILE__) . '/export.php'));
18
  if (!defined('DISQUS_DEBUG')) {
19
  define('DISQUS_DEBUG', false);
20
  }
21
- define('DISQUS_VERSION', '2.82');
22
  define('DISQUS_SYNC_TIMEOUT', 30);
23
 
24
  /**
@@ -1345,6 +1345,22 @@ if(!function_exists('cf_json_encode')) {
1345
 
1346
  // Single Sign-on Integration
1347
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1348
  function dsq_sso() {
1349
  if ($key = get_option('disqus_partner_key')) {
1350
  // use old style SSO
4
  Plugin URI: http://disqus.com/
5
  Description: The Disqus comment system replaces your WordPress comment system with your comments hosted and powered by Disqus. Head over to the Comments admin page to set up your Disqus Comment System.
6
  Author: Disqus <team@disqus.com>
7
+ Version: 2.83
8
  Author URI: http://disqus.com/
9
  */
10
 
18
  if (!defined('DISQUS_DEBUG')) {
19
  define('DISQUS_DEBUG', false);
20
  }
21
+ define('DISQUS_VERSION', '2.83');
22
  define('DISQUS_SYNC_TIMEOUT', 30);
23
 
24
  /**
1345
 
1346
  // Single Sign-on Integration
1347
 
1348
+ function dsq_sso_login() {
1349
+ global $current_site;
1350
+ $sitename = get_bloginfo('name');
1351
+ $siteurl = site_url();
1352
+ $button = get_option('disqus_sso_button');
1353
+ $sso_login_str = 'this.sso = {
1354
+ name: "' . esc_js( $sitename ) . '",
1355
+ button: "' . $button . '",
1356
+ url: "' . $siteurl . '/wp-login.php",
1357
+ logout: "' . $siteurl . '/wp-login.php?action=logout",
1358
+ width: "800",
1359
+ height: "700"
1360
+ };';
1361
+ return $sso_login_str;
1362
+ }
1363
+
1364
  function dsq_sso() {
1365
  if ($key = get_option('disqus_partner_key')) {
1366
  // use old style SSO
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: disqus, alexkingorg, crowdfavorite, zeeg, tail, thetylerhayes
3
  Tags: comments, threaded, email, notification, spam, avatars, community, profile, widget, disqus
4
  Requires at least: 2.8
5
  Tested up to: 4.0
6
- Stable tag: 2.82
7
 
8
  The Disqus comment system replaces your WordPress comment system with your comments hosted and powered by Disqus.
9
 
@@ -60,6 +60,10 @@ Go to [http://disqus.com/help/wordpress](http://disqus.com/help/wordpress)
60
 
61
  == Changelog ==
62
 
 
 
 
 
63
  = 2.82 =
64
 
65
  * Fix PHP errors when there are no comments to sync
3
  Tags: comments, threaded, email, notification, spam, avatars, community, profile, widget, disqus
4
  Requires at least: 2.8
5
  Tested up to: 4.0
6
+ Stable tag: 2.83
7
 
8
  The Disqus comment system replaces your WordPress comment system with your comments hosted and powered by Disqus.
9
 
60
 
61
  == Changelog ==
62
 
63
+ = 2.83 =
64
+
65
+ * Fix errors when using SSO and rendering javascript inline
66
+
67
  = 2.82 =
68
 
69
  * Fix PHP errors when there are no comments to sync