Ticket #21233: 21233.diff

File 21233.diff, 1.3 KB (added by obenland, 11 months ago)
  • wp-content/themes/twentytwelve/header.php

     
    1313<head> 
    1414<meta charset="<?php bloginfo( 'charset' ); ?>" /> 
    1515<meta name="viewport" content="width=device-width, initial-scale=1.0" /> 
    16 <title><?php wp_title( '|', true, 'right' ); ?><?php echo bloginfo( 'name' ); ?></title> 
     16<title><?php wp_title( '|', true, 'right' ); ?></title> 
    1717<link rel="profile" href="http://gmpg.org/xfn/11" /> 
    1818<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 
    1919<!--[if lt IE 9]> 
  • wp-content/themes/twentytwelve/functions.php

     
    131131add_action( 'wp_enqueue_scripts', 'twentytwelve_scripts_styles' ); 
    132132 
    133133/** 
     134 * Returns the title with added blogname. 
     135 * 
     136 * @since Twenty Twelve 1.0 
     137 */ 
     138function twentytwelve_wp_title( $title ) { 
     139        return $title . get_bloginfo( 'name' ); 
     140} 
     141add_filter( 'wp_title', 'twentytwelve_wp_title' ); 
     142 
     143/** 
    134144 * Get our wp_nav_menu() fallback, wp_page_menu(), to show a home link. 
    135145 * 
    136146 * @since Twenty Twelve 1.0