summaryrefslogtreecommitdiff
path: root/includes/Preferences.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Preferences.php')
-rw-r--r--includes/Preferences.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/includes/Preferences.php b/includes/Preferences.php
index 216ba48c..db231573 100644
--- a/includes/Preferences.php
+++ b/includes/Preferences.php
@@ -1246,6 +1246,13 @@ class Preferences {
$formDescriptor = array_diff_key( $formDescriptor, $removeKeys );
}
+ // Remove type=api preferences. They are not intended for rendering in the form.
+ foreach ( $formDescriptor as $name => $info ) {
+ if ( isset( $info['type'] ) && $info['type'] === 'api' ) {
+ unset( $formDescriptor[$name] );
+ }
+ }
+
/**
* @var $htmlForm PreferencesForm
*/