Skip to content

Commit

Permalink
Finalizing version 1.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
swashata committed Mar 8, 2015
1 parent ed2edc3 commit 40c4877
Show file tree
Hide file tree
Showing 5 changed files with 485 additions and 486 deletions.
15 changes: 15 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ function ipt_kb_setup() {
// Add post thumbnail
add_theme_support( 'post-thumbnails', array( 'post' ) );

// Add new theme title-tag WP4.1
add_theme_support( 'title-tag' );

add_image_size( 'ipt_kb_medium', 256, 128, true );
add_image_size( 'ipt_kb_large', 9999, 200, true );

Expand All @@ -77,6 +80,18 @@ function ipt_kb_setup() {
endif; // ipt_kb_setup
add_action( 'after_setup_theme', 'ipt_kb_setup' );

/**
* Backward compatibility
*/
if ( ! function_exists( '_wp_render_title_tag' ) ) :
function ipt_kb_render_title() {
?>
<title><?php wp_title( '|', true, 'right' ); ?></title>
<?php
}
add_action( 'wp_head', 'ipt_kb_render_title' );
endif;

/**
* Register widgetized area and update sidebar with default widgets
*/
Expand Down
1 change: 0 additions & 1 deletion header-bbpress.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">

Expand Down
1 change: 0 additions & 1 deletion header.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">

Expand Down
Loading

0 comments on commit 40c4877

Please sign in to comment.