如何解决wordpress解析错误:语法错误,意外的'version \']{'T_CONSTANT_ENCAPSED_STRING,需要标识符T_STRING
我该如何解决
解析错误:语法错误,意外的“版本”])){' (T_CONSTANT_ENCAPSED_STRING),期望中的标识符(T_STRING) /home1/XXX/public_html/XXX/wp-content/themes/bettaso/cherry-framework/setup.php 在第42行
<?php
/**
* Setup function that used for checking latest version of the core.
* It creates `$chery_core_version` global variable and writes the latest core version
* and it's path into it.
*
* @package Cherry_Framework
* @author Cherry Team <cherryframework@gmail.com>
* @copyright Copyright (c) 2012 - 2016,Cherry Team
* @link http://www.cherryframework.com/
* @license http://www.gnu.org/licenses/old-licenses/gpl-3.0.html
*/
#return create_function( '','
# global $chery_core_version;
# $path = trailingslashit( __DIR__ ) . \'cherry-core.php\';
### ) );
if ( isset( $data[\'version\'] ) ) {
$version = $data[\'version\'];
}
$old_versions = null;
if ( null !== $chery_core_version ) {
$old_versions = array_keys( $chery_core_version );
}
if ( is_array( $old_versions ) && isset( $old_versions[0] ) ) {
$compare = version_compare( $old_versions[0],$version,\'<\' );
if ( $compare ) {
$chery_core_version = array();
$chery_core_version[ $version ] = $path;
}
} else {
$chery_core_version = array();
$chery_core_version[ $version ] = $path;
}
' );
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。