className missing when saving image
-
Hello,
After upgrading to WordPress 6.0, I am facing a problem with image alignment.
It looks as if everything is normal, notice the right-aligned image on:
https://www.leti.lt/wordpress/accueil/However, if I save the post this alignment is no longer correct:
https://www.leti.lt/wordpress/aaaa/I found that the problem can be worked around with a “surgical fix”: In the “wp:image” statement, a “className” declaration is missing. It should read:
<!– wp:image {“align”:”right”,”id”:23,”width”:224,”height”:148,”sizeSlug”:”large”,”className”:”alignright”} –>
So, adding “className”:”alignright” makes it work.
What can I change (possibly in functions.php) to get the proper “className” declarations (copied from figure class)?
The page I need help with: [log in to see the link]
- The topic ‘className missing when saving image’ is closed to new replies.