我的wordpress插件遇到PHP> 5.4错误
Strict standards: Only variables should be passed by reference in
wp-content'plugins'use-google-libraries'use-google-libraries.php on line 335
但是第335行是这样开头的:
if ( wp_remote_retrieve_response_code( wp_remote_head( "http:$url" ) ) !== 200 ) {
self::debug( "Google servers do not seem to be hosting requested version of $name (version $ver). Using version provided by WordPress." );
continue;
}
我知道引用传递类似于=&
,但我没有看到任何类似的符号。插件是:https://wordpress.org/plugins/use-google-libraries/我真的搜索了关于这个,但没有找到任何东西,想要解决这个问题。
我看了看文件。插件在去年没有更新,可能也会遇到其他问题。
手动修改wp_remote_head
为wp_remote_get
。我想这会解决问题的。