Plugin Directory

Changeset 1817759


Ignore:
Timestamp:
02/08/2018 12:07:42 AM (8 years ago)
Author:
ryanv12
Message:

Preparing for 3.0.9 release

Location:
disqus-comment-system/trunk
Files:
1 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • disqus-comment-system/trunk/README.txt

    r1817727 r1817759  
    44Requires at least: 4.4
    55Tested up to: 4.9.4
    6 Stable tag: 3.0.8
     6Stable tag: 3.0.9
     7Requires PHP: 5.6.0
    78
    89Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain readers, and grow your audience.
     
    119120== Changelog ==
    120121
     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
    121126= 3.0.8 =
    122127
  • disqus-comment-system/trunk/disqus.php

    r1817727 r1817759  
    1616 * Plugin URI:        https://disqus.com/
    1717 * Description:       Disqus helps publishers increase engagement and build loyal audiences. Supports syncing comments to your database for easy backup.
    18  * Version:           3.0.8
     18 * Version:           3.0.9
    1919 * Author:            Disqus
    2020 * Author URI:        https://disqus.com/
     
    3131
    3232/**
     33 * The code that runs during plugin activation (but not during updates).
     34 */
     35function 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/**
    3343 * The code that runs during plugin deactivation.
    3444 * This action is documented in includes/class-disqus-deactivator.php
     
    3949}
    4050
     51register_activation_hook( __FILE__, 'activate_disqus' );
    4152register_deactivation_hook( __FILE__, 'deactivate_disqus' );
    4253
     
    5869function run_disqus() {
    5970
    60     $plugin = new Disqus( '3.0.8' );
     71    $plugin = new Disqus( '3.0.9' );
    6172    $plugin->run();
    6273
Note: See TracChangeset for help on using the changeset viewer.