Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / node / src / NodeTranslationHandler.php
index ead0d5d5fafb37f68bbcd95ed226f1e88ab42753..8b69645d1f4cae577fb02ea080778013bce54ba6 100644 (file)
@@ -39,10 +39,8 @@ class NodeTranslationHandler extends ContentTranslationHandler {
         }
       }
       if (isset($status_translatable)) {
-        foreach (['publish', 'unpublish', 'submit'] as $button) {
-          if (isset($form['actions'][$button])) {
-            $form['actions'][$button]['#value'] .= ' ' . ($status_translatable ? t('(this translation)') : t('(all translations)'));
-          }
+        if (isset($form['actions']['submit'])) {
+          $form['actions']['submit']['#value'] .= ' ' . ($status_translatable ? t('(this translation)') : t('(all translations)'));
         }
       }
     }