WordPress:“仅变量应通过引用传递”错误

时间:2019-01-26 17:44:01

标签: php wordpress variables

这是WordPress bbPress导入器的一部分,用于将vBulletin导入WordPress。但是,此错误在每次“单个主题导入”时都会重复出现,我不知道在该位置使用什么语法。

代码

else {
    $name = @$token[BBCODE_STACK_TAG]['_name'];
    $rule = @$this->tag_rules[$name];
    $end_tag = @$rule['end_tag'];
    if (!isset($rule['end_tag'])) $end_tag = BBCODE_REQUIRED;
    else $end_tag = $rule['end_tag'];
    array_pop($this->start_tags[$name]);
    if ($end_tag == BBCODE_PROHIBIT) {
        $output[] = Array(
            BBCODE_STACK_TOKEN => BBCODE_TEXT,
            BBCODE_STACK_TAG => false,
            BBCODE_STACK_TEXT => $token[BBCODE_STACK_TEXT],
            BBCODE_STACK_CLASS => $this->current_class,
        );
    }
    else {
        if ($end_tag == BBCODE_REQUIRED)
        @$this->lost_start_tags[$name] += 1;
        $end = $this->Internal_CleanupWSByIteratingPointer(@$rule['before_endtag'], 0, $output);
        $this->Internal_CleanupWSByPoppingStack(@$rule['after_tag'], $output);
        $tag_body = $this->Internal_CollectTextReverse($output, count($output)-1, $end);
        $this->Internal_CleanupWSByPoppingStack(@$rule['before_tag'], $this->stack);
        $this->Internal_UpdateParamsForMissingEndTag(@$token[BBCODE_STACK_TAG]); // Line 1823
        $tag_output = $this->DoTag(BBCODE_OUTPUT, $name,
        @$token[BBCODE_STACK_TAG]['_default'], @$token[BBCODE_STACK_TAG], $tag_body);
        $output = Array(Array(
            BBCODE_STACK_TOKEN => BBCODE_TEXT,
            BBCODE_STACK_TAG => false,
            BBCODE_STACK_TEXT => $tag_output,
            BBCODE_STACK_CLASS => $this->current_class
        ));
    }

错误

  

PHP注意:在/wp-content/plugins/bbpress/includes/admin/parser.php on line 1823

中,仅变量应通过引用传递

0 个答案:

没有答案