• Resolved hamansharma

    (@hamansharma)


    All of a sudden I’m getting this error “The?unfiltered_html?capability is required to edit this block. Contact an admin to enable this feature. This is not an error.”

    Because of this the code highlight is not working. The native WordPress Code block works fine. I’m logged in as an admin for making changes and it has unfiltered_html turned on.

    I also tested with a user that has unfiltered_html turned on and still getting this error. Any thoughts on why this would be?

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Kevin Batdorf

    (@kbat82)

    Thanks for reporting it. Has anything else changed? New plugin maybe? I just have a simple check for current_user_can('unfiltered_html') that disables the UI if false.

    Do you know how to check the browser console? Can you type window.codeBlockPro there and see what it says?

    The reason I have that check is because WP needs it in order to put svg code into the database, which includes some of the code block design elements.

    Plugin Author Kevin Batdorf

    (@kbat82)

    @hamansharma Others have reported a conflict with All-In-One SEO causing this. If you’re still using the plugin can you check whether you have that installed? I’ll work on a fix in the meantime. Thanks

    Plugin Author Kevin Batdorf

    (@kbat82)

    This should hopefully be fixed in the latest release just now. But if anyone else has this issue, please open a new issue! Thanks

    Thread Starter hamansharma

    (@hamansharma)

    Hi Kevin, sorry for the late response. After your last message, I disabled the all in one seo plugin and it worked. Regarding your latest message, was this an issue on your end or the other seo plugin?

    Plugin Author Kevin Batdorf

    (@kbat82)

    No worries, thanks for confirming it was the conflict. Seems pretty likely to be the case then.

    I couldn’t reproduce it with AIOSEO so I’m not sure, but my implementation was so trivial that I can’t imagine why or how there would be a conflict.

    This line here was being stripped out somehow https://github.com/KevinBatdorf/code-block-pro/blob/1.24.0/code-block-pro.php#L29

    Anyway, if you decide to use AIOSEO again and it fails let me know. Also, if it does could you look in the settings for anything that looks related?

    There’s some more discussion here too: https://github.com/KevinBatdorf/code-block-pro/issues/235

    Thread Starter hamansharma

    (@hamansharma)

    Thanks for the detailed explanation, much appreciated. This is a really great plugin and great support from your end.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘unfiltered_html issue’ is closed to new replies.