【发布时间】:2012-12-02 06:46:39
【问题描述】:
我在手动更新我的 wordpress 安装后收到此错误:
解析错误:语法错误,意外的 T_FUNCTION
这是导致错误的代码:
function paginate_links($args = ''){
$defaults = array(
'base' => '%_%', // http://example.com/all_posts.php%_% : %_% is replaced by format (below)
'format' => '?page=%#%', // ?page=%#% : %#% is replaced by the page number
'total' => 1,
'current' => 0,
'show_all' => false,
'prev_next' => true,
'prev_text' => __('« Previous'),
'next_text' => __('Next »'),
'end_size' => 1,
'mid_size' => 2,
'type' => 'plain',
'add_args' => false, // array of query args to add
'add_fragment' => '');
}
谁能帮忙?
【问题讨论】:
-
错误在哪一行?
-
这个:function paginate_links($args = ''){
标签: php wordpress parsing syntax-error