Make WordPress Core


Ignore:
Timestamp:
12/05/2013 05:53:17 PM (12 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: remove trailing slashes on void elements such as meta and link, and remove type attribute from script element. See #24499.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/header.php

    r26227 r26672  
    2020<!--<![endif]-->
    2121<head>
    22     <meta charset="<?php bloginfo( 'charset' ); ?>" />
    23     <meta name="viewport" content="width=device-width" />
     22    <meta charset="<?php bloginfo( 'charset' ); ?>">
     23    <meta name="viewport" content="width=device-width">
    2424    <title><?php wp_title( '|', true, 'right' ); ?></title>
    25     <link rel="profile" href="http://gmpg.org/xfn/11" />
    26     <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
     25    <link rel="profile" href="http://gmpg.org/xfn/11">
     26    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">
    2727    <!--[if lt IE 9]>
    28     <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
     28    <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js"></script>
    2929    <![endif]-->
    3030    <?php wp_head(); ?>
     
    3636    <div id="site-header">
    3737        <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
    38             <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" />
     38            <img src="<?php header_image(); ?>" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="">
    3939        </a>
    4040    </div>
Note: See TracChangeset for help on using the changeset viewer.