Making WordPress.org

Opened 15 months ago

Closed 15 months ago

Last modified 15 months ago

#5365 closed defect (fixed)

Invalid regex on the WP.org developer theme.

Reported by: xknown Owned by: Otto42
Milestone: Priority: normal
Component: Developer Hub Keywords: has-patch


The regex used in wporg-developer/inc/formatting.php:210 is invalid. It generates the following PHP warning.

preg_match(): Compilation failed: invalid range in character class at offset 24

Change History (5)

This ticket was mentioned in PR #18 on WordPress/wordpress.org by xknown.

15 months ago

  • Keywords has-patch added

This fixes a PHP warning.

Fixes https://meta.trac.wordpress.org/ticket/5365

#2 @prbot
15 months ago

xknown commented on PR #18:

@coffee2code can you please take a look when you have some free time?

#3 @Otto42
15 months ago

  • Owner set to Otto42
  • Resolution set to fixed
  • Status changed from new to closed

In 10145:

Fix a regular expression that newer PHP versions don't like, by escaping the - symbol, to avoid a character class from being seen as a range. Fixes #5365

#4 @coffee2code
15 months ago

  • Component changed from General to Developer Hub

#5 @prbot
15 months ago

xknown commented on PR #18:

Closing, this has been fixed in 36583ff4c52a391f3b44a634809e398dce3a1eca

Note: See TracTickets for help on using tickets.