Make WordPress Core

source: trunk/wp-tests-config-sample.php

Last change on this file was 60629, checked in by SergeyBiryukov, 4 months ago

Database: Update default DB_CHARSET to utf8mb4 in wp-config-sample.php.

utf8mb4 is the complete UTF-8 implementation in MySQL, supporting the full range of Unicode characters by using up to 4 bytes per character. This includes characters outside the Basic Multilingual Plane, such as emoji and supplementary characters. utf8mb4 ensures full compatibility with modern text content and diverse character sets.

As of WordPress 4.2, on both new and existing installations, WordPress would automatically upgrade database tables to utf8mb4 on compatible servers (MySQL 5.5.3 or later). However, the default DB_CHARSET value during setup was still set to utf8 for compatibility with older MySQL versions.

As of WordPress 6.5, the minimum required MySQL version is 5.5.5, so the default can be updated to utf8mb4.

Follow-up to [30345], [31349], [57173], [57926].

Props bchecketts, JavierCasares, dmsnell, SergeyBiryukov.
Fixes #48285.

  • Property svn:eol-style set to native
File size: 2.3 KB
Line 
1<?php
2
3/* Path to the WordPress codebase you'd like to test. Add a forward slash in the end. */
4define( 'ABSPATH', dirname( __FILE__ ) . '/src/' );
5
6/*
7 * Path to the theme to test with.
8 *
9 * The 'default' theme is symlinked from test/phpunit/data/themedir1/default into
10 * the themes directory of the WordPress installation defined above.
11 */
12define( 'WP_DEFAULT_THEME', 'default' );
13
14/*
15 * Test with multisite enabled.
16 * Alternatively, use the tests/phpunit/multisite.xml configuration file.
17 */
18// define( 'WP_TESTS_MULTISITE', true );
19
20/*
21 * Force known bugs to be run.
22 * Tests with an associated Trac ticket that is still open are normally skipped.
23 */
24// define( 'WP_TESTS_FORCE_KNOWN_BUGS', true );
25
26// Test with WordPress debug mode (default).
27define( 'WP_DEBUG', true );
28
29// ** Database settings ** //
30
31/*
32 * This configuration file will be used by the copy of WordPress being tested.
33 * wordpress/wp-config.php will be ignored.
34 *
35 * WARNING WARNING WARNING!
36 * These tests will DROP ALL TABLES in the database with the prefix named below.
37 * DO NOT use a production database or one that is shared with something else.
38 */
39
40define( 'DB_NAME', 'youremptytestdbnamehere' );
41define( 'DB_USER', 'yourusernamehere' );
42define( 'DB_PASSWORD', 'yourpasswordhere' );
43define( 'DB_HOST', 'localhost' );
44define( 'DB_CHARSET', 'utf8mb4' );
45define( 'DB_COLLATE', '' );
46
47/**#@+
48 * Authentication Unique Keys and Salts.
49 *
50 * Change these to different unique phrases!
51 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
52 */
53define( 'AUTH_KEY',         'put your unique phrase here' );
54define( 'SECURE_AUTH_KEY',  'put your unique phrase here' );
55define( 'LOGGED_IN_KEY',    'put your unique phrase here' );
56define( 'NONCE_KEY',        'put your unique phrase here' );
57define( 'AUTH_SALT',        'put your unique phrase here' );
58define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
59define( 'LOGGED_IN_SALT',   'put your unique phrase here' );
60define( 'NONCE_SALT',       'put your unique phrase here' );
61
62$table_prefix = 'wptests_';   // Only numbers, letters, and underscores please!
63
64define( 'WP_TESTS_DOMAIN', 'example.org' );
65define( 'WP_TESTS_EMAIL', 'admin@example.org' );
66define( 'WP_TESTS_TITLE', 'Test Blog' );
67
68define( 'WP_PHP_BINARY', 'php' );
69
70define( 'WPLANG', '' );
Note: See TracBrowser for help on using the repository browser.