WordPress.org

Make WordPress Core

Ticket #39958: 39958.patch

File 39958.patch, 6.4 KB (added by mariovalney, 3 years ago)
  • wp-config-sample.php

    diff --git a/wp-config-sample.php b/wp-config-sample.php
    index 7cfaf32..02091c1 100644
    a b  
    1 <?php
    2 /**
    3  * The base configuration for WordPress
    4  *
    5  * The wp-config.php creation script uses this file during the
    6  * installation. You don't have to use the web site, you can
    7  * copy this file to "wp-config.php" and fill in the values.
    8  *
    9  * This file contains the following configurations:
    10  *
    11  * * MySQL settings
    12  * * Secret keys
    13  * * Database table prefix
    14  * * ABSPATH
    15  *
    16  * @link https://codex.wordpress.org/Editing_wp-config.php
    17  *
    18  * @package WordPress
    19  */
    20 
    21 // ** MySQL settings - You can get this info from your web host ** //
    22 /** The name of the database for WordPress */
    23 define('DB_NAME', 'database_name_here');
    24 
    25 /** MySQL database username */
    26 define('DB_USER', 'username_here');
    27 
    28 /** MySQL database password */
    29 define('DB_PASSWORD', 'password_here');
    30 
    31 /** MySQL hostname */
    32 define('DB_HOST', 'localhost');
    33 
    34 /** Database Charset to use in creating database tables. */
    35 define('DB_CHARSET', 'utf8');
    36 
    37 /** The Database Collate type. Don't change this if in doubt. */
    38 define('DB_COLLATE', '');
    39 
    40 /**#@+
    41  * Authentication Unique Keys and Salts.
    42  *
    43  * Change these to different unique phrases!
    44  * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
    45  * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
    46  *
    47  * @since 2.6.0
    48  */
    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');
    57 
    58 /**#@-*/
    59 
    60 /**
    61  * WordPress Database Table prefix.
    62  *
    63  * You can have multiple installations in one database if you give each
    64  * a unique prefix. Only numbers, letters, and underscores please!
    65  */
    66 $table_prefix  = 'wp_';
    67 
    68 /**
    69  * For developers: WordPress debugging mode.
    70  *
    71  * Change this to true to enable the display of notices during development.
    72  * It is strongly recommended that plugin and theme developers use WP_DEBUG
    73  * in their development environments.
    74  *
    75  * For information on other constants that can be used for debugging,
    76  * visit the Codex.
    77  *
    78  * @link https://codex.wordpress.org/Debugging_in_WordPress
    79  */
    80 define('WP_DEBUG', false);
    81 
    82 /* That's all, stop editing! Happy blogging. */
    83 
    84 /** Absolute path to the WordPress directory. */
    85 if ( !defined('ABSPATH') )
    86         define('ABSPATH', dirname(__FILE__) . '/');
    87 
    88 /** Sets up WordPress vars and included files. */
    89 require_once(ABSPATH . 'wp-settings.php');
     1<?php
     2/**
     3 * The base configuration for WordPress
     4 *
     5 * The wp-config.php creation script uses this file during the
     6 * installation. You don't have to use the web site, you can
     7 * copy this file to "wp-config.php" and fill in the values.
     8 *
     9 * This file contains the following configurations:
     10 *
     11 * * MySQL settings
     12 * * Secret keys
     13 * * Database table prefix
     14 * * ABSPATH
     15 *
     16 * @link https://codex.wordpress.org/Editing_wp-config.php
     17 *
     18 * @package WordPress
     19 */
     20
     21// ** MySQL settings - You can get this info from your web host ** //
     22/** The name of the database for WordPress */
     23define('DB_NAME', 'database_name_here');
     24
     25/** MySQL database username */
     26define('DB_USER', 'username_here');
     27
     28/** MySQL database password */
     29define('DB_PASSWORD', 'password_here');
     30
     31/** MySQL hostname */
     32define('DB_HOST', 'localhost');
     33
     34/** Database Charset to use in creating database tables. */
     35define('DB_CHARSET', 'utf8');
     36
     37/** The Database Collate type. Don't change this if in doubt. */
     38define('DB_COLLATE', '');
     39
     40/**#@+
     41 * Authentication Unique Keys and Salts.
     42 *
     43 * Change these to different unique phrases!
     44 * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
     45 * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
     46 *
     47 * @since 2.6.0
     48 */
     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');
     57
     58/**#@-*/
     59
     60/**
     61 * WordPress Database Table prefix.
     62 *
     63 * You can have multiple installations in one database if you give each
     64 * a unique prefix. Only numbers, letters, and underscores please!
     65 */
     66$table_prefix  = 'wp_';
     67
     68/**
     69 * For developers: WordPress debugging mode.
     70 *
     71 * Change this to true to enable the display of notices during development.
     72 * It is strongly recommended that plugin and theme developers use WP_DEBUG
     73 * in their development environments.
     74 *
     75 * For information on other constants that can be used for debugging,
     76 * visit the Codex.
     77 *
     78 * @link https://codex.wordpress.org/Debugging_in_WordPress
     79 */
     80define('WP_DEBUG', false);
     81
     82/* That's all, stop editing! Happy blogging. */
     83
     84/** Absolute path to the WordPress directory. */
     85if ( !defined('ABSPATH') )
     86        define('ABSPATH', dirname(__FILE__) . '/');
     87
     88/** Sets up WordPress vars and included files. */
     89require_once(ABSPATH . 'wp-settings.php');
  • wp-content/themes/twentyseventeen/comments.php

    diff --git a/wp-content/themes/twentyseventeen/comments.php b/wp-content/themes/twentyseventeen/comments.php
    index f93c09e..7c9624a 100644
    a b if ( post_password_required() ) { 
    2626<div id="comments" class="comments-area">
    2727
    2828        <?php
     29        comment_form();
     30
    2931        // You can start editing here -- including this comment!
    3032        if ( have_comments() ) : ?>
    3133                <h2 class="comments-title">
    if ( post_password_required() ) { 
    7678        <?php
    7779        endif;
    7880
    79         comment_form();
    8081        ?>
    8182
    8283</div><!-- #comments -->