Merge "Remove DTSUBSCRIBELINK cached HTML compat"

This commit is contained in:
jenkins-bot 2024-04-17 15:22:33 +00:00 committed by Gerrit Code Review
commit 03a3c4b42c

View file

@ -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 );