WordPress Snippet

ワードプレスをカスタマイズしよう

WordPress 4.3 Notice Error

投稿日: by

WordPress 4.3 Notice Error

投稿日: by

WordPress4.3では、debug.logに大量のnoticeエラーが記録されるようになります。

今年後半にリリース予定のPHP7で、PHP4形式のコンストラクタの記述が非推奨となるため、

PHP4形式の クラス コンストラクタ の記述を、PHP5の __construct に書き換えるように促しているようです。

Deprecating PHP4 style constructors in WordPress 4.3

[24-Jul-2015 00:39:48 UTC] PHP Notice: The called constructor method for WP_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /path/wp-includes/functions.php on line 3457
[24-Jul-2015 00:39:48 UTC] PHP Notice: The called constructor method for WP_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /path/wp-includes/functions.php on line 3457
[24-Jul-2015 00:39:56 UTC] PHP Notice: The called constructor method for WP_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /path/wp-includes/functions.php on line 3457
[24-Jul-2015 00:39:56 UTC] PHP Notice: The called constructor method for WP_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /path/wp-includes/functions.php on line 3457
[24-Jul-2015 00:39:58 UTC] PHP Notice: The called constructor method for WP_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /path/wp-includes/functions.php on line 3457
[24-Jul-2015 00:39:58 UTC] PHP Notice: The called constructor method for WP_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /path/wp-includes/functions.php on line 3457
[24-Jul-2015 00:40:00 UTC] PHP Notice: The called constructor method for WP_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /path/wp-includes/functions.php on line 3457
[24-Jul-2015 00:40:00 UTC] PHP Notice: The called constructor method for WP_Widget is <strong>deprecated</strong> since version 4.3.0! Use <pre>__construct()</pre> instead. in /path/wp-includes/functions.php on line 3457