WordPress.org

Make WordPress Core

Ticket #12483: t12483-html5-charset.diff

File t12483-html5-charset.diff, 909 bytes (added by demetris, 8 years ago)

HTML5 charset declaration for Twenty Ten

  • wp-content/themes/twentyten/header.php

     
    11<!DOCTYPE html>
    22<html <?php language_attributes(); ?>>
    33<head>
     4        <meta charset="<?php bloginfo('charset'); ?>" />
     5
    46    <title><?php
    57        if ( is_single() ) {
    68                        single_post_title(); echo ' | '; bloginfo('name');
     
    1719                }
    1820    ?></title>
    1921
    20         <meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    21 
    2222        <link rel="profile" href="http://gmpg.org/xfn/11" />
    2323        <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
    2424        <link rel="stylesheet" type="text/css" media="print" href="<?php bloginfo('stylesheet_directory'); ?>/print.css" />