r62434 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r62433‎ | r62434 | r62435 >
Date:14:41, 13 February 2010
Author:conrad
Status:reverted
Tags:
Comment:
Fix for <poem> after r62416
Modified paths:
  • /trunk/phase3/includes/parser/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/parser/Parser.php
@@ -392,9 +392,13 @@
393393 }
394394 $this->mStripState->general->setPair( $marker, $output );
395395 }
396 - $text = $this->mStripState->unstripGeneral( $text );
397396 }
398397
 398+ # This was originally inserted for transparent tag hooks (now deprecated)
 399+ # but some extensions (notably <poem>) rely on the extra unstripGeneral()
 400+ # after unstripNoWiki() so they can modify the contents of <nowiki> tags.
 401+ $text = $this->mStripState->unstripGeneral( $text );
 402+
399403 $text = Sanitizer::normalizeCharReferences( $text );
400404
401405 if ( ( $wgUseTidy && $this->mOptions->mTidy ) || $wgAlwaysUseTidy ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r62689Moving Conrad's recent parser work out to a branch. Reverted r62434, r62416, ...tstarling05:19, 19 February 2010
r64050Revert r62434 and r62416, not relevant to pipe trickconrad00:41, 23 March 2010

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r62416Deprecate old undocumented workaround to bug 2257 (setTransparentTagHook)conrad02:22, 13 February 2010

Status & tagging log