WordPress.org

Make WordPress Core

Changeset 38590


Ignore:
Timestamp:
09/12/16 02:27:55 (7 months ago)
Author:
pento
Message:

Database: Increase the size of wp_posts.post_password to 255 characters.

Longer passwords and passphrases are much more common than when post passwords were introduced all those eons ago, so let's increase the length of the post_password field from 20 to 255 characters.

The password will continue to be stored in plaintext, as the ability for the post author to view the password is a commonly used feature.

Trivia: this was the last 3 digit Trac ticket to be closed.

Props skippy, nazgul, iandunn, adamsilverstein, pento.
Fixes #881.

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/meta-boxes.php

    r38131 r38590  
    158158<?php endif; ?> 
    159159<input type="radio" name="visibility" id="visibility-radio-password" value="password" <?php checked( $visibility, 'password' ); ?> /> <label for="visibility-radio-password" class="selectit"><?php _e('Password protected'); ?></label><br /> 
    160 <span id="password-span"><label for="post_password"><?php _e('Password:'); ?></label> <input type="text" name="post_password" id="post_password" value="<?php echo esc_attr($post->post_password); ?>"  maxlength="20" /><br /></span> 
     160<span id="password-span"><label for="post_password"><?php _e('Password:'); ?></label> <input type="text" name="post_password" id="post_password" value="<?php echo esc_attr($post->post_password); ?>"  maxlength="255" /><br /></span> 
    161161<input type="radio" name="visibility" id="visibility-radio-private" value="private" <?php checked( $visibility, 'private' ); ?> /> <label for="visibility-radio-private" class="selectit"><?php _e('Private'); ?></label><br /> 
    162162 
  • trunk/src/wp-admin/includes/schema.php

    r37674 r38590  
    166166  comment_status varchar(20) NOT NULL default 'open', 
    167167  ping_status varchar(20) NOT NULL default 'open', 
    168   post_password varchar(20) NOT NULL default '', 
     168  post_password varchar(255) NOT NULL default '', 
    169169  post_name varchar(200) NOT NULL default '', 
    170170  to_ping text NOT NULL, 
  • trunk/src/wp-includes/version.php

    r38178 r38590  
    1212 * @global int $wp_db_version 
    1313 */ 
    14 $wp_db_version = 37965; 
     14$wp_db_version = 38590; 
    1515 
    1616/** 
Note: See TracChangeset for help on using the changeset viewer.