WordPress.org

Ready to get started?Download WordPress

Forums

Double-Quotes Instead of Single-Quotes (3 posts)

  1. Cornflower Design
    Member
    Posted 4 years ago #

    This is a bit of a bugbear of mine. In future updates, can the output of double-quotes instead of single-quotes be standardised?

    I always like to develop my themes using XHTML 1.0 Strict, so ensuring that the final theme is valid and tag attributes are wrapped with double-quotes is an important factor.

    Here's one example. The wp_head hook contains the following line of code:

    <meta name='robots' content='noindex,nofollow' />

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Double quotes aren't mandated by XHTML 1.0 Strict.

  3. Cornflower Design
    Member
    Posted 4 years ago #

    Yes, you're right. Thanks. I've been coding with double-quotes for so long I guess I'm mixing up "W3C documentation" and "my own preferences" in my head. But still, some consistancy of single and double-quotes would be nice, especially within the core WordPress functions.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.