Plugin Directory

Changeset 1817727


Ignore:
Timestamp:
02/07/2018 10:59:42 PM (8 years ago)
Author:
ryanv12
Message:

Preparing for 3.0.8 release

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

Legend:

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

    r1817585 r1817727  
    44Requires at least: 4.4
    55Tested up to: 4.9.4
    6 Stable tag: 3.0.7
     6Stable tag: 3.0.8
    77
    88Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain readers, and grow your audience.
     
    119119== Changelog ==
    120120
     121= 3.0.8 =
     122
     123* Fixed a bug that prevented automatic installation when upgrading from version 2.86 or earlier.
     124
    121125= 3.0.7 =
    122126
  • disqus-comment-system/trunk/admin/class-disqus-admin.php

    r1817585 r1817727  
    6262        $this->version = $version;
    6363        $this->shortname = $shortname;
     64        $this->ensure_sync_token();
    6465    }
    6566
     
    277278        return esc_html( get_bloginfo( 'name' ) );
    278279    }
     280
     281    /**
     282     * Checks the stored `disqus_sync_token` and generates a new one if it doesn't exist.
     283     * This is used as a secret key for authenticating requests through the REST API.
     284     *
     285     * @since  3.0.8
     286     * @access private
     287     */
     288    private function ensure_sync_token() {
     289        $existing_token = get_option( 'disqus_sync_token', null );
     290        if ( empty( $existing_token ) ) {
     291            update_option( 'disqus_sync_token', bin2hex( random_bytes( 16 ) ) );
     292        }
     293    }
    279294}
  • disqus-comment-system/trunk/disqus.php

    r1817585 r1817727  
    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.7
     18 * Version:           3.0.8
    1919 * Author:            Disqus
    2020 * Author URI:        https://disqus.com/
     
    3131
    3232/**
    33  * The code that runs during plugin activation.
    34  * This action is documented in includes/class-disqus-activator.php
    35  */
    36 function activate_disqus() {
    37     require_once plugin_dir_path( __FILE__ ) . 'includes/class-disqus-activator.php';
    38     Disqus_Activator::activate();
    39 }
    40 
    41 /**
    4233 * The code that runs during plugin deactivation.
    4334 * This action is documented in includes/class-disqus-deactivator.php
     
    4839}
    4940
    50 register_activation_hook( __FILE__, 'activate_disqus' );
    5141register_deactivation_hook( __FILE__, 'deactivate_disqus' );
    5242
     
    6858function run_disqus() {
    6959
    70     $plugin = new Disqus( '3.0.7' );
     60    $plugin = new Disqus( '3.0.8' );
    7161    $plugin->run();
    7262
Note: See TracChangeset for help on using the changeset viewer.