WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 6 years ago

#4823 closed defect (bug) (invalid)

Wrong REGEXP in formatting.php

Reported by: RickGC Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

In wp-includes/formatting.php, line 649 the REGEXP is wrong?

I think it must be

$textarr = preg_split("/(<.*>)/Us", $text, -1, PREG_SPLIT_DELIM_CAPTURE); // capture the tags as well as in between

Note the extra s in "/(<.*>)/Us"

Thanks

Change History (2)

comment:1 Otto427 years ago

Errr.. No.. The s modifier would make the dot match newlines as well. What would be the point of that?

comment:2 DD326 years ago

  • Milestone 2.5 deleted
  • Resolution set to invalid
  • Status changed from new to closed
  • Version 2.2.2 deleted

Closing as no traction, and it appears to have not been an issue.

re-open if i'm mistaken.

Note: See TracTickets for help on using tickets.