Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-config-sample.php

    r42201 r42343  
    2121// ** MySQL settings - You can get this info from your web host ** //
    2222/** The name of the database for WordPress */
    23 define('DB_NAME', 'database_name_here');
     23define( 'DB_NAME', 'database_name_here' );
    2424
    2525/** MySQL database username */
    26 define('DB_USER', 'username_here');
     26define( 'DB_USER', 'username_here' );
    2727
    2828/** MySQL database password */
    29 define('DB_PASSWORD', 'password_here');
     29define( 'DB_PASSWORD', 'password_here' );
    3030
    3131/** MySQL hostname */
    32 define('DB_HOST', 'localhost');
     32define( 'DB_HOST', 'localhost' );
    3333
    3434/** Database Charset to use in creating database tables. */
    35 define('DB_CHARSET', 'utf8');
     35define( 'DB_CHARSET', 'utf8' );
    3636
    3737/** The Database Collate type. Don't change this if in doubt. */
    38 define('DB_COLLATE', '');
     38define( 'DB_COLLATE', '' );
    3939
    4040/**#@+
     
    4747 * @since 2.6.0
    4848 */
    49 define('AUTH_KEY',         'put your unique phrase here');
    50 define('SECURE_AUTH_KEY',  'put your unique phrase here');
    51 define('LOGGED_IN_KEY',    'put your unique phrase here');
    52 define('NONCE_KEY',        'put your unique phrase here');
    53 define('AUTH_SALT',        'put your unique phrase here');
    54 define('SECURE_AUTH_SALT', 'put your unique phrase here');
    55 define('LOGGED_IN_SALT',   'put your unique phrase here');
    56 define('NONCE_SALT',       'put your unique phrase here');
     49define( 'AUTH_KEY',         'put your unique phrase here' );
     50define( 'SECURE_AUTH_KEY',  'put your unique phrase here' );
     51define( 'LOGGED_IN_KEY',    'put your unique phrase here' );
     52define( 'NONCE_KEY',        'put your unique phrase here' );
     53define( 'AUTH_SALT',        'put your unique phrase here' );
     54define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
     55define( 'LOGGED_IN_SALT',   'put your unique phrase here' );
     56define( 'NONCE_SALT',       'put your unique phrase here' );
    5757
    5858/**#@-*/
     
    6464 * a unique prefix. Only numbers, letters, and underscores please!
    6565 */
    66 $table_prefix  = 'wp_';
     66$table_prefix = 'wp_';
    6767
    6868/**
     
    7878 * @link https://codex.wordpress.org/Debugging_in_WordPress
    7979 */
    80 define('WP_DEBUG', false);
     80define( 'WP_DEBUG', false );
    8181
    8282/* That's all, stop editing! Happy blogging. */
    8383
    8484/** Absolute path to the WordPress directory. */
    85 if ( !defined('ABSPATH') )
    86     define('ABSPATH', dirname(__FILE__) . '/');
     85if ( ! defined( 'ABSPATH' ) ) {
     86    define( 'ABSPATH', dirname( __FILE__ ) . '/' );
     87}
    8788
    8889/** Sets up WordPress vars and included files. */
    89 require_once(ABSPATH . 'wp-settings.php');
     90require_once( ABSPATH . 'wp-settings.php' );
Note: See TracChangeset for help on using the changeset viewer.