PHP7 compatibility
-
Hello ??
I tried to add plugin compatibility for your plugin, but my test server runs PHP7.
This caused the following error on activation:
Fatal error: 'break' not in the 'loop' or 'switch' context in /..../wp-content/plugins/dw-question-answer/inc/actions.php on line 921
The problem is is that the break; on line 921 is redundant. You can safely remove it.
Other than that, the constructors are old-style and should be replace
public function __construct() { }
These are the cases I found:
DWQA_Related_Question_Widget
DWQA_Popular_Question_Widget
DWQA_Latest_Question_Widget
DWQA_Closed_Question_WidgetThese constructors will also output a deprecation notice through WordPress’ WP_Widget class since WP4.3.
Hope this gets an update! ??
Thanks and have a great day!
- The topic ‘PHP7 compatibility’ is closed to new replies.