WordPress.org

Ready to get started?Download WordPress

Forums

PC Custom CSS
[resolved] Quotes not escaped properly. (1 post)

  1. bchabot
    Member
    Posted 2 years ago #

    This may be an issue others are not seeing because of the content of their CSS but I noticed something...

    Both the single quote (apostrophy) and regular quote are getting escaped improperly.

    For instance if I put this in my custom CSS:
    font-family: "Times New Roman", Times, serif ;
    The custom.css file contains:
    font-family: \"Times New Roman\", Times, serif ;

    Not a huge error but it does cause issues, especially in URLs such as:
    background-image: url('/some/path/to/img.jpg');

    The font-family issue is important because if the font name contains whitespace it must be in quotes.

    http://wordpress.org/extend/plugins/pc-custom-css/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic