Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/25/2019 07:40:55 PM (3 years ago)
Author:
johnjamesjacoby
Message:

Parser: Fix PHP 7.3 warning ("continue" in "switch" is equal to "break")

Fixes #3242.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/admin/parser.php

    r6633 r6887  
    223223if (strlen($this->text) > 0)
    224224return $this->token = BBCODE_TEXT;
    225 continue;
     225continue 2;
    226226}
    227227default:
     
    235235if (preg_match($this->pat_comment, $this->text)) {
    236236$this->state = BBCODE_LEXSTATE_TEXT;
    237 continue;
     237continue 2;
    238238}
    239239if (preg_match($this->pat_comment2, $this->text)) {
    240240$this->state = BBCODE_LEXSTATE_TEXT;
    241 continue;
     241continue 2;
    242242}
    243243if (preg_match($this->pat_wiki, $this->text, $matches)) {
     
    14831483$tag_body = $this->Internal_CollectTextReverse($output, count($output)-1, $end);
    14841484$this->Internal_CleanupWSByPoppingStack(@$rule['before_tag'], $this->stack);
    1485 @$this->Internal_UpdateParamsForMissingEndTag(@$token[BBCODE_STACK_TAG]);
     1485$this->Internal_UpdateParamsForMissingEndTag(@$token[BBCODE_STACK_TAG]);
    14861486$tag_output = $this->DoTag(BBCODE_OUTPUT, $name,
    14871487@$token[BBCODE_STACK_TAG]['_default'], @$token[BBCODE_STACK_TAG], $tag_body);
     
    20882088}
    20892089}
    2090 
Note: See TracChangeset for help on using the changeset viewer.