Index: trunk/phase3/includes/Article.php |
— | — | @@ -853,7 +853,15 @@ |
854 | 854 | // for better machine handling of broken links. |
855 | 855 | $return404 = true; |
856 | 856 | } |
857 | | - } |
| 857 | + } else if( $ns == NS_USER || $ns == NS_USER_TALK ) { |
| 858 | + # User/User_talk subpages are not modified. (bug 11443) |
| 859 | + if( !$this->mTitle->isSubpage() ) { |
| 860 | + $block = new Block(); |
| 861 | + if( $block->load( $this->mTitle->getBaseText() ) ) { |
| 862 | + $wgOut->setRobotpolicy( 'noindex,nofollow' ); |
| 863 | + } |
| 864 | + } |
| 865 | + } |
858 | 866 | |
859 | 867 | if( $return404 ) { |
860 | 868 | $wgRequest->response()->header( "HTTP/1.x 404 Not Found" ); |