New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

1.8.9 #236

Merged
merged 16 commits into from Oct 1, 2015
Commits
Jump to file or symbol
Failed to load files and symbols.
+8 −2
Diff settings

Always

Just for now

Viewing a subset of changes. View all

[meta keywords/meta description] header.php直でなくwp_head() にフックで出力するように変更

  • Loading branch information...
nc30 committed Sep 28, 2015
commit dfcd99e6a5ee8f60d7fb1d94d0d786e0b1feff57
View
@@ -326,6 +326,12 @@ function biz_vektor_get_page_for_posts(){
/*-------------------------------------------*/
/* head_description
/*-------------------------------------------*/
add_action( 'wp_head', 'biz_vektor_setHeadDescription' );
function biz_vektor_setHeadDescription(){
echo '<meta name="description" content="' . getHeadDescription() . '" />';
}
function getHeadDescription() {
global $wp_query;
$post = $wp_query->get_queried_object();
@@ -390,7 +396,8 @@ function getHeadDescription() {
$metadescription = '['.sprintf(__('Page of %s', 'biz-vektor' ),$paged).'] '.$metadescription;
}
$metadescription = apply_filters( 'metadescriptionCustom', $metadescription );
echo $metadescription;
return $metadescription;
}
/*-------------------------------------------*/
View
@@ -8,7 +8,6 @@
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title(); ?></title>
<meta name="description" content="<?php getHeadDescription(); ?>" />
<link rel="start" href="<?php echo home_url(); ?>" title="HOME" />
<link rel="alternate" href="<?php echo home_url(); ?>" hreflang="<?php echo substr(get_bloginfo ( 'language' ), 0, 2);?>" />
<!-- <?php echo get_biz_vektor_name();?> v<?php echo BizVektor_Theme_Version; ?> -->
ProTip! Use n and p to navigate between commits in a pull request.