Plugin Directory

Changeset 3255299


Ignore:
Timestamp:
03/13/2025 10:43:23 AM (11 months ago)
Author:
pipdig
Message:

change escape type

Location:
pipdisqus/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • pipdisqus/trunk/comments_template.php

    r3250558 r3255299  
    2727$disqus_shortname = '';
    2828$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';
    3030
    3131?>
     
    3636    var disqus_config = function () {
    3737        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); ?>";
    3939        this.page.title = "<?php the_title_attribute(); ?>";
    4040    };
    4141    (function() {
    4242        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); ?>';
    4444        s.defer = 'defer';
    4545        s.setAttribute('data-timestamp', +new Date());
  • pipdisqus/trunk/pipdisqus.php

    r3250558 r3255299  
    6262    }
    6363   
    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';
    6565    ?>
    6666    <script id="dsq-count-scr" src="<?php echo esc_url($disqus_count); ?>" async defer></script>
     
    107107    }
    108108   
    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/';
    110110   
    111111    $admin_bar->add_menu( array(
Note: See TracChangeset for help on using the changeset viewer.