Changeset 2538249
- Timestamp:
- 05/26/2021 09:50:04 PM (5 years ago)
- Location:
- disqus-comment-system/trunk
- Files:
-
- 4 added
- 4 deleted
- 4 edited
-
README.txt (modified) (2 diffs)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.21.js (deleted)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.21.js.map (deleted)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.21.min.js (deleted)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.21.min.js.map (deleted)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.22.js (added)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.22.js.map (added)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.22.min.js (added)
-
admin/bundles/js/en.disqus-admin.bundle.3.0.22.min.js.map (added)
-
admin/class-disqus-admin.php (modified) (1 diff)
-
disqus.php (modified) (2 diffs)
-
public/js/comment_embed.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
disqus-comment-system/trunk/README.txt
r2466762 r2538249 4 4 Requires at least: 4.4 5 5 Tested up to: 5.6 6 Stable tag: 3.0.2 16 Stable tag: 3.0.22 7 7 Requires PHP: 5.6 8 8 … … 125 125 == Changelog == 126 126 127 = 3.0.20 = 127 = 3.0.22 = 128 * Added improvements to manual comment syncing (thanks Artem Russakovskii) 129 * Fixed a bug with the embed handling pages with missing container IDs 130 * Fixed a bug with REST URLs handling emtpy host configurations 131 132 = 3.0.21 = 128 133 * Fixed issue with mismatched DISQUSVERSION causing admin issues 129 134 -
disqus-comment-system/trunk/admin/class-disqus-admin.php
r2044176 r2538249 160 160 public function dsq_filter_rest_url( $rest_url ) { 161 161 $rest_url_parts = parse_url( $rest_url ); 162 $rest_host = $rest_url_parts['host']; 163 if ( array_key_exists( 'port', $rest_url_parts ) ) { 164 $rest_host .= ':' . $rest_url_parts['port']; 165 } 166 167 $current_host = isset( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST'] : $rest_host; 168 169 if ( $rest_host !== $current_host ) { 170 $rest_url = preg_replace( '/' . $rest_host . '/', $current_host, $rest_url, 1 ); 162 if ( array_key_exists( 'host', $rest_url_parts ) ) { 163 $rest_host = $rest_url_parts['host']; 164 if ( array_key_exists( 'port', $rest_url_parts ) ) { 165 $rest_host .= ':' . $rest_url_parts['port']; 166 } 167 168 $current_host = isset( $_SERVER['HTTP_HOST'] ) ? $_SERVER['HTTP_HOST'] : $rest_host; 169 170 if ( $rest_host !== $current_host ) { 171 $rest_url = preg_replace( '/' . $rest_host . '/', $current_host, $rest_url, 1 ); 172 } 171 173 } 172 174 -
disqus-comment-system/trunk/disqus.php
r2466762 r2538249 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.2 118 * Version: 3.0.22 19 19 * Author: Disqus 20 20 * Author URI: https://disqus.com/ … … 25 25 */ 26 26 27 $DISQUSVERSION = '3.0.2 1';27 $DISQUSVERSION = '3.0.22'; 28 28 29 29 // If this file is called directly, abort. -
disqus-comment-system/trunk/public/js/comment_embed.js
r1817585 r2538249 24 24 25 25 (function() { 26 var dsq = document.createElement('script'); 27 dsq.type = 'text/javascript'; 28 dsq.async = true; 29 dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js'; 30 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); 26 if (document.getElementById(disqus_container_id)) { 27 var dsq = document.createElement('script'); 28 dsq.type = 'text/javascript'; 29 dsq.async = true; 30 dsq.src = 'https://' + disqus_shortname + '.disqus.com/embed.js'; 31 (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); 32 } 31 33 })();
Note: See TracChangeset
for help on using the changeset viewer.