Merge "Remove some hardcoded CAPTCHA support code"

This commit is contained in:
jenkins-bot 2020-04-17 19:56:57 +00:00 committed by Gerrit Code Review
commit ae404ff919
3 changed files with 0 additions and 27 deletions

View file

@ -1623,7 +1623,6 @@
"mediawiki.widgets",
"ext.visualEditor.switching",
"ext.visualEditor.welcome",
"ext.visualEditor.mwextensionmessages",
"oojs-ui.styles.icons-editing-advanced"
],
"messages": [

View file

@ -1042,28 +1042,6 @@ class VisualEditorHooks {
'targets' => [ 'desktop', 'mobile' ],
] ] );
}
$extensionMessages = [];
$extensionRegistry = ExtensionRegistry::getInstance();
if ( $extensionRegistry->isLoaded( 'ConfirmEdit' ) ) {
$extensionMessages[] = 'captcha-edit';
$extensionMessages[] = 'captcha-label';
if ( $extensionRegistry->isLoaded( 'QuestyCaptcha' ) ) {
$extensionMessages[] = 'questycaptcha-edit';
}
if ( $extensionRegistry->isLoaded( 'FancyCaptcha' ) ) {
$extensionMessages[] = 'fancycaptcha-edit';
$extensionMessages[] = 'fancycaptcha-reload-text';
}
}
$resourceLoader->register( [
'ext.visualEditor.mwextensionmessages' => $veResourceTemplate + [
'messages' => $extensionMessages,
'targets' => [ 'desktop', 'mobile' ],
]
] );
}
/**

View file

@ -100,10 +100,6 @@
font-style: italic;
}
.ve-ui-saveDialog-captchaInput {
margin-top: 0.5em;
}
.ve-ui-mwSaveDialog-visualDiffFeedback {
float: right;
}