[WxT 5.2.1][WxT Library] Warning when viewing the latest version node page in some cases

Created on 18 March 2024, 3 months ago
Updated 1 April 2024, 3 months ago

Hello, I am creating this issue which is a duplicate of the issue WxT Library warning when viewing the latest version node page in some cases β†’ , because I still see this issue from time to time and it looks like the patch wasn't committed:

File: /wxt_library/src/Plugin/Block/LanguageBlock.php Lines 158-167

      if ($wxt_active == 'gcweb') {
        if ($language == 'en') {
          $title_fr = $links->links['fr']['title'];
          $links->links['fr']['title'] = Markup::create('<span class="hidden-xs">' . $title_fr . '</span><abbr title="' . $title_fr . '" class="visible-xs h3 mrgn-tp-sm mrgn-bttm-0 text-uppercase">fr</abbr>');
        }
        elseif ($language == 'fr') {
          $title_en = $links->links['en']['title'];
          $links->links['en']['title'] = Markup::create('<span class="hidden-xs">' . $title_en . '</span><abbr title="' . $title_en . '" class="visible-xs h3 mrgn-tp-sm mrgn-bttm-0 text-uppercase">en</abbr>');
        }
      }

I also posted a patch for this in the wxt_library project's page: https://www.drupal.org/project/wxt_library/issues/3403484 πŸ› WxT Library (language block) warning when viewing the latest version node page in some cases RTBC

πŸ› Bug report
Status

Closed: duplicate

Version

5.2

Component

Code

Created by

πŸ‡¨πŸ‡¦Canada optasy

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024