Skip to content

Commit

Permalink
Docs: Add missing $text filter argument.
Browse files Browse the repository at this point in the history
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
  • Loading branch information
joedolson committed Jan 30, 2025
1 parent 23a215a commit 21be4bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wp-includes/post-template.php
Original file line number Diff line number Diff line change
Expand Up @@ -1789,8 +1789,8 @@ function get_the_password_form( $post = 0 ) {
*
* @since 6.8.0
*
* @param string The message shown to users when entering an invalid password.
* @param WP_Post $post Post object.
* @param string $text The message shown to users when entering an invalid password.
* @param WP_Post $post Post object.
*/
$invalid_password = apply_filters( 'the_password_form_incorrect_password', __( 'Invalid password.' ), $post );
$invalid_password_html = '<div class="post-password-form-invalid-password" role="alert"><p id="error-' . $field_id . '">' . $invalid_password . '</p></div>';
Expand Down

0 comments on commit 21be4bc

Please sign in to comment.