[wp-testers] Your mission, should you choose to accept it

Mark Jaquith mark.wordpress at txfx.net
Fri Jan 5 12:22:54 GMT 2007


On Jan 5, 2007, at 4:53 AM, Dave J. (Scoop0901) wrote:

> I know someone else brought this kind of error up a few days ago, if
> memory serves me.  Is there anyway to put in a "Oops, you didn't read
> the instructions" message if someone uses an illegal character during
> the install process?

Sure... it's as simple as putting something like this at the top of  
wp-settings.php:

if ( preg_match('|[^0-9a-z_]|i', $table_prefix) )
	die(__('<strong>Error:</strong> <code>$table_prefix</code> in  
<code>wp-config.php</code> can only contain numbers, letters and  
underscores'));

--
Mark Jaquith
http://markjaquith.com/

Covered Web Services
http://covered.be/




More information about the wp-testers mailing list