Allow to use empty tag span without attributes in WordPress

It's no secret that when you add an empty tag span in text mode WordPress editor and saving it all appears normal. But only you switch to visual mode tag cut out. Thus, in standard functionality using empty tag span without attributes in WordPress is not possible.

Yes, you can use empty tag span in text mode WordPress editor, but it is not convenient. You always need keep in your mind where are you use empty tag span without attributes and don't switch editor at this place in visual mode. Developing one site i need allow to use empty tag span without attributes. For deciding such problem you only need in the file function.php paste next code.

I checked it on version 4.6.1. It is allow to use empty tag span without attributes in WordPress.


Leave a Reply

Your email address will not be published. Required fields are marked *