Deprecate and remove the Recommendations Widget

Aperta
#2,879 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
45/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
php
Ambito
web-dev

Direzione di ricerca

Inizia da class-recommendation-widget.php, che contiene la classe Recommended_Widget, e verifica come viene registrato o referenziato il widget prima di rimuoverlo. Conferma se il risultato previsto è la rimozione immediata oppure prima una Deprecation; il lavoro è completato quando il widget non è più presente, mentre il blocco dei consigli rimane disponibile.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Maintenance & Fixes Refactoring wp-parsely

Is your feature request related to a problem?

The Parse.ly plugin includes a Recommendation Widget, and since WordPress 5.8 it's possible to use blocks as a widget. Since this widget is pretty much the same - feature-wise - as the recommendation block, we can likely deprecate it and remove the widget.

Describe the solution you'd like

Remove the entire class-recommendation-widget.php file that contains the Recommended_Widget class.

Describe alternatives you've considered

If we want to deprecate the widget before actually removing it from the codebase, we could try to detect if it is in use, and recommend changing to the Recommended Block instead, and keep it for a few releases.

Alternatively, we could keep a striped down version of the recommended widget that would be a wrapper for the recommendation block - not sure how technically feasible this is, but might be worth exploring.

Additional context

The only caveat I see from this deprecation, is users that are using the Classic Widgets plugin. Although, accordingly to the plugin page, the plugin "will be supported and maintained to 2024, or as long as is necessary", so eventually the ability of using classic widgets will be entirely unsupported in WordPress.

Lingua principale
PHP
Stelle
67
Fork
38
Merge medio
1g 5h
PR unite (30g)
79

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Parsely/wp-parsely

Tutte le issue di Parsely/wp-parsely

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.