Deprecate and remove the Recommendations Widget

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

メンテナーはふだん 1 日以内に返信

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
リファクタリング
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
php
領域
web-dev

調査の方向性

Recommended_Widget クラスを含む class-recommendation-widget.php から始め、削除する前にウィジェットがどのように登録または参照されているかを確認してください。意図された結果が即時削除なのか、まず Deprecation とすることなのかを確認してください。完了とは、推薦ブロックが引き続き利用可能なまま、ウィジェットが存在しなくなることを意味します。

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

説明

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.

主要言語
PHP
スター
67
フォーク
38
平均マージ
1日 5時間
マージ済み PR(30日)
79

環境構築

はじめの一歩

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

Parsely/wp-parsely のほかの issue

Parsely/wp-parsely の issue をすべて見る

似ている issue

PHP の issue をもっと見る

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

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