Remove meta keywords option
authorMatthias Schmidt <gravatronics@live.com>
Fri, 23 Oct 2020 14:12:18 +0000 (16:12 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 23 Oct 2020 14:12:18 +0000 (16:12 +0200)
com.woltlab.wcf/option.xml
constants.php
wcfsetup/install/files/lib/system/MetaTagHandler.class.php
wcfsetup/install/files/lib/system/WCF.class.php
wcfsetup/install/lang/de.xml
wcfsetup/install/lang/en.xml

index cdac9ddef222cd8790916a7ca5e1e57616e5434e..21e6b2c0ec23670b2fad70308481e4f86152cd78 100644 (file)
                                <optiontype>boolean</optiontype>
                                <defaultvalue>1</defaultvalue>
                        </option>
-                       <option name="meta_keywords">
-                               <categoryname>general.page</categoryname>
-                               <optiontype>textI18n</optiontype>
-                               <supporti18n>1</supporti18n>
-                       </option>
                        <option name="meta_description">
                                <categoryname>general.page</categoryname>
                                <optiontype>textI18n</optiontype>
@@ -1719,5 +1714,6 @@ DESC:wcf.global.sortOrder.descending</selectoptions>
                <option name="register_password_must_contain_upper_case" />
                <option name="register_password_must_contain_digit" />
                <option name="register_password_must_contain_special_char" />
+               <option name="meta_keywords" />
        </delete>
 </data>
index 58157cb8c4bbf9aacea904efa7c3663f241879bd..74830a0b06e4f4fc4bbbe2a26be5dbf90f5f6469 100644 (file)
@@ -51,7 +51,6 @@ define('MODULE_POLL', 1);
 define('MODULE_WCF_AD', 0);
 define('PAGE_TITLE', 'WoltLab Suite');
 define('PAGE_DESCRIPTION', '');
-define('META_KEYWORDS', '');
 define('META_DESCRIPTION', '');
 define('SHOW_VERSION_NUMBER', 1);
 define('EXTERNAL_LINK_REL_NOFOLLOW', 1);
index 280186e5b95f82a01cdd08abb9b30c32954c644b..53d436c89df9cabe47924996cdf30c04e2ee546f 100644 (file)
@@ -37,9 +37,6 @@ class MetaTagHandler extends SingletonFactory implements \Countable, \Iterator {
                if ($value = WCF::getLanguage()->get(META_DESCRIPTION)) {
                        $this->addTag('description', 'description', $value);
                }
-               if ($value = WCF::getLanguage()->get(META_KEYWORDS)) {
-                       $this->addTag('keywords', 'keywords', $value);
-               }
                if ($value = WCF::getLanguage()->get(PAGE_TITLE)) {
                        $this->addTag('og:site_name', 'og:site_name', $value, true);
                }
index 649b2817809c6516e2bbe351afaada134e6bc44a..062a7a5ac673d4fb9fe75ff902db93a40c27b765 100644 (file)
@@ -401,6 +401,10 @@ class WCF {
                // The session timeout is fully managed since 5.4.
                define('SESSION_TIMEOUT', 3600);
                
+               // Meta keywords are no longer used since 5.4.
+               // https://github.com/WoltLab/WCF/issues/3561
+               define('META_KEYWORDS', '');
+               
                $filename = WCF_DIR.'options.inc.php';
                
                // create options file if doesn't exist
index eeb6e361a0dc2bbb76f14da8175f93c6d93b91b7..577be3b506f7160b00bde46f204875b2c7ce8380 100644 (file)
@@ -1358,7 +1358,6 @@ ACHTUNG: Die oben genannten Meldungen sind stark gekürzt. Sie können Details z
                <item name="wcf.acp.option.mail_use_f_param"><![CDATA[„-f“ Parameter verwenden]]></item>
                <item name="wcf.acp.option.mail_use_f_param.description"><![CDATA[Der „-f“-Parameter sorgt bei der PHP-Versandmethode dafür, dass der korrekte Absender gesetzt wird. Diese Einstellung wird möglicherweise nicht von jedem Server unterstützt. {if LANGUAGE_USE_INFORMAL_VARIANT}Versuche{else}Versuchen Sie{/if} in diesem Falle die Option zu deaktivieren.]]></item>
                <item name="wcf.acp.option.meta_description"><![CDATA[Meta Description]]></item>
-               <item name="wcf.acp.option.meta_keywords"><![CDATA[Meta Keywords]]></item>
                <item name="wcf.acp.option.og_image"><![CDATA[Standardwert „Open Graph“-Bild]]></item>
                <item name="wcf.acp.option.og_image.description"><![CDATA[Pfad zur Bilddatei, die beim Verlinken von Inhalten auf Facebook, Twitter und anderen „Social Media“-Seiten standardmäßig eingebunden wird.]]></item>
                <item name="wcf.acp.option.module_master_password"><![CDATA[Hauptkennwort aktivieren]]></item>
index 23abb23ecd06c156b6620ee30a9887f6b0c82b25..c20e910ab451a5c0d0a34645808d69c103de5642 100644 (file)
@@ -1335,7 +1335,6 @@ ATTENTION: The messages listed above are greatly shortened. You can view details
                <item name="wcf.acp.option.mail_use_f_param"><![CDATA[Use “-f” parameter]]></item>
                <item name="wcf.acp.option.mail_use_f_param.description"><![CDATA[The “-f” parameter sets the proper sender of the email if the PHP send method is used. This parameter may not be supported by every server. Try disabling it, if you have trouble sending emails.]]></item>
                <item name="wcf.acp.option.meta_description"><![CDATA[Meta Description]]></item>
-               <item name="wcf.acp.option.meta_keywords"><![CDATA[Meta Keywords]]></item>
                <item name="wcf.acp.option.og_image"><![CDATA[Open Graph Image]]></item>
                <item name="wcf.acp.option.og_image.description"><![CDATA[Path to the default image that will be displayed when sharing your site on Facebook, Twitter and other social media sites.]]></item>
                <item name="wcf.acp.option.module_master_password"><![CDATA[Enable master password]]></item>