Improve flush_rewrite_rules warning
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Ambito
- documentation, tooling
Direzione di ricerca
Individua la regola PHP_CodeSniffer che emette l’avviso relativo a flush_rewrite_rules e rivedi il messaggio esistente e la documentazione correlata. Aggiorna l’avviso per spiegare perché la funzione è sconsigliata, quando gli hook di attivazione o disattivazione possono essere appropriati, i suoi effetti e il link pertinente a docs.wpvip.com; verifica i test della regola, se presenti.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What problem would the enhancement address for VIP?
Right now here's the rule that we see when you try to use flush_rewrite_rules():
🚫 Error( severity 5 ): flush_rewrite_rules should not be used in any normal circumstances in the theme code (WordPressVIPMinimum.Functions.RestrictedFunctions.flush_rewrite_rules_flush_rewrite_rules).
I feel like adding more context here as to "why" would be helpful, and also adding cases where this might be appropriate? For example, what about in a plugin activation/deactivation hook?
Describe the solution you'd like
- Why should you not use it
- When it might be ok to use
- What the effect of using it would have
- Link to a doc on docs.wpvip.com to more details
- Lingua principale
- PHP
- Stelle
- 261
- Fork
- 44
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
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 Automattic/VIP-Coding-Standards
-
AlwaysReturnInFilter: isInsideIfConditonal() guards the conditions array after reading itForse già presa @tomjn l’ha presa 3 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
-
Bug: PreGetPosts warns when the early is_main_query() return is not the first statement in its ifForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
-
Suppress filters in get_posts false positiveForse già presa @tomjn l’ha presa 4 giorni fa. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
-
Breaking Change Type: Maintenance
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Automattic/VIP-Coding-Standards#849 · 1 commento ·
Tutte le issue di Automattic/VIP-Coding-Standards
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
thephpleague/commonmark#1159 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
awslabs/aidlc-workflows#1879 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug] The PHP file that lists DNS records truncates records to 12 characters?Forse già presa @sahsanu l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
hestiacp/hestiacp#5769 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug customer-reported
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
MagnaCapax/PMSS#1011 ·
I maintainer di solito rispondono entro 5 giorni
-
Talk Review
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
socallinuxexpo/scale-drupal#351 ·