Plugin Directory

Changeset 1818662


Ignore:
Timestamp:
02/09/2018 01:18:06 AM (8 years ago)
Author:
ryanv12
Message:

Preparing for 3.0.11 release

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

Legend:

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

    r1818589 r1818662  
    44Requires at least: 4.4
    55Tested up to: 4.9.4
    6 Stable tag: 3.0.10
     6Stable tag: 3.0.11
    77Requires PHP: 5.4
    88
     
    2323* Keep spam out with our best-in-class anti-spam filter powered by Akismet
    2424* Single profile for commenting on over 4 million sites including social login support for Facebook, Twitter, and Google accounts
    25 * Trusted by sites like Wired, The Atlantic, and EW
     25* Trusted by sites like Wired, CBS, and Entertainment Weekly
    2626
    2727= Disqus Features =
     
    8989== Installation ==
    9090
     911. Go to **"Plugins"** > **"Add Plugin"**
     922. Search for **"Disqus Comment System"** by Disqus
     933. Click **"Install Now"**
     944. Activate the plugin
     955. (**Automatic: easiest**) From the Install page of the Disqus plugin settings, follow the Automatic Installation steps to set up Disqus on your site. During this process, you will need to [create a Disqus account](https://disqus.com/profile/signup/) and register your site. This also creates the API application required for enabling Comment Syncing.
     966. (**Manual: fastest**) Enter your site's [Disqus shortname](https://help.disqus.com/customer/en/portal/articles/466208) in **Site Configuration**. This requires you to have [created a Disqus account](https://disqus.com/profile/signup/) and registered your site.
     97
    9198**NOTE: It is recommended that you [backup your database](http://codex.wordpress.org/Backing_Up_Your_Database) before installing the plugin.**
    9299
    93 1. Unpack archive to this archive to the 'wp-content/plugins/' directory inside
    94    of WordPress
    95 
    96   * Maintain the directory structure of the archive (all extracted files
    97     should exist in 'wp-content/plugins/disqus-comment-system/'
    98 
    99 2. From your blog administration, click on Comments to change settings
    100    (WordPress 2.0 users can find the settings under Options > Disqus.)
     100= Syncing comments to WordPress =
     101Comment Syncing copies comments made in Disqus to your WordPress installation as backup in case you ever decide to switch back to native WordPress comments. Syncing is not enabled by default. To enable syncing, you'll need to set it up either by creating an API application (follow [instructions here](https://help.disqus.com/customer/portal/articles/960360)) or via Automatic Installation in the plugin.
     102
     103For more information, go to [https://help.disqus.com/customer/portal/articles/960360](https://help.disqus.com/customer/portal/articles/960360)
    101104
    102105= Installation trouble? =
     
    120123== Changelog ==
    121124
     125= 3.0.11 =
     126
     127* Improved UX on updating the site configuration manually
     128* Fixed an issue causing a site crash with PHP version 5.2
     129* Added additional information to support diagnostics
     130
    122131= 3.0.10 =
    123132
  • disqus-comment-system/trunk/admin/class-disqus-admin.php

    r1817727 r1818662  
    103103        }
    104104
     105        if ( ! function_exists( 'get_plugins' ) ) {
     106            require_once ABSPATH . 'wp-admin/includes/plugin.php';
     107        }
     108
     109        global $wp_version;
     110
    105111        $admin_js_vars = array(
    106112            'rest' => array(
     
    121127                'name' => $this->get_site_name(),
    122128                'pluginVersion' => $this->version,
     129                'allPlugins' => get_plugins(),
     130                'phpVersion' => phpversion(),
     131                'wordpressVersion' => $wp_version,
    123132            ),
    124133        );
  • disqus-comment-system/trunk/disqus.php

    r1818589 r1818662  
    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.10
     18 * Version:           3.0.11
    1919 * Author:            Disqus
    2020 * Author URI:        https://disqus.com/
     
    6969function run_disqus() {
    7070
    71     $plugin = new Disqus( '3.0.10' );
     71    $plugin = new Disqus( '3.0.11' );
    7272    $plugin->run();
    7373
  • disqus-comment-system/trunk/rest-api/class-disqus-rest-api.php

    r1818589 r1818662  
    334334
    335335        // Filter out pingbacks/trackings and comments that have been created by Disqus via syncing.
    336         $filtered_comments = array_filter( $comments, function ( $value ) {
    337             return empty( $value->comment_type ) && strpos( $value->comment_agent, 'Disqus' ) === false;
    338         } );
     336        $filtered_comments = array_filter( $comments, array( $this, 'is_pingback_or_disqus_comment' ) );
    339337
    340338        $response_data = array(
     
    353351
    354352        return $this->rest_get_response( $response_data );
     353    }
     354
     355    /**
     356     * Checks a comment state to determine if it's valid for syncing.
     357     *
     358     * @since     3.0.11
     359     * @param     array $comment    The WordPress comment instance.
     360     * @return    boolean           Whether the comment is valid for syncing.
     361     */
     362    private function is_pingback_or_disqus_comment( $comment ) {
     363        return empty( $comment->comment_type ) && strpos( $comment->comment_agent, 'Disqus' ) === false;
    355364    }
    356365
Note: See TracChangeset for help on using the changeset viewer.