Changeset 670

Show
Ignore:
Timestamp:
2008-07-10 23:41:57 (3 months ago)
Author:
rickc
Message:

Moved title tag to the end of the head block when the theme doesn't have a title tag to begin with. Keeps it from preceding the Content-Type meta tag on the page.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/metaseo/trunk/metaseo.plugin.php

    r577 r670  
    246246            } 
    247247            else { 
    248                 $buffer= preg_replace("%<head>%is", "<head>\n<title>{$seo_title}</title>", $buffer ); 
     248                $buffer= preg_replace("%</head>%is", "<title>{$seo_title}</title>\n</head>", $buffer ); 
    249249            } 
    250250        } 
     
    328328            $desc= str_replace( "\n", " ", $desc ); 
    329329            $desc= htmlspecialchars( strip_tags( $desc ), ENT_COMPAT, 'UTF-8' ); 
     330            $desc= strip_tags( $desc ); 
    330331            $out= "<meta name=\"description\" content=\"{$desc}\" >\n"; 
    331332        }