admin管理员组文章数量:1124169
Are the differences documented somewhere between the software wordpress uses and the wordpress you use to install locally ? I'm running into subtle differences that cause bugs when I develop locally then deploy to wordpress.
One difference is the local instal editor being encapsulated in an iframe whereas wordpress uses a class to try and isolate styles to the editor. Both my remote site and local install are using wordpress 6.4.3 - but based off the different behavior it feels like wordpress has customizations on top of version 6.4.3
Are the differences documented somewhere between the software wordpress.com uses and the wordpress you use to install locally ? I'm running into subtle differences that cause bugs when I develop locally then deploy to wordpress.com.
One difference is the local instal editor being encapsulated in an iframe whereas wordpress.com uses a class to try and isolate styles to the editor. Both my remote site and local install are using wordpress 6.4.3 - but based off the different behavior it feels like wordpress.com has customizations on top of version 6.4.3
Share Improve this question asked Mar 10, 2024 at 16:25 aaaaaaaaaaaa 1306 bronze badges 4- 1 The iframe in the editor is unrelated to .com vs '.org'. It's based on whether you're using classic meta boxes or blocks built with an older API version: make.wordpress.org/core/2023/07/18/… – Jacob Peattie Commented Mar 11, 2024 at 3:02
- thanks for that link - I'll dig in, however I'm using my own theme with my own blocks along with those builtin to 6.4.3. All my blocks are version 3 - so not sure how that could apply. The only thing I can imagine is if any wordpress.com plugins which can't be removed are causing this behavior - which imo would indicate a difference between wordpress.com vs local install – aaaaaa Commented Mar 11, 2024 at 14:38
- 1 WordPress.com provides its own blocks, they might not all be v3. – Jacob Peattie Commented Mar 12, 2024 at 3:54
- Thanks so much @JacobPeattie - if you want to post an answer I will give you credit instead of myself. – aaaaaa Commented Mar 12, 2024 at 15:30
1 Answer
Reset to default 2Specifically regarding the iframe discrepancy - Jacob Peattie was right in the comments. This was caused by jetpack's builtin blocks not being registered with version 3. Once I disabled them via Jetpack -> Settings -> Writing -> Composing and unchecking "Jetpack blocks give you the power...", the iframe appeared as expected.
Here's the link explaining the iframe behavior correlated with the block api version 3
My question was more broad than this specific issue, however there are probably many small incompatibilities such as this which will not all be documented in one spot. If I run into more I will post additional questions.
本文标签: documentationwordpresscom vs local install
版权声明:本文标题:documentation - wordpress.com vs local install 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736618094a1945515.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论