Changeset 1819436
- Timestamp:
- 02/09/2018 11:03:17 PM (8 years ago)
- Location:
- disqus-comment-system/trunk
- Files:
-
- 3 added
- 1 deleted
- 3 edited
-
README.txt (modified) (2 diffs)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.11.min.js (deleted)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.12.js (added)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.12.js.map (added)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.12.min.js (added)
-
disqus.php (modified) (2 diffs)
-
public/class-disqus-public.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
disqus-comment-system/trunk/README.txt
r1818662 r1819436 4 4 Requires at least: 4.4 5 5 Tested up to: 4.9.4 6 Stable tag: 3.0.1 16 Stable tag: 3.0.12 7 7 Requires PHP: 5.4 8 8 … … 123 123 == Changelog == 124 124 125 = 3.0.12 = 126 127 * Disabled browser autocomplete for site configuration form 128 * Fixed an issue where admin JavaScript bundle was missing for sites with WP_DEBUG enabled 129 * Implemented a dsq_can_load filter for custom control of when Disqus loads 130 125 131 = 3.0.11 = 126 132 -
disqus-comment-system/trunk/disqus.php
r1818662 r1819436 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.1 118 * Version: 3.0.12 19 19 * Author: Disqus 20 20 * Author URI: https://disqus.com/ … … 69 69 function run_disqus() { 70 70 71 $plugin = new Disqus( '3.0.1 1' );71 $plugin = new Disqus( '3.0.12' ); 72 72 $plugin->run(); 73 73 -
disqus-comment-system/trunk/public/class-disqus-public.php
r1817585 r1819436 165 165 global $post; 166 166 167 if ( $this->dsq_can_load( ) ) {167 if ( $this->dsq_can_load( 'count' ) ) { 168 168 $disqus_identifier = esc_attr( $this->dsq_identifier_for_post( $post ) ); 169 169 return '<span class="dsq-postid" data-dsqidentifier="' . $disqus_identifier . '">' … … 210 210 */ 211 211 public function enqueue_comment_count() { 212 if ( $this->dsq_can_load( ) ) {212 if ( $this->dsq_can_load( 'count' ) ) { 213 213 214 214 $count_vars = array( … … 243 243 * @since 3.0 244 244 * @access private 245 * @return boolean Whether Disqus is configured properly and can load on the current page. 246 */ 247 private function dsq_can_load() { 245 * @param string $script_name The name of the script Disqus intends to load. 246 * @return boolean Whether Disqus is configured properly and can load on the current page. 247 */ 248 private function dsq_can_load( $script_name ) { 248 249 // Don't load any Disqus scripts if there's no shortname. 249 250 if ( ! $this->shortname ) { … … 254 255 if ( is_feed() ) { 255 256 return false; 257 } 258 259 $site_allows_load = apply_filters( 'dsq_can_load', $script_name ); 260 if ( is_bool( $site_allows_load ) ) { 261 return $site_allows_load; 256 262 } 257 263 … … 270 276 // Checks if the plugin is configured properly 271 277 // and is a valid page. 272 if ( ! $this->dsq_can_load( ) ) {278 if ( ! $this->dsq_can_load( 'embed' ) ) { 273 279 return false; 274 280 }
Note: See TracChangeset
for help on using the changeset viewer.