Disqus Comment System - Version 3.0.9

Version Description

  • Added a check to deactivate plugin if PHP version is earlier than the minimum-supported version 5.6.
Download this release

Release Info

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

Code changes from version 3.0.8 to 3.0.9

README.txt CHANGED
@@ -3,7 +3,8 @@ Contributors: disqus, alexkingorg, crowdfavorite, zeeg, tail, thetylerhayes, rya
3
  Tags: comments, threaded, email, notification, spam, avatars, community, profile, widget, disqus
4
  Requires at least: 4.4
5
  Tested up to: 4.9.4
6
- Stable tag: 3.0.8
 
7
 
8
  Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain readers, and grow your audience.
9
 
@@ -118,6 +119,10 @@ Go to [https://disqus.com/help/wordpress](https://disqus.com/help/wordpress)
118
 
119
  == Changelog ==
120
 
 
 
 
 
121
  = 3.0.8 =
122
 
123
  * Fixed a bug that prevented automatic installation when upgrading from version 2.86 or earlier.
3
  Tags: comments, threaded, email, notification, spam, avatars, community, profile, widget, disqus
4
  Requires at least: 4.4
5
  Tested up to: 4.9.4
6
+ Stable tag: 3.0.9
7
+ Requires PHP: 5.6.0
8
 
9
  Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain readers, and grow your audience.
10
 
119
 
120
  == Changelog ==
121
 
122
+ = 3.0.9 =
123
+
124
+ * Added a check to deactivate plugin if PHP version is earlier than the minimum-supported version 5.6.
125
+
126
  = 3.0.8 =
127
 
128
  * Fixed a bug that prevented automatic installation when upgrading from version 2.86 or earlier.
admin/bundles/js/{en.disqus-admin.bundle.3.0.8.min.js → en.disqus-admin.bundle.3.0.9.min.js} RENAMED
File without changes
disqus.php CHANGED
@@ -15,7 +15,7 @@
15
  * Plugin Name: Disqus for WordPress
16
  * Plugin URI: https://disqus.com/
17
  * Description: Disqus helps publishers increase engagement and build loyal audiences. Supports syncing comments to your database for easy backup.
18
- * Version: 3.0.8
19
  * Author: Disqus
20
  * Author URI: https://disqus.com/
21
  * License: GPL-2.0+
@@ -29,6 +29,16 @@ if ( ! defined( 'WPINC' ) ) {
29
  die;
30
  }
31
 
 
 
 
 
 
 
 
 
 
 
32
  /**
33
  * The code that runs during plugin deactivation.
34
  * This action is documented in includes/class-disqus-deactivator.php
@@ -38,6 +48,7 @@ function deactivate_disqus() {
38
  Disqus_Deactivator::deactivate();
39
  }
40
 
 
41
  register_deactivation_hook( __FILE__, 'deactivate_disqus' );
42
 
43
  /**
@@ -57,7 +68,7 @@ require plugin_dir_path( __FILE__ ) . 'includes/class-disqus.php';
57
  */
58
  function run_disqus() {
59
 
60
- $plugin = new Disqus( '3.0.8' );
61
  $plugin->run();
62
 
63
  }
15
  * Plugin Name: Disqus for WordPress
16
  * Plugin URI: https://disqus.com/
17
  * Description: Disqus helps publishers increase engagement and build loyal audiences. Supports syncing comments to your database for easy backup.
18
+ * Version: 3.0.9
19
  * Author: Disqus
20
  * Author URI: https://disqus.com/
21
  * License: GPL-2.0+
29
  die;
30
  }
31
 
32
+ /**
33
+ * The code that runs during plugin activation (but not during updates).
34
+ */
35
+ function activate_disqus() {
36
+ if ( version_compare( phpversion(), '5.6', '<' ) ) {
37
+ deactivate_plugins( plugin_basename( __FILE__ ) );
38
+ wp_die( 'Disqus requires PHP version 5.6 or higher. Plugin was deactivated.' );
39
+ }
40
+ }
41
+
42
  /**
43
  * The code that runs during plugin deactivation.
44
  * This action is documented in includes/class-disqus-deactivator.php
48
  Disqus_Deactivator::deactivate();
49
  }
50
 
51
+ register_activation_hook( __FILE__, 'activate_disqus' );
52
  register_deactivation_hook( __FILE__, 'deactivate_disqus' );
53
 
54
  /**
68
  */
69
  function run_disqus() {
70
 
71
+ $plugin = new Disqus( '3.0.9' );
72
  $plugin->run();
73
 
74
  }