この記事は最後に更新してから1年以上経過しています。
説明
先週末にWordPress 5.2 Beta3(以降5.2Beta3)が公開され、正式リリースまであとわずか。ソースコードの変更点を見ていくと、wp-login.phpの中に非推奨となったフィルターが目に留まった。
フィルター名の変更
5.2Beta3のwp-login.phpでは'login_headertitle'フィルターが非推奨となり、その代わりに'login_headertext'フィルターが追加されている。気になったソースコードを一通り調べてみると、非推奨になっているフィルターがほかにも見つかった。
フィルター名 | 定義 | 非推奨 | 代替フィルター名 |
---|---|---|---|
auth_{$type}_{$subtype}_meta_{$meta_key} | 4.6.0 | 4.9.8 | auth_{$type}_meta_{$meta_key}_for_{$subtype} |
'htmledit_pre' | 4.3.0 | 'format_for_editor' | |
'richedit_pre' | 4.3.0 | 'format_for_editor' | |
'blog_details' | MU (3.0.0) | 4.7.0 | 'site_details' |
'rest_enabled' | 4.4.0 | 4.7.0 | 'rest_authentication_errors' |
'login_headertitle' | 2.1.0 | 5.2.0 | 'login_headertext' |
自身が使っているテーマや自作したプラグインなどでこれらのフィルターを使っている場合は、適当な段階で代替フィルターに書き換えるべきだろう。
最終更新 : 2019年04月24日 21:54
お勧め
parse_blocks(2024年7月24日 更新)
array[] parse_blocks( string $content )
投稿コンテンツをパースする。
single_post_title(2012年9月6日 更新)
string single_post_title( [ string $prefix = '' [ , bool $display = true ] ] )
投稿ページのタイトルを表示する。
timer_stop(2021年7月23日 更新)
string timer_stop( [ int $display = 0 [ , int $precision = 3 ] ] )
タイマー開始時からの経過時間を取得する。
is_ssl(2022年7月2日 更新)
bool is_ssl( )
リクエストがSSLかどうか調べる。
wp_title_rss(2014年4月10日 更新)
void wp_title_rss( [ string $sep = '»' ] )
フィード向けのページタイトルを出力する。