0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

wordpress5.3で管理画面にエラーメッセージが出た時の記録

Last updated at Posted at 2019-11-26

状況

wordpress5.3にてテーマを適用したら
管理画面上にエラーメッセージが表示された。

エラーメッセージ

error.sh

Warning: Declaration of border_link_list::walk($elements, $max_depth) should be compatible with Walker::walk($elements, $max_depth, ...$args) in example/functions.php

対応方法

検索すると早々と英語圏では質問が飛んでおり、本家サイトにも詳細がありました。
5.3になったタイミングでクラスのパラメータが変わった模様です。

本家解説

解説によるとこの変更ではサイトがダウンする可能性は低く、パフォーマンスがアップするとのこと。

後述の影響のあるクラス関数を検索するとバッチリ記述があり
今回は使っていない機能が残っていたので削除して解決しました。
自分の場合はwalk()関数を使用していました。

影響のあるクラス、関数

Walker
walk()
paged_walk()
WP_User

has_cap()
wpdb

prepare()
_WP_Dependency

__construct()
Automatic_Upgrader_Skin

feedback()
Bulk_Upgrader_Skin

feedback()
WP_Ajax_Upgrader_Skin

error()
feedback()
WP_Upgrader_Skin

feedback()

※影響を受けるテストクラスのリスト
WP_UnitTestCase_Base

assertQueryTrue()
MockAction

filterall()
Tests_WP_Customize_Manager

capture_customize_post_value_set_actions()
Tests_WP_Hook_Do_Action

_action_callback()

参考ページ

フォーラム
本家解説

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?