0
我正在使用一个伟大的Wordpress在亚马逊S3上存储名为“Amazon S3 for WordPress”的文件,它似乎与Wordpress版本3.0+有一个错误。亚马逊S3 for WordPress的错误
我正的错误是:
警告:strpos()预计参数1 是字符串,阵列中 /home/dir/public_html/www.site.com/wp-admin给出上线310
这里/includes/media.php 是代码在周围忽略原始线310:
wp_enqueue_style('global'); wp_enqueue_style('wp-admin'); wp_enqueue_style('colors'); // Check callback name for 'media' if ((is_array($content_func) && ! empty($content_func[1]) && 0 === strpos((string) $content_func[1], 'media')) || 0 === strpos($content_func, 'media')) wp_enqueue_style('media'); wp_enqueue_style('ie');
我很想知道发生了什么。
谢谢
上述行周围的代码块是什么样的? – 2010-08-18 16:58:16
<?php wp_enqueue_style('global'); wp_enqueue_style('wp-admin'); wp_enqueue_style('colors'); //检查'media'的回调名称 if((is_array($ content_func)&&!empty($ content_func [1])&& 0 === strpos((string)$ content_func [1],'media')) || 0 === strpos($ content_func,'media')) 310行是if语句。 \t wp_enqueue_style('media'); wp_enqueue_style('ie'); ?> – 2010-08-18 17:27:32