Skip to content

Commit 21be4bc

Browse files
committed
Docs: Add missing $text filter argument.
Fix omitted filter argument variable name for `the_password_form_incorrect_password`. Follow up to [59736]. Props mukesh27, joedolson. See #37332. git-svn-id: https://develop.svn.wordpress.org/trunk@59737 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 23a215a commit 21be4bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/post-template.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1789,8 +1789,8 @@ function get_the_password_form( $post = 0 ) {
17891789
*
17901790
* @since 6.8.0
17911791
*
1792-
* @param string The message shown to users when entering an invalid password.
1793-
* @param WP_Post $post Post object.
1792+
* @param string $text The message shown to users when entering an invalid password.
1793+
* @param WP_Post $post Post object.
17941794
*/
17951795
$invalid_password = apply_filters( 'the_password_form_incorrect_password', __( 'Invalid password.' ), $post );
17961796
$invalid_password_html = '<div class="post-password-form-invalid-password" role="alert"><p id="error-' . $field_id . '">' . $invalid_password . '</p></div>';

0 commit comments

Comments
 (0)