Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2652
PATCH.no_links_during_pst
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:07 PM
2014-11-21 21:07:49 (UTC+0)
Size
660 B
Referenced Files
None
Subscribers
None
PATCH.no_links_during_pst
View Options
Index: includes/parser/Parser.php
===================================================================
--- includes/parser/Parser.php (revision 62187)
+++ includes/parser/Parser.php (working copy)
@@ -4032,12 +4032,6 @@
'~~~' => $sigText
) );
- # Links of the form [[|<blah>]] or [[<blah>|]] perform pipe tricks
- # Note this only allows the # in the position it works.
- global $wgLegalTitleChars;
- $pipeTrickRe = "/\[\[(?:(\\|)([$wgLegalTitleChars]+)|([#$wgLegalTitleChars]+)\\|)\]\]/";
- $text = preg_replace_callback( $pipeTrickRe, array( $this, 'pstPipeTrickCallback' ), $text );
-
# Trim trailing whitespace
$text = rtrim( $text );
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2227
Default Alt Text
PATCH.no_links_during_pst (660 B)
Attached To
Mode
T7004: Keep the pipe trick ([[Piped link|]]) syntax in wikitext instead of converting it at pre-save transform
Attached
Detach File
Event Timeline
Log In to Comment