Make WordPress Core


Ignore:
Timestamp:
08/03/2024 06:30:51 PM (2 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post-template.php

    r58277 r58846  
    17781778     * Filters the HTML output for the protected post password form.
    17791779     *
    1780      * If modifying the password field, please note that the core database schema
    1781      * limits the password field to 20 characters regardless of the value of the
    1782      * size attribute in the form input.
     1780     * If modifying the password field, please note that the WordPress database schema
     1781     * limits the password field to 255 characters regardless of the value of the
     1782     * `minlength` or `maxlength` attributes or other validation that may be added to
     1783     * the input.
    17831784     *
    17841785     * @since 2.7.0
Note: See TracChangeset for help on using the changeset viewer.