Make WordPress Core


Ignore:
Timestamp:
09/12/2016 02:27:55 AM (8 years 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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,
Note: See TracChangeset for help on using the changeset viewer.