Changeset 3255299
- Timestamp:
- 03/13/2025 10:43:23 AM (11 months ago)
- Location:
- pipdisqus/trunk
- Files:
-
- 2 edited
-
comments_template.php (modified) (2 diffs)
-
pipdisqus.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pipdisqus/trunk/comments_template.php
r3250558 r3255299 27 27 $disqus_shortname = ''; 28 28 $options = get_option('pipdisqus_settings'); 29 $disqus_embed = 'https://'. sanitize_text_field($options['disqus_shortname']).'.disqus.com/embed.js';29 $disqus_embed = 'https://'.trim($options['disqus_shortname']).'.disqus.com/embed.js'; 30 30 31 31 ?> … … 36 36 var disqus_config = function () { 37 37 this.page.url = "<?php the_permalink(); ?>"; 38 this.page.identifier = "<?php echo esc_ attr($post->ID.' '.$post->guid); ?>";38 this.page.identifier = "<?php echo esc_js($post->ID.' '.$post->guid); ?>"; 39 39 this.page.title = "<?php the_title_attribute(); ?>"; 40 40 }; 41 41 (function() { 42 42 var d = document, s = d.createElement('script'); 43 s.src = '<?php echo esc_ url($disqus_embed); ?>';43 s.src = '<?php echo esc_js($disqus_embed); ?>'; 44 44 s.defer = 'defer'; 45 45 s.setAttribute('data-timestamp', +new Date()); -
pipdisqus/trunk/pipdisqus.php
r3250558 r3255299 62 62 } 63 63 64 $disqus_count = 'https://'. sanitize_text_field($options['disqus_shortname']).'.disqus.com/count.js';64 $disqus_count = 'https://'.trim($options['disqus_shortname']).'.disqus.com/count.js'; 65 65 ?> 66 66 <script id="dsq-count-scr" src="<?php echo esc_url($disqus_count); ?>" async defer></script> … … 107 107 } 108 108 109 $disqus_url = 'https://'. sanitize_text_field($options['disqus_shortname']).'.disqus.com/admin/moderate/';109 $disqus_url = 'https://'.trim($options['disqus_shortname']).'.disqus.com/admin/moderate/'; 110 110 111 111 $admin_bar->add_menu( array(
Note: See TracChangeset
for help on using the changeset viewer.