Handling duplicate entries with the same parent ID
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- php
- Ambito
- database, documentation
Direzione di ricerca
Inizia tracciando il controllo dell’ID esistente per le chiamate ripetute all’hook e ispeziona il modo in cui le entry vengono confrontate con la tabella postmeta. Verifica il comportamento delle chiamate ripetute con metadati di file o di riga diversi e delle funzioni con lo stesso nome in file separati. Il lavoro è concluso quando metadati distinti producono entry distinte, mentre le chiamate identiche continuano a essere gestite in modo coerente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
When the same hook is called twice within the same function, the check for an existing ID will come up as true, even though the meta (e.g. line-number) will likely be different for the second call as the first call. Equally, if functions with the same name are defined twice, perhaps in the global namespace (parent ID = 0) in different files that are not included within the same request, they too will have different meta data and should be different entries.
Perhaps a join to postmeta table on the existing ID check and also compare the file and / or line number would narrow it down?
If the same hook is being called twice on the same line in the same file, well, that's just stupid! (But technically plausible.)
- Lingua principale
- PHP
- Stelle
- 239
- Fork
- 81
- Merge medio
- 16h 29m
- PR unite (30g)
- 8
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di WordPress/phpdoc-parser
-
Include constants in exports Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
WordPress/phpdoc-parser#269 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 64/100
WordPress/phpdoc-parser#268 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
WordPress/phpdoc-parser#254 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
WordPress/phpdoc-parser#246 · 9 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
WordPress/phpdoc-parser#235 · 1 commento ·
Tutte le issue di WordPress/phpdoc-parser
Issue simili
-
Solved site promotion gate fails on runner PHP patch drift (expects 8.2.33, runner installs 8.2.34) Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
Automattic/blocks-engine#2161 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
Automattic/static-site-importer#1824 ·
-
[Chore] Keep one viget-block-generator skill and replicate it, instead of four tracked copies Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
-
Cannot reset column width Aperta0. Needs triage bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
0. Needs triage 35-feedback bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100