Menu items at 3rd level and deeper don't respect the order set in WordPress

オープン
#948 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
next.js, typescript, wordpress
領域
frontend, web-dev

調査の方向性

Issue にはファイルやテストが指定されていません。まず、WordPress メニューのデータがレンダリングされるナビゲーションにどのように変換されるかを追跡し、3 段階のネストで問題を再現して、設定された兄弟項目の順序とレンダリングされた順序を比較してください。レベル 3 以降の項目が WordPress メニューエディターと同じ順序でレンダリングされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Describe the bug

What's happening:
When you reorder menu items in the WordPress admin, the changes are reflected correctly for level 1 and level 2 items — but level 3 (and deeper) items always appear in the wrong order, no matter what you set in WordPress.

Expected:
The menu renders in the same order as configured in WordPress, at all nesting levels.

Steps to Reproduce
  1. Create a nav menu with at least 3 levels of nesting
  2. Add a few items at the 3rd level
  3. Reorder them in the WordPress menu editor and save
  4. Check the rendered menu — the order hasn't changed
Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress information

No response

Code of Conduct
  • I agree to follow this project's Code of Conduct
主要言語
TypeScript
スター
204
フォーク
26
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

10up/headstartwp のほかの issue

10up/headstartwp の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。