• Resolved fprat

    (@fprat)


    Sorry, maybe I won’t be able to provide all the relevant info. I was an Editor in a WordPress.org-powered site and I’m not sure about the installed plugins. At least, we’ve got one for SEO. Not sure whether it can have to do with my problem or not. The concrete symptom I have observed is:

    I write Menú menjador abril 2015 | <font color=808080>Menú comedor abril 2015</font> as a post title, but it is converted into Menú menjador abril 2015 | Menú comedor abril 2015 (the HTML tag is filtered out) when I try to publish or update the post.

    Who can be filtering out that tag? I have tried with different browsers (Chrome, Firefox) and different operating systems (W7, Linux). I’ve tried again after being promoted to Administrator (just for the sake of identifying the problem). I have observed that <b> are not removed in my post titles. And the real site admin is able to wrote <font color=808080> tags that are preserved in titles.

    Any idea about what can I try or suggest to the real admin?

    Thanks. And sorry for the incomplete explanation.

Viewing 7 replies - 1 through 7 (of 7 total)
  • WPyogi

    (@wpyogi)

    Might be that <font> tags are not supported in HTML5

    http://www.w3schools.com/tags/tag_font.asp

    Thread Starter fprat

    (@fprat)

    Thank you for your kind response, WPyogi.

    However, an HTML5-compliant tag as <span style="color: #808080;"> is filtered-out the same way <font color=808080> was.

    Moreover: one point that makes feel completely lost is why that filtering happens to me but the real site admin doesn’t suffer it.

    So I still haven’t found a valid explanation for the observed behavior. 🙁

    More ideas?

    WPyogi

    (@wpyogi)

    Are you switching between the text and visual editors? That will strip out code. Or where are you entering this code?

    Thread Starter fprat

    (@fprat)

    In the post-title text box.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Moreover: one point that makes feel completely lost is why that filtering happens to me but the real site admin doesn’t suffer it.

    This is the key phrase here. You’re not an “Administrator” or an “Editor” on the site, are you?

    https://codex.wordpress.org/FAQ_Security#Why_are_some_users_allowed_to_post_unfiltered_HTML.3F

    Admins and Editors have a specific grant to them called “Unfiltered HTML”, allowing them to post any HTML they like. Lesser users don’t have that, and their HTML capabilities are more limited. This is for security reasons.

    For the post content, font and span are indeed allowed (although I think the style attribute isn’t allowed on spans). For the post title, the limits are stricter. Basically it’s limited to the same thing you can post in normal comments.

    For Admins and Editors, there are no limits.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Oh, one more thing, if this is a multi-site configuration, then even Admins and Editors on individual sites are limited, and only the Super-Admin of the whole multi-site setup has these unlimited html powers. Again, security.

    Thread Starter fprat

    (@fprat)

    That’s the point! I was “editor” and I’m “admin” of a site in a multi-site configuration. And the site admin being able to include in post titles HTML I can’t use is the Super-Admin.

    So the info you have provided me with explains all the behavior I have observed so far.

    Thank you very much! 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Why are `font` tags filtered-out from post titles I edit?’ is closed to new replies.