01tonythomas has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/99171


Change subject: Removed "Enable section editing via [edit] links" from 
Mediawiki Preference.
......................................................................

Removed "Enable section editing via [edit] links" from Mediawiki Preference.

Unwanted preference in MW causing clutters.Users interested in hiding 
section-edit links can use per-user (or site-wide)
CSS.

Bug: 52811
Change-Id: I5fc49106621943ca7180ddb37590b624edac67d5
---
M RELEASE-NOTES-1.23
M includes/Preferences.php
M languages/messages/MessagesEn.php
M maintenance/language/messages.inc
4 files changed, 1 insertion(+), 9 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/71/99171/1

diff --git a/RELEASE-NOTES-1.23 b/RELEASE-NOTES-1.23
index 4697b4d..4b9f5fc 100644
--- a/RELEASE-NOTES-1.23
+++ b/RELEASE-NOTES-1.23
@@ -93,6 +93,7 @@
   mw.toolbar.insertTags) now emits mw.log.warn when accessed.
 * User::getPageRenderingHash() was deprecated since 1.17 and has been removed.
 * The ExpandTemplates extension has been moved into MediaWiki core.
+* (bug 52811) Removed "Enable section editing via [edit] links" from 
Preference.
 
 == Compatibility ==
 
diff --git a/includes/Preferences.php b/includes/Preferences.php
index d498770..3911f98 100644
--- a/includes/Preferences.php
+++ b/includes/Preferences.php
@@ -791,13 +791,6 @@
                global $wgAllowUserCssPrefs;
 
                ## Editing #####################################
-               if ( $wgAllowUserCssPrefs ) {
-                       $defaultPreferences['editsection'] = array(
-                               'type' => 'toggle',
-                               'section' => 'editing/advancedediting',
-                               'label-message' => 'tog-editsection',
-                       );
-               }
                $defaultPreferences['editsectiononrightclick'] = array(
                        'type' => 'toggle',
                        'section' => 'editing/advancedediting',
diff --git a/languages/messages/MessagesEn.php 
b/languages/messages/MessagesEn.php
index 1bd59b2..98bc671 100644
--- a/languages/messages/MessagesEn.php
+++ b/languages/messages/MessagesEn.php
@@ -666,7 +666,6 @@
 'tog-numberheadings'          => 'Auto-number headings',
 'tog-showtoolbar'             => 'Show edit toolbar',
 'tog-editondblclick'          => 'Edit pages on double click',
-'tog-editsection'             => 'Enable section editing via [edit] links',
 'tog-editsectiononrightclick' => 'Enable section editing by right clicking on 
section titles',
 'tog-showtoc'                 => 'Show table of contents (for pages with more 
than 3 headings)',
 'tog-rememberpassword'        => 'Remember my login on this browser (for a 
maximum of $1 {{PLURAL:$1|day|days}})',
diff --git a/maintenance/language/messages.inc 
b/maintenance/language/messages.inc
index 947dfe9..a819cc7 100644
--- a/maintenance/language/messages.inc
+++ b/maintenance/language/messages.inc
@@ -37,7 +37,6 @@
                'tog-numberheadings',
                'tog-showtoolbar',
                'tog-editondblclick',
-               'tog-editsection',
                'tog-editsectiononrightclick',
                'tog-showtoc',
                'tog-rememberpassword',

-- 
To view, visit https://gerrit.wikimedia.org/r/99171
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5fc49106621943ca7180ddb37590b624edac67d5
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: 01tonythomas <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to