=== Configuration changes in 1.14 ===
-None yet
+* (bug 8068) $wgAllowUserRobotsControl (false by default) can enable new
+ __INDEX__ and __NOINDEX__ magic words, which allow user control of search en-
+ gine indexing on a per-article basis.
=== New features in 1.14 ===
-* (bug 8068) New __INDEX__ and __NOINDEX__ magic words allow control of search
-engine indexing on a per-article basis.
+None yet
=== Bug fixes in 1.14 ===
*/
$wgArticleRobotPolicies = array();
+/**
+ * Set to true to allow the __INDEX__ and __NOINDEX__ magic words to function.
+ * These will allow users to control whether any page they can edit is indexed
+ * by search engines.
+ */
+$wgAllowUserRobotsControl = false;
+
/**
* Specifies the minimal length of a user password. If set to
* 0, empty passwords are allowed.
* @param ParserOutput object &$parserOutput
*/
public function addParserOutputNoText( &$parserOutput ) {
+ global $wgAllowUserRobotsControl;
+
$this->mLanguageLinks += $parserOutput->getLanguageLinks();
$this->addCategoryLinks( $parserOutput->getCategories() );
$this->mNewSectionLink = $parserOutput->getNewSection();
- # FIXME: This probably overrides $wgArticleRobotPolicies, is that wise?
- $this->setIndexPolicy( $parserOutput->getIndexPolicy() );
+ if( $wgAllowUserRobotsControl ) {
+ # FIXME: This probably overrides $wgArticleRobotPolicies, is that wise?
+ $this->setIndexPolicy( $parserOutput->getIndexPolicy() );
+ }
$this->addKeywords( $parserOutput );
$this->mParseWarnings = $parserOutput->getWarnings();
if ( $parserOutput->getCacheTime() == -1 ) {