Skip to content

Commit

Permalink
Editor button was outputting the wrong shortcode.
Browse files Browse the repository at this point in the history
  • Loading branch information
lesterchan committed Apr 22, 2014
1 parent 0173e94 commit 2d9c2e5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -27,6 +27,7 @@ WP-Polls is extremely customizable via templates and css styles and there are to
## Changelog

### Version 2.66
* FIXED: Editor button was outputting the wrong shortcode.
* FIXED: ReferenceError: pollsEdL10n is not defined if TinyMCE 4.0 is loaded outside the Add/Edit Posts/Pages.

### Version 2.65
Expand Down
2 changes: 1 addition & 1 deletion tinymce/plugins/polls/plugin.js
Expand Up @@ -6,7 +6,7 @@
poll_id = jQuery.trim(prompt(tinymce.translate('Error: Poll ID must be numeric') + "\n\n" + tinymce.translate('Please enter Poll ID again')));
}
if (poll_id >= -1 && poll_id != null && poll_id != "") {
editor.insertContent('[poll="' + poll_id + '"]');
editor.insertContent('[poll id="' + poll_id + '"]');
}
});
editor.addButton('polls', {
Expand Down
2 changes: 1 addition & 1 deletion tinymce/plugins/polls/plugin.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion wp-polls.php
Expand Up @@ -261,7 +261,7 @@ function poll_footer_admin() {
poll_id = jQuery.trim(prompt("<?php echo esc_js(__('Error: Poll ID must be numeric', 'wp-polls')); ?>\n\n<?php echo esc_js(__('Please enter Poll ID again', 'wp-polls')); ?>"));
}
if (poll_id >= -1 && poll_id != null && poll_id != "") {
QTags.insertContent('[poll="' + poll_id + '"]');
QTags.insertContent('[poll id="' + poll_id + '"]');
}
});
</script>
Expand Down

0 comments on commit 2d9c2e5

Please sign in to comment.