diff --git src/wp-content/themes/twentythirteen/functions.php src/wp-content/themes/twentythirteen/functions.php
index e87761f..5eacb55 100644
|
|
function twentythirteen_setup() { |
105 | 105 | |
106 | 106 | // This theme uses its own gallery styles. |
107 | 107 | add_filter( 'use_default_gallery_style', '__return_false' ); |
| 108 | |
| 109 | /* |
| 110 | * Let WordPress manage the document title. |
| 111 | * By adding theme support, we declare that this theme does not use a |
| 112 | * hard-coded <title> tag in the document head, and expect WordPress to |
| 113 | * provide it for us. |
| 114 | */ |
| 115 | if ( function_exists( '_wp_render_title_tag' ) ) { |
| 116 | add_theme_support( 'title-tag' ); |
| 117 | } else { |
| 118 | add_action( 'wp_head', 'twentythirteen_render_title' ); |
| 119 | add_filter( 'wp_title', 'twentythirteen_wp_title', 10, 2 ); |
| 120 | } |
| 121 | |
108 | 122 | } |
109 | 123 | add_action( 'after_setup_theme', 'twentythirteen_setup' ); |
110 | 124 | |
… |
… |
function twentythirteen_scripts_styles() { |
188 | 202 | add_action( 'wp_enqueue_scripts', 'twentythirteen_scripts_styles' ); |
189 | 203 | |
190 | 204 | /** |
| 205 | * Provide backwords compatibility for the title-tag theme support. |
| 206 | * |
| 207 | * Adds <title> tags in the head of the document. |
| 208 | * |
| 209 | * @since Twenty Thirteen 1.7 |
| 210 | */ |
| 211 | function twentythirteen_render_title() { |
| 212 | ?> |
| 213 | <title><?php wp_title( '|', true, 'right' ); ?></title> |
| 214 | <?php |
| 215 | } |
| 216 | |
| 217 | /** |
191 | 218 | * Filter the page title. |
192 | 219 | * |
193 | 220 | * Creates a nicely formatted and more specific title element text for output |
… |
… |
function twentythirteen_wp_title( $title, $sep ) { |
219 | 246 | |
220 | 247 | return $title; |
221 | 248 | } |
222 | | add_filter( 'wp_title', 'twentythirteen_wp_title', 10, 2 ); |
223 | 249 | |
224 | 250 | /** |
225 | 251 | * Register two widget areas. |
diff --git src/wp-content/themes/twentythirteen/header.php src/wp-content/themes/twentythirteen/header.php
index 094f74c..43d90b3 100644
|
|
|
21 | 21 | <head> |
22 | 22 | <meta charset="<?php bloginfo( 'charset' ); ?>"> |
23 | 23 | <meta name="viewport" content="width=device-width"> |
24 | | <title><?php wp_title( '|', true, 'right' ); ?></title> |
25 | 24 | <link rel="profile" href="http://gmpg.org/xfn/11"> |
26 | 25 | <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> |
27 | 26 | <!--[if lt IE 9]> |