Changeset 1817727
- Timestamp:
- 02/07/2018 10:59:42 PM (8 years ago)
- Location:
- disqus-comment-system/trunk
- Files:
-
- 1 added
- 2 deleted
- 3 edited
-
README.txt (modified) (2 diffs)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.7.min.js (deleted)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.8.min.js (added)
-
admin/class-disqus-admin.php (modified) (2 diffs)
-
disqus.php (modified) (4 diffs)
-
includes/class-disqus-activator.php (deleted)
Legend:
- Unmodified
- Added
- Removed
-
disqus-comment-system/trunk/README.txt
r1817585 r1817727 4 4 Requires at least: 4.4 5 5 Tested up to: 4.9.4 6 Stable tag: 3.0. 76 Stable tag: 3.0.8 7 7 8 8 Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain readers, and grow your audience. … … 119 119 == Changelog == 120 120 121 = 3.0.8 = 122 123 * Fixed a bug that prevented automatic installation when upgrading from version 2.86 or earlier. 124 121 125 = 3.0.7 = 122 126 -
disqus-comment-system/trunk/admin/class-disqus-admin.php
r1817585 r1817727 62 62 $this->version = $version; 63 63 $this->shortname = $shortname; 64 $this->ensure_sync_token(); 64 65 } 65 66 … … 277 278 return esc_html( get_bloginfo( 'name' ) ); 278 279 } 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 } 279 294 } -
disqus-comment-system/trunk/disqus.php
r1817585 r1817727 16 16 * Plugin URI: https://disqus.com/ 17 17 * Description: Disqus helps publishers increase engagement and build loyal audiences. Supports syncing comments to your database for easy backup. 18 * Version: 3.0. 718 * Version: 3.0.8 19 19 * Author: Disqus 20 20 * Author URI: https://disqus.com/ … … 31 31 32 32 /** 33 * The code that runs during plugin activation.34 * This action is documented in includes/class-disqus-activator.php35 */36 function activate_disqus() {37 require_once plugin_dir_path( __FILE__ ) . 'includes/class-disqus-activator.php';38 Disqus_Activator::activate();39 }40 41 /**42 33 * The code that runs during plugin deactivation. 43 34 * This action is documented in includes/class-disqus-deactivator.php … … 48 39 } 49 40 50 register_activation_hook( __FILE__, 'activate_disqus' );51 41 register_deactivation_hook( __FILE__, 'deactivate_disqus' ); 52 42 … … 68 58 function run_disqus() { 69 59 70 $plugin = new Disqus( '3.0. 7' );60 $plugin = new Disqus( '3.0.8' ); 71 61 $plugin->run(); 72 62
Note: See TracChangeset
for help on using the changeset viewer.