WordPress.org

Ready to get started?Download WordPress

Forums

Role Scoper
[resolved] Allow HTML in teasers (6 posts)

  1. gabrielinux
    Member
    Posted 3 years ago #

    Hello,

    First of all, thank you for writing this great plug-in! It is extremely useful. After evaluating several security access management plug-ins, I decided to stick with Role Scoper because of its flexibility and scalability.

    I wanted to report a bug/suggestion. I'm not sure if the teaser fields (replace, prefix, suffix) are supposed to support HTML or not, but they only do so partially. Quotation marks and single quotes are getting escaped, which causes errors in the output HTML. I want to include a box with custom in-line style (CSS) and some javascript in an anchor tag, but since my code is being escaped, the output HTML is broken just before the first href is closed. Is there any chance you can include a stripslashes() on the code that outputs the content teaser, as well as the input fields in the Options page?

    Thanks,

    Gabriel Mongefranco
    http://gabriel.mongefranco.com

    http://wordpress.org/extend/plugins/role-scoper/

  2. gabrielinux
    Member
    Posted 3 years ago #

    I think I found another bug...

    I enabled "Hide private Posts (instead of teasing)" for both posts and pages. Private posts no longer show up in search results or the home page, as expected, but if a user knows the permalink, he can still see them. Luckily, the teasers are still applied, but users should get a 404 error when they click the permalink of a private post.

    Regards,

    Gabriel Mongefranco
    http://gabriel.mongefranco.com

  3. kevinB
    Member
    Plugin Author

    Posted 3 years ago #

    Can you post a sample "replace with" value to help me find this? In a quick trial, I'm not seeing any problem with quotes in html tags.

  4. gabrielinux
    Member
    Posted 3 years ago #

    Actually, never mind about the HTML bug. I didn't realize that I copied & pasted text from another plug-in that was escaped. :)

    I still see the Hide Private Posts bug occurring though.

  5. kevinB
    Member
    Plugin Author

    Posted 3 years ago #

    The Hide Private Posts bug is fixed in Role Scoper 1.3.22-dev

  6. gabrielinux
    Member
    Posted 3 years ago #

    Awesome! Thanks for fixing this bug, Kevin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic