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
This commit is contained in:
parent
8d059b9fe2
commit
822782a917
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue