From f54b5428c42d291cb865609c1e8a6f2c15ecf9d6 Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 12 Sep 2016 02:27:55 +0000 Subject: [PATCH] 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. git-svn-id: https://develop.svn.wordpress.org/trunk@38590 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/meta-boxes.php | 2 +- src/wp-admin/includes/schema.php | 2 +- src/wp-includes/version.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-admin/includes/meta-boxes.php b/src/wp-admin/includes/meta-boxes.php index 89e17671c9..ea91db46e8 100644 --- a/src/wp-admin/includes/meta-boxes.php +++ b/src/wp-admin/includes/meta-boxes.php @@ -157,7 +157,7 @@ echo esc_html( $visibility_trans ); ?> ID ) ); ?> />
/>
-
+
/>

diff --git a/src/wp-admin/includes/schema.php b/src/wp-admin/includes/schema.php index 83ba531794..8ddc13940a 100644 --- a/src/wp-admin/includes/schema.php +++ b/src/wp-admin/includes/schema.php @@ -165,7 +165,7 @@ CREATE TABLE $wpdb->posts ( post_status varchar(20) NOT NULL default 'publish', comment_status varchar(20) NOT NULL default 'open', ping_status varchar(20) NOT NULL default 'open', - post_password varchar(20) NOT NULL default '', + post_password varchar(255) NOT NULL default '', post_name varchar(200) NOT NULL default '', to_ping text NOT NULL, pinged text NOT NULL, diff --git a/src/wp-includes/version.php b/src/wp-includes/version.php index 714dea9e03..c61672942f 100644 --- a/src/wp-includes/version.php +++ b/src/wp-includes/version.php @@ -11,7 +11,7 @@ $wp_version = '4.7-alpha-38178-src'; * * @global int $wp_db_version */ -$wp_db_version = 37965; +$wp_db_version = 38590; /** * Holds the TinyMCE version