0

我正在使用用于 wordpress 的Skitter Slideshow 插件,在此插件的管理面板中的媒体库选项卡中,它显示以下警告:

Warning: Illegal string offset 'image' in C:\wamp\www\wp-content\plugins\wp-skitter-slideshow\wp-skitter-slideshow.php on line 762 and 826 

尝试在此插件的管理面板中加载新图像时出现此问题...

第 762 行代码

foreach($attachments as $i => $attachment) {

    $id = $attachment->ID;

    $style = (is_array($options_attachments['image']) && in_array($id, $options_attachments['image'])) ? ' style="opacity:0.3;"' : '';

第 826 行代码

foreach($attachments as $i => $attachment) 
{

    $id = $attachment->ID;

    if (is_array($options_attachments['image']) && in_array($id, $options_attachments['image'])) continue;

任何建议将不胜感激

4

0 回答 0