Comments (4)
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 .e-content
in the post content already and only add the class if there isn't. (For some post types, it makes sense to have a, e.g., reply context outside of .e-context
, and since---in my case---both are part of my post content I can't just add an overall e-content
class. Hence the check.)
But I also completely override the Micropub post content in a filter callback, so ... That could work too, at least temporarily. Just remove the div
in a filter.
from wordpress-micropub.
There's a setting that disables it entirely which my Post Kinds plugin turns on... I have some ideas I might pursue though.
from wordpress-micropub.
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 content=fooey
results in this content HTML:
<div class="e-content">
fooey
</div>
from wordpress-micropub.
(I don't actually know what should happen here! Just adding info for now.)
from wordpress-micropub.
Related Issues (20)
- Media Endpoitn returns 403 response HOT 2
- Refactor to Allow Content to Be Inserted into a Custom Location HOT 1
- Update Links in main file HOT 1
- Sideloading Images Not Working HOT 1
- Implement Cache-Control Headers on Queries
- mp-destination support
- Add visibility to q=config
- Update Media Endpoint Return HOT 1
- No Longer Store Entire Auth Response
- Presence of <SVG in POSTed content results in 403 HOT 7
- Uncaught TypeError: preg_match(): Argument #2 ($subject) must be of type string, array given in /[...]/wp-includes/formatting.php:1595 HOT 3
- Undefined variable: $props
- Support HTML content HOT 3
- Handle PHP 5.6 incompatibility HOT 1
- Support follow-of mf2 property HOT 1
- Remove Draft Setting HOT 1
- Support additional properties in add/update HOT 2
- Automatically set post properties to photo properties
- First line of content always outside <p> tag HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wordpress-micropub.