[wp-trac] [WordPress Trac] #22251: Helper function to simplify checking for constants

WordPress Trac noreply at wordpress.org
Mon Oct 22 04:31:08 UTC 2012


#22251: Helper function to simplify checking for constants
-------------------------+------------------------------
 Reporter:  evansolomon  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  General      |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by MikeSchinkel):

 Given the proposal above here's what part of a future `wp-config.php`
 might look like:

 {{{
 $wp->WP_DEBUG = true;

 $wp->SAVEQUERIES = true;

 $wp->WP_SITEURL = 'http://www.example.com';
 $wp->WP_HOST = $wp->WP_SITEURL

 // ** MySQL settings - You can get this info from your web host ** //
 /** The name of the database for WordPress */
 $wp->DB_NAME = 'site_db';

 /** MySQL database username */
 $wp->DB_USER = 'site_user';

 /** MySQL database password */
 $wp->DB_PASSWORD = 'abcde12345';

 /** MySQL hostname */
 $wp->DB_HOST = 'localhost';

 /** Database Charset to use in creating database tables. */
 $wp->DB_CHARSET = 'utf8';

 /** The Database Collate type. Don't change this if in doubt. */
 $wp->DB_COLLATE = '';
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22251#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list