Self Closing Tags
Self Closing Tags are discourages according to W3C. Validation shows warning but it's better to not have them. Same is for <br>
This commit is contained in:
parent
55d3b162bf
commit
92600d9070
1 changed files with 3 additions and 3 deletions
|
@ -4,10 +4,10 @@ class pluginCanonical extends Plugin {
|
|||
|
||||
public function siteHead() {
|
||||
if ($GLOBALS['WHERE_AM_I'] === 'home') {
|
||||
return '<link rel="canonical" href="'.DOMAIN_BASE.'"/>'.PHP_EOL;
|
||||
return '<link rel="canonical" href="'.DOMAIN_BASE.'">'.PHP_EOL;
|
||||
} elseif ($GLOBALS['WHERE_AM_I'] === 'page') {
|
||||
global $page;
|
||||
return '<link rel="canonical" href="'.$page->permalink().'"/>'.PHP_EOL;
|
||||
return '<link rel="canonical" href="'.$page->permalink().'">'.PHP_EOL;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue