警告地图小部件中的explode()

时间:2014-05-21 10:43:24

标签: php arrays wordpress explode

我在使用某个插件的地图窗口小部件的页面上收到错误消息:

Warning: explode() expects parameter 2 to be string, array given in 
        /usr/www/users/mednukptke/wordpress/wp-content/themes/jobify/inc/integrations/wp-job-manager/widgets/class-widget-jobs-map.php on line 111

Warning: array_map(): Argument #2 should be an array in 
/usr/www/users/mednukptke/wordpress/wp-content/themes/jobify/inc/integrations/wp-job-manager/widgets/class-widget-jobs-map.php on line 111 

我打开了那个特定文件,第111行读取

$center = isset( $instance[ 'center' ] ) && '' != $instance[ 'center' ] ? array_map( 'trim', explode( ',', $instance[ 'center' ] ) ) : 'autofit';

任何人都可以请告诉我需要更改以消除该错误消息吗?

谢谢!

0 个答案:

没有答案