* (bug 4207) Wrong image size when using 100x200px syntax to scale image up
patch by David Benbennick
* (bug 4214) Skip redundant action text inserts into the HTML <title>
+* (bug 4212) Skip redundant meta-robots tag for default settings
=== Caveats ===
}
$ret .= "<meta $a=\"{$tag[0]}\" content=\"{$tag[1]}\" />\n";
}
+
$p = $this->mRobotpolicy;
- if ( '' == $p ) { $p = 'index,follow'; }
- $ret .= "<meta name=\"robots\" content=\"$p\" />\n";
+ if( $p !== '' && $p != 'index,follow' ) {
+ // http://www.robotstxt.org/wc/meta-user.html
+ // Only show if it's different from the default robots policy
+ $ret .= "<meta name=\"robots\" content=\"$p\" />\n";
+ }
if ( count( $this->mKeywords ) > 0 ) {
$strip = array(