[25-Jan-2021 01:54:04 UTC] PHP Warning: array_key_exists() expects parameter 2 to be array, string given in /data/web/e35586/html/apps/wordpress-21637/wp-content/plugins/shortcoder/shortcoder.php on line 147
[25-Jan-2021 01:54:04 UTC] PHP Warning: array_key_exists() expects parameter 2 to be array, string given in /data/web/e35586/html/apps/wordpress-21637/wp-content/plugins/shortcoder/shortcoder.php on line 159
Shortcoder Version 5.3.4
https://www.kerstinreithmayr.com
Any idea what may be causing this?
if( array_key_exists( ‘sc_id’, $atts ) ){
$sc_id = $atts[ ‘sc_id’ ];
foreach( $shortcodes as $temp_name => $temp_props ){
if( $temp_props[ ‘id’ ] == $sc_id ){
$sc_name = $temp_name;
break;
}
}
}
and
if( !$sc_name ){
if( !array_key_exists( ‘name’, $atts ) ){
return ‘<!– Shortcode is missing “name” attribute –>’;
}
$sc_name = $atts[ ‘name’ ];
}
Appreciate your help!
Thanks