From 822782a917bf08d2ce89901aba5942de0137127d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 3 Aug 2024 18:32:14 +0000 Subject: [PATCH] Docs: Correct documentation for `the_password_form` hook. This replaces an outdated note about the 20 characters limit on the password field in the WordPress database schema. The `post_password` column was increased to 255 characters in WordPress 4.7. Follow-up to [27676], [38590]. Props debarghyabanerjee, peterwilsoncc, dd32, mukesh27. Fixes #61703. Built from https://develop.svn.wordpress.org/trunk@58846 git-svn-id: http://core.svn.wordpress.org/trunk@58242 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post-template.php | 7 ++++--- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/wp-includes/post-template.php b/wp-includes/post-template.php index 7b12bf6c4c..4f3bfbef0c 100644 --- a/wp-includes/post-template.php +++ b/wp-includes/post-template.php @@ -1777,9 +1777,10 @@ function get_the_password_form( $post = 0 ) { /** * Filters the HTML output for the protected post password form. * - * If modifying the password field, please note that the core database schema - * limits the password field to 20 characters regardless of the value of the - * size attribute in the form input. + * If modifying the password field, please note that the WordPress database schema + * limits the password field to 255 characters regardless of the value of the + * `minlength` or `maxlength` attributes or other validation that may be added to + * the input. * * @since 2.7.0 * @since 5.8.0 Added the `$post` parameter. diff --git a/wp-includes/version.php b/wp-includes/version.php index 726e4b9ada..b484bc6d72 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58845'; +$wp_version = '6.7-alpha-58846'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.