WordPress.org

Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#5546 closed defect (bug) (fixed)

Variable expansion in error message

Reported by: takayukister Owned by:
Milestone: 2.5 Priority: normal
Severity: trivial Version: 2.5
Component: General Keywords: has-patch
Focuses: Cc:

Description

When you define $table_prefix as any string including invalid letter, like '-+*!testtest', in wp-config.php and access any page on the site, it shows error message "ERROR: -+*!testtest in wp-config.php can only contain numbers, letters, and underscores." Shouldn't it be "ERROR: $table_prefix in wp-config.php can only contain numbers, letters, and underscores."?

Attachments (1)

wpsettings.diff (676 bytes) - added by takayukister 6 years ago.
single-quoted

Download all attachments as: .zip

Change History (3)

takayukister6 years ago

single-quoted

comment:1 DD326 years ago

  • Keywords has-patch added
  • Milestone changed from 2.5 to 2.4

comment:2 westi6 years ago

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

(In [6522]) Use ' not " so we don't expand. Fixes #5546 props takayukister.

Note: See TracTickets for help on using tickets.