Skip to content

Attribute value quoting is inconsistent #58

@splorp

Description

@splorp

There are several attributes generated by the WordPress core that are using single quotes, rather than double quotes.

This bugs me to no end.

Yes, I realize that both single and double quotes are allowed in HTML (and the WordPress Coding Standards), but this is a matter of keeping things consistent.

I’ve already fixed several of these cases, applying the tersus_double_down() fliter to the the following WordPress functions and template tags:

get_avatar
get_archives_link
get_comment_author_link
previous_image_link
next_image_link
wp_list_categories
wp_tag_cloud

Below are a few more chunks of code that still need fixing.

Elements inserted by wp_head:

<link rel='canonical' href='#' />
<link rel='shortlink' href='#' />
<link rel='prev' title='x' href='#' />
<link rel='next title='x' href='#' />
<script type='text/javascript' src='/wp-includes/js/comment-reply.min.js'></script>

Comment reply links:

<a href='/?replytocom=n#respond' onclick='return addComment.moveForm()'>Reply</a>

Hidden comment form fields:

<input type='hidden' name='comment_post_ID' value='n' id='comment_post_ID' />
<input type='hidden' name='comment_parent' id='comment_parent' value='0' />

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions