Make WordPress Core

Opened 16 years ago

Closed 16 years ago

#5546 closed defect (bug) (fixed)

Variable expansion in error message

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


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 16 years ago.

Download all attachments as: .zip

Change History (3)

16 years ago


#1 @DD32
16 years ago

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

#2 @westi
16 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.