File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 29
29
Coral.createStreamEmbed({
30
30
id: "coral_thread",
31
31
autoRender: true,
32
- rootURL: "<?php echo esc_url ( $ talk_url ); ?> ",
33
- storyURL: "<?php echo home_url ( "?p= " . get_the_ID () ); ?> ",
34
- storyID: "<?php echo get_the_ID (); ?> ",
32
+ rootURL: "<?php echo esc_url ( $ talk_url ); ?> "
35
33
});
36
34
};
37
35
(d.head || d.body).appendChild(s);
38
36
})();
39
37
</script>
40
38
<?php
41
39
else : ?>
42
- <div class="<?php echo esc_attr ( $ talk_container_classes ); ?> " id="<?php echo esc_attr ( $ div_id ); ?> "></div>
40
+ <div class="<?php echo esc_attr ( $ talk_container_classes ); ?> " id="coral_thread "></div>
43
41
<script src="<?php echo esc_url ( $ static_url . '/static/embed.js ' ); ?> " async onload="
44
- Coral.talkStream = Coral.Talk.render(document.getElementById('<?php echo esc_js ( $ div_id ); ?> '), {
42
+ Coral.talkStream = Coral.Talk.render(document.getElementById('coral_thread '), {
45
43
talk: '<?php echo esc_url ( $ talk_url ); ?> '
46
44
});
47
45
"></script>
Original file line number Diff line number Diff line change 3
3
* Plugin Name: Coral by Vox Media
4
4
* Plugin URI: https://coralproject.net
5
5
* Description: A plugin to replace stock WP commenting with Coral by Vox Media comments.
6
- * Version: 0.2.2
6
+ * Version: 0.2.3
7
7
* Author: Coral by Vox Media, Alley Interactive
8
8
* Author URI: https://www.coralproject.net
9
9
* License: Apache 2.0
You can’t perform that action at this time.
0 commit comments