Thread Starter
RezaY
(@mohammad983)
By the way, I get this error too. But I do not know. Does it related to the plugin or not!
[30-Nov-2020 19:11:03 UTC] PHP Warning: preg_match() expects parameter 2 to be string, array given in /wp-includes/class-simplepie.php on line 2620
Plugin Contributor
Maya
(@tdgu)
Hi,
Is the notice triggering in a specific interface tab? Any specific actions to follow to replicate or is just random?
The second message (warning) does not appear related to the plugin.
Thanks
It appears in Generate/HTML – Remove Shortlink Meta
Because there is no help for Shortlink.
This is a PHP 7.3 warning notice that, in previous version, if it is a bool and you try to get something with undefined index, nothing will happen.
It encourages a better programming approach rather than leave the job to the compiler.
So the suggested checking is something like:
//...
if ( isset( $module_setting['help'] ) ) {}
//...
-
This reply was modified 5 years, 3 months ago by
西門 正 Code Guy. Reason: grammar
-
This reply was modified 5 years, 3 months ago by
西門 正 Code Guy. Reason: typos