Skip to content

Commit dd88083

Browse files
committed
fix: removed storyURL and storyID
1 parent 0a7dd47 commit dd88083

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

inc/comments-template.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,17 @@
2929
Coral.createStreamEmbed({
3030
id: "coral_thread",
3131
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 ); ?>"
3533
});
3634
};
3735
(d.head || d.body).appendChild(s);
3836
})();
3937
</script>
4038
<?php
4139
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>
4341
<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'), {
4543
talk: '<?php echo esc_url( $talk_url ); ?>'
4644
});
4745
"></script>

talk.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: Coral by Vox Media
44
* Plugin URI: https://coralproject.net
55
* Description: A plugin to replace stock WP commenting with Coral by Vox Media comments.
6-
* Version: 0.2.2
6+
* Version: 0.2.3
77
* Author: Coral by Vox Media, Alley Interactive
88
* Author URI: https://www.coralproject.net
99
* License: Apache 2.0

0 commit comments

Comments
 (0)