Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Commit

Permalink
Bug Fixes for Readability Verification Code.
Browse files Browse the repository at this point in the history
Signed-off-by: Justin Yost <justin.yost@yostivanich.com>
  • Loading branch information
justinyost committed Jun 17, 2011
1 parent 3c3740b commit aae2995
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
10 changes: 9 additions & 1 deletion functions.php
Expand Up @@ -36,7 +36,10 @@ function _add_favicons(){

//Add Meta tags for a page
function _add_meta_tags(){

global $post;
$options = get_theme_options();

if(is_single()){
?>
<meta name="description" content="<?php echo $post->post_excerpt; ?>" />
Expand Down Expand Up @@ -100,7 +103,11 @@ function _get_author_complete_name($author_ID = null){
* @return void
*/
function _is_readability_set(){
return isset($options['readability_verification_code']);
$options = get_theme_options();
return (
isset($options['readability_verification_code']) &&
!empty($options['readability_verification_code'])
);
}

/**
Expand All @@ -110,6 +117,7 @@ function _is_readability_set(){
* @return void
*/
function _get_readability_verification_code(){
$options = get_theme_options();
return $options['readability_verification_code'];
}

Expand Down
1 change: 1 addition & 0 deletions library/theme-options.php
Expand Up @@ -93,6 +93,7 @@ function theme_options_validate( $input ) {
$input['bitly_api_key'] = wp_filter_nohtml_kses( $input['bitly_api_key'] );
$input['open_id_server'] = wp_filter_nohtml_kses( $input['open_id_server'] );
$input['open_id_delegate'] = wp_filter_nohtml_kses( $input['open_id_delegate'] );
$input['readability_verification_code'] = wp_filter_nohtml_kses( $input['readability_verification_code'] );

/*
// Our checkbox value is either 0 or 1
Expand Down

0 comments on commit aae2995

Please sign in to comment.