Info
- 6 posts
- 3 voices
- Started 2 years ago by tellyworth
- Latest reply from kevinjohngallagher
- This topic is not resolved
Live Comment Preview plugin causes spurious Akismet API calls
-
- Posted 2 years ago #
Howdy,
It looks like the Live Comment Preview causes unexpected API calls to Akismet - a separate API call each time the preview updates (i.e. almost every keystroke).
I assume this happens because the preview plugin calls the pre_post filter, which in turn triggers bb_ksd_check_post().
I imagine there may be other plugins that cause a similar problem. Would like to help fix it but I have only a superficial understanding of the bbPress code. Suggestions for the Right Way to do it?
-
- Posted 2 years ago #
From my understanding, it calls pre_post, so it can display the html part in the preview. At least that's how I see it.
Cause with jQuery, you could just make everything you type appear in the preview div, but that wouln't change <img src="link"> to an image.
-
- Posted 1 year ago #
From my understanding, it calls pre_post, so it can display the html part in the preview. At least that's how I see it.
Well, yes, that's true. But pre_post_filter triggers an API call to Akismet.
I don't know which plugin is doing the wrong thing here, but either Akismet or Live Comment Preview needs to use a different filter.
Any devs care to weigh in? Should akismet use bb_new_post/bb_update_post instead? (It certainly wouldn't be the only issue with the Akismet plugin).
-
- Posted 1 year ago #
The simple solution to this is to use a Live Comment Preview plugin that doesn't make any callbacks.
-
- Posted 1 year ago #
But if you do, can it show all the parsed html?
Live Comment Preview, will let me see all the html tags I've used.
-
- Posted 1 year ago #
Yeah, just find one that parses the HTML.
-
This topic is
closed