WordPress.org

Make WordPress Core

Ticket #17739: 17739.diff

File 17739.diff, 6.0 KB (added by voldemortensen, 7 years ago)
  • wp-config-sample.php

     
    1 <?php
    2 /**
    3  * The base configurations of the WordPress.
    4  *
    5  * This file has the following configurations: MySQL settings, Table Prefix,
    6  * Secret Keys, WordPress Language, and ABSPATH. You can find more information
    7  * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
    8  * wp-config.php} Codex page. You can get the MySQL settings from your web host.
    9  *
    10  * This file is used by the wp-config.php creation script during the
    11  * installation. You don't have to use the web site, you can just copy this file
    12  * to "wp-config.php" and fill in the values.
    13  *
    14  * @package WordPress
    15  */
    16 
    17 // ** MySQL settings - You can get this info from your web host ** //
    18 /** The name of the database for WordPress */
    19 define('DB_NAME', 'database_name_here');
    20 
    21 /** MySQL database username */
    22 define('DB_USER', 'username_here');
    23 
    24 /** MySQL database password */
    25 define('DB_PASSWORD', 'password_here');
    26 
    27 /** MySQL hostname */
    28 define('DB_HOST', 'localhost');
    29 
    30 /** Database Charset to use in creating database tables. */
    31 define('DB_CHARSET', 'utf8');
    32 
    33 /** The Database Collate type. Don't change this if in doubt. */
    34 define('DB_COLLATE', '');
    35 
    36 /**#@+
    37  * Authentication Unique Keys and Salts.
    38  *
    39  * Change these to different unique phrases!
    40  * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
    41  * 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.
    42  *
    43  * @since 2.6.0
    44  */
    45 define('AUTH_KEY',         'put your unique phrase here');
    46 define('SECURE_AUTH_KEY',  'put your unique phrase here');
    47 define('LOGGED_IN_KEY',    'put your unique phrase here');
    48 define('NONCE_KEY',        'put your unique phrase here');
    49 define('AUTH_SALT',        'put your unique phrase here');
    50 define('SECURE_AUTH_SALT', 'put your unique phrase here');
    51 define('LOGGED_IN_SALT',   'put your unique phrase here');
    52 define('NONCE_SALT',       'put your unique phrase here');
    53 
    54 /**#@-*/
    55 
    56 /**
    57  * WordPress Database Table prefix.
    58  *
    59  * You can have multiple installations in one database if you give each a unique
    60  * prefix. Only numbers, letters, and underscores please!
    61  */
    62 $table_prefix  = 'wp_';
    63 
    64 /**
    65  * For developers: WordPress debugging mode.
    66  *
    67  * Change this to true to enable the display of notices during development.
    68  * It is strongly recommended that plugin and theme developers use WP_DEBUG
    69  * in their development environments.
    70  */
    71 define('WP_DEBUG', false);
    72 
    73 /* That's all, stop editing! Happy blogging. */
    74 
    75 /** Absolute path to the WordPress directory. */
    76 if ( !defined('ABSPATH') )
    77         define('ABSPATH', dirname(__FILE__) . '/');
    78 
    79 /** Sets up WordPress vars and included files. */
    80 require_once(ABSPATH . 'wp-settings.php');
  • src/wp-includes/comment-template.php

     
    20492049 *     @type string $must_log_in          HTML element for a 'must be logged in to comment' message.
    20502050 *     @type string $logged_in_as         HTML element for a 'logged in as <user>' message.
    20512051 *     @type string $comment_notes_before HTML element for a message displayed before the comment form.
    2052  *                                        Default 'Your email address will not be published.'.
    20532052 *     @type string $comment_notes_after  HTML element for a message displayed after the comment form.
    20542053 *                                        Default 'You may use these HTML tags and attributes ...'.
    20552054 *     @type string $id_form              The comment form element id attribute. Default 'commentform'.
     
    21052104                'must_log_in'          => '<p class="must-log-in">' . sprintf( __( 'You must be <a href="%s">logged in</a> to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
    21062105                /** This filter is documented in wp-includes/link-template.php */
    21072106                'logged_in_as'         => '<p class="logged-in-as">' . sprintf( __( 'Logged in as <a href="%1$s">%2$s</a>. <a href="%3$s" title="Log out of this account">Log out?</a>' ), get_edit_user_link(), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '</p>',
    2108                 'comment_notes_before' => '<p class="comment-notes">' . __( 'Your email address will not be published.' ) . ( $req ? $required_text : '' ) . '</p>',
     2107                'comment_notes_before' => '<p class="comment-notes">' . ( $req ? $required_text : '' ) . '</p>',
    21092108                'comment_notes_after'  => '<p class="form-allowed-tags">' . sprintf( __( 'You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: %s' ), ' <code>' . allowed_tags() . '</code>' ) . '</p>',
    21102109                'id_form'              => 'commentform',
    21112110                'id_submit'            => 'submit',
  • src/wp-includes/theme-compat/comments.php

     
    7777<label for="author"><small><?php _e('Name'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
    7878
    7979<p><input type="text" name="email" id="email" value="<?php echo esc_attr($comment_author_email); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> />
    80 <label for="email"><small><?php _e('Mail (will not be published)'); ?> <?php if ($req) _e('(required)'); ?></small></label></p>
     80<label for="email"><small><?php if ($req) _e('(required)'); ?></small></label></p>
    8181
    8282<p><input type="text" name="url" id="url" value="<?php echo  esc_attr($comment_author_url); ?>" size="22" tabindex="3" />
    8383<label for="url"><small><?php _e('Website'); ?></small></label></p>