Make WordPress Core

Changeset 26672


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.

Location:
trunk/src/wp-content/themes/twentyfourteen
Files:
2 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>
  • trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php

    r26580 r26672  
    235235        ?>
    236236            <p><label for="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>"><?php _e( 'Title:', 'twentyfourteen' ); ?></label>
    237             <input id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" class="widefat" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" /></p>
     237            <input id="<?php echo esc_attr( $this->get_field_id( 'title' ) ); ?>" class="widefat" name="<?php echo esc_attr( $this->get_field_name( 'title' ) ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>"></p>
    238238
    239239            <p><label for="<?php echo esc_attr( $this->get_field_id( 'number' ) ); ?>"><?php _e( 'Number of posts to show:', 'twentyfourteen' ); ?></label>
    240             <input id="<?php echo esc_attr( $this->get_field_id( 'number' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'number' ) ); ?>" type="text" value="<?php echo esc_attr( $number ); ?>" size="3" /></p>
     240            <input id="<?php echo esc_attr( $this->get_field_id( 'number' ) ); ?>" name="<?php echo esc_attr( $this->get_field_name( 'number' ) ); ?>" type="text" value="<?php echo esc_attr( $number ); ?>" size="3"></p>
    241241
    242242            <p><label for="<?php echo esc_attr( $this->get_field_id( 'format' ) ); ?>"><?php _e( 'Post format to show:', 'twentyfourteen' ); ?></label>
Note: See TracChangeset for help on using the changeset viewer.