Index: trunk/phase3/includes/Article.php |
— | — | @@ -1438,7 +1438,7 @@ |
1439 | 1439 | */ |
1440 | 1440 | function markpatrolled() { |
1441 | 1441 | global $wgOut, $wgRequest, $wgUseRCPatrol, $wgUser; |
1442 | | - $wgOut->setRobotpolicy( 'noindex,follow' ); |
| 1442 | + $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
1443 | 1443 | |
1444 | 1444 | # Check RC patrol config. option |
1445 | 1445 | if( !$wgUseRCPatrol ) { |
— | — | @@ -1487,7 +1487,7 @@ |
1488 | 1488 | |
1489 | 1489 | if( $this->doWatch() ) { |
1490 | 1490 | $wgOut->setPagetitle( wfMsg( 'addedwatch' ) ); |
1491 | | - $wgOut->setRobotpolicy( 'noindex,follow' ); |
| 1491 | + $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
1492 | 1492 | |
1493 | 1493 | $link = $this->mTitle->getPrefixedText(); |
1494 | 1494 | $text = wfMsg( 'addedwatchtext', $link ); |
— | — | @@ -1535,7 +1535,7 @@ |
1536 | 1536 | |
1537 | 1537 | if( $this->doUnwatch() ) { |
1538 | 1538 | $wgOut->setPagetitle( wfMsg( 'removedwatch' ) ); |
1539 | | - $wgOut->setRobotpolicy( 'noindex,follow' ); |
| 1539 | + $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
1540 | 1540 | |
1541 | 1541 | $link = $this->mTitle->getPrefixedText(); |
1542 | 1542 | $text = wfMsg( 'removedwatchtext', $link ); |
Index: trunk/phase3/includes/DifferenceEngine.php |
— | — | @@ -138,7 +138,7 @@ |
139 | 139 | $wgOut->setPageTitle( $oldTitle . ', ' . $newTitle ); |
140 | 140 | } |
141 | 141 | $wgOut->setSubtitle( wfMsg( 'difference' ) ); |
142 | | - $wgOut->setRobotpolicy( 'noindex,follow' ); |
| 142 | + $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
143 | 143 | |
144 | 144 | if ( !( $this->mOldPage->userCanRead() && $this->mNewPage->userCanRead() ) ) { |
145 | 145 | $wgOut->loginToUse(); |
Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -291,7 +291,7 @@ |
292 | 292 | $retVal = $redir; |
293 | 293 | } else { |
294 | 294 | $wgOut->setArticleRelated( false ); |
295 | | - $wgOut->setRobotpolicy( 'noindex,follow' ); |
| 295 | + $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
296 | 296 | $wgOut->setStatusCode( 404 ); |
297 | 297 | $wgOut->errorpage( 'nosuchspecialpage', 'nospecialpagetext' ); |
298 | 298 | $retVal = false; |
— | — | @@ -428,7 +428,7 @@ |
429 | 429 | function setHeaders() { |
430 | 430 | global $wgOut; |
431 | 431 | $wgOut->setArticleRelated( false ); |
432 | | - $wgOut->setRobotPolicy( "noindex,follow" ); |
| 432 | + $wgOut->setRobotPolicy( "noindex,nofollow" ); |
433 | 433 | $wgOut->setPageTitle( $this->getDescription() ); |
434 | 434 | } |
435 | 435 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -450,6 +450,10 @@ |
451 | 451 | to <div class="center">. <center> is perfectly valid in the target doctype |
452 | 452 | (XHTML 1.0 Transitional), while the replacement didn't catch all cases and |
453 | 453 | could even result in invalid output from valid input. |
| 454 | +* (bug 4280) Use 'noindex,nofollow' instead of 'noindex,follow' for default |
| 455 | + meta robots tag on diff view and special pages. Should reduce impact of |
| 456 | + robots on scrolling special pages, diffs etc on sites where robots.txt |
| 457 | + doesn't forbid access. |
454 | 458 | |
455 | 459 | |
456 | 460 | == Compatibility == |