WordPress.org

Support

Support » Requests and Feedback » Double-Quotes Instead of Single-Quotes

Double-Quotes Instead of Single-Quotes

  • 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’ />

Viewing 2 replies - 1 through 2 (of 2 total)
  • esmi
    Forum Moderator

    @esmi

    Double quotes aren’t mandated by XHTML 1.0 Strict.

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Double-Quotes Instead of Single-Quotes’ is closed to new replies.