-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin always adds e-content div to post content. Should it? #294
Comments
...via the marked library, vendored in. works!...but also triggers indieweb/wordpress-micropub#294
Just FYI: What I do in my theme (or rather, plugin, but a theme could do the same) is I check if there's a But I also completely override the Micropub post content in a filter callback, so ... That could work too, at least temporarily. Just remove the |
There's a setting that disables it entirely which my Post Kinds plugin turns on... I have some ideas I might pursue though. |
FWIW, I debugged this a bit more just now, and it's not specific to HTML content or JSON input, evidently the plugin always does this when it creates posts. Eg a form-encoded micropub request with <div class="e-content">
fooey
</div> |
(I don't actually know what should happen here! Just adding info for now.) |
Hi @dshanske et al! I'm seeing an odd behavior with HTML content: two
<div class="e-content">
s, one inside the other. I assume that's not expected? For example, this JSON request:results in this HTML:
I'm guessing because of this code?
wordpress-micropub/includes/class-micropub-render.php
Lines 96 to 100 in 9bccb0b
e-content
is probably up to the theme, right? Should the plugin be injecting this extrae-content
div?The text was updated successfully, but these errors were encountered: