Plugin Directory

Changeset 2454105


Ignore:
Timestamp:
01/11/2021 07:19:39 PM (5 years ago)
Author:
Disqus
Message:

Preparing for 3.0.18 release

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

Legend:

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

    r2044174 r2454105  
    11=== Disqus Comment System ===
    2 Contributors: disqus, alexkingorg, crowdfavorite, zeeg, tail, thetylerhayes, ryanv12, iamfrancisyo, brevityness
    3 Tags: comments, threaded, email, notification, spam, avatars, community, profile, widget, disqus
     2Contributors: disqus, alexkingorg, crowdfavorite, zeeg, tail, thetylerhayes, ryanv12, iamfrancisyo, brevityness, tterb
     3Tags: disqus, comments, engagement, threaded, email, notification, spam, avatars, community, profile, widget
    44Requires at least: 4.4
    5 Tested up to: 5.1
    6 Stable tag: 3.0.17
    7 Requires PHP: 5.4
     5Tested up to: 5.6
     6Stable tag: 3.0.18
     7Requires PHP: 5.6
    88
    99Disqus is the web's most popular comment system. Use Disqus to increase engagement, retain readers, and grow your audience.
     
    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, CBS, and Entertainment Weekly
     25* Trusted by sites like ABC News, Entertainment Weekly, and Rotten Tomatoes
    2626
    2727= Disqus Features =
     
    4343* Instant activity notifications, email notifications, and digests pull readers back in
    4444* User profiles that show you recent comment history and frequented communities
    45 * Discovery widget that shows active discussions happening elsewhere on your site
     45* Recommendations widget that shows where active discussions are happening elsewhere on your site
    4646
    4747= Moderation Features =
     
    8181= How do I set up Single Sign-On (SSO)? =
    8282
    83 SSO allows users in your database to comment without requiring them to register with Disqus. Access to SSO is currently available as an add-on for users with a [Pro subscription](https://help.disqus.com/customer/en/portal/articles/2759918-disqus-pricing-and-plans#pro-plan). If you would like to enable this feature, [contact our Support team](https://disqus.com/support/?article=contact_SSO). Also check out our guide for [setting up SSO on WordPress](https://help.disqus.com/customer/portal/articles/1148635).
     83SSO allows users in your database to comment without requiring them to register with Disqus. Access to SSO is currently available as an add-on for users with a [Business subscription](https://help.disqus.com/customer/en/portal/articles/2759918-disqus-pricing-and-plans#business-plan). If you would like to enable this feature, [contact our Support team](https://disqus.com/support/?article=contact_SSO). Also check out our guide for [setting up SSO on WordPress](https://help.disqus.com/customer/portal/articles/1148635).
    8484
    8585= I’m experiencing an issue with my installation of Disqus. =
     
    112112
    1131131. Disqus Comments
    114 2. Comment Reply
    115 3. Disqus Audience Platform
     1142. Disqus Audience Platform
     1153. Comment Reply
    1161164. Featured Comment
    117 5. Discovery Box (part of Disqus Comments)
     1175. Recommendations (part of Disqus Comments)
    1181186. Mentions
    1191197. Real-time Comments
     
    124124
    125125== Changelog ==
     126
     127= 3.0.18 =
     128* Tested plugin with WordPress 5.6 and updated documentation
     129* Fixed count.js script being loaded on unnecessary pages
     130* Fixed comments showing sync date instead of creation date in WordPress admin
    126131
    127132= 3.0.17 =
  • disqus-comment-system/trunk/disqus.php

    r2044174 r2454105  
    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.17
     18 * Version:           3.0.18
    1919 * Author:            Disqus
    2020 * Author URI:        https://disqus.com/
     
    2525 */
    2626
    27 $DISQUSVERSION = '3.0.17';
     27$DISQUSVERSION = '3.0.18';
    2828
    2929// If this file is called directly, abort.
  • disqus-comment-system/trunk/public/class-disqus-public.php

    r1881615 r2454105  
    209209     */
    210210    public function enqueue_comment_count() {
    211         if ( $this->dsq_can_load( 'count' ) ) {
     211        global $post;
     212
     213        if ( $this->dsq_comment_count_can_load_for_post( $post ) ) {
    212214
    213215            $count_vars = array(
     
    259261        if ( is_bool( $site_allows_load ) ) {
    260262            return $site_allows_load;
     263        }
     264
     265        return true;
     266    }
     267
     268    /**
     269     * Determines if Disqus is configured and should load the comment count script on a given page.
     270     *
     271     * @since     3.0.18
     272     * @access    private
     273     * @param     WP_Post $post    The WordPress post used to determine if Disqus can be loaded.
     274     * @return    boolean          Whether Disqus is configured properly and should load the comment count on the current page.
     275     */
     276    private function dsq_comment_count_can_load_for_post( $post ) {
     277        // Checks if the plugin is configured properly
     278        // and is a valid page.
     279        if ( ! $this->dsq_can_load( 'count' ) ) {
     280            return false;
     281        }
     282
     283        // Make sure we have a $post object.
     284        if ( ! isset( $post ) ) {
     285            return false;
     286        }
     287
     288        // Make sure comments are open if it's a single post page.
     289        if ( is_singular() && ! comments_open() ) {
     290            return false;
    261291        }
    262292
  • disqus-comment-system/trunk/rest-api/class-disqus-rest-api.php

    r2044174 r2454105  
    807807            'comment_author_url' => isset( $author['url'] ) ? $author['url'] : '',
    808808            'comment_content' => $post['raw_message'],
     809            'comment_date' => $post['createdAt'],
    809810            'comment_date_gmt' => $post['createdAt'],
    810811            'comment_type' => '', // Leave blank for a regular comment.
Note: See TracChangeset for help on using the changeset viewer.