mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-23 10:29:11 +00:00
Merge "Remove DTSUBSCRIBELINK cached HTML compat"
This commit is contained in:
commit
03a3c4b42c
|
@ -455,8 +455,6 @@ class CommentFormatter {
|
|||
] );
|
||||
|
||||
$text = preg_replace( '/<!--__DTELLIPSISBUTTON__(.*?)-->/', '', $text );
|
||||
// No longer used, this can be removed once parser cache expires:
|
||||
$text = preg_replace( '/<!--__DTSUBSCRIBELINK__(.*?)-->/', '', $text );
|
||||
$text = preg_replace( '/<!--__DTSUBSCRIBEBUTTON(DESKTOP|MOBILE)__(.*?)-->/', '', $text );
|
||||
|
||||
return $text;
|
||||
|
@ -471,9 +469,6 @@ class CommentFormatter {
|
|||
): string {
|
||||
$doc = DOMCompat::newDocument( true );
|
||||
|
||||
// No longer used, this can be removed once parser cache expires:
|
||||
$text = preg_replace( '/<!--__DTSUBSCRIBELINK__(.*?)-->/', '', $text );
|
||||
|
||||
$matches = [];
|
||||
$itemDataByName = [];
|
||||
preg_match_all( '/<!--__DTSUBSCRIBEBUTTONDESKTOP__(.*?)-->/', $text, $matches );
|
||||
|
|
Loading…
Reference in a new issue