General: Add missing parameters to instances of the the_permalink
filter.
This ensures every instance of this filter receives the same parameters. Props keesiemeijer for identifying the issue See #38462 git-svn-id: https://develop.svn.wordpress.org/trunk@41217 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
84ef824166
commit
136aa0d6d0
@ -2220,7 +2220,7 @@ function comment_form( $args = array(), $post_id = null ) {
|
|||||||
'must_log_in' => '<p class="must-log-in">' . sprintf(
|
'must_log_in' => '<p class="must-log-in">' . sprintf(
|
||||||
/* translators: %s: login URL */
|
/* translators: %s: login URL */
|
||||||
__( 'You must be <a href="%s">logged in</a> to post a comment.' ),
|
__( 'You must be <a href="%s">logged in</a> to post a comment.' ),
|
||||||
wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) )
|
wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
|
||||||
) . '</p>',
|
) . '</p>',
|
||||||
/** This filter is documented in wp-includes/link-template.php */
|
/** This filter is documented in wp-includes/link-template.php */
|
||||||
'logged_in_as' => '<p class="logged-in-as">' . sprintf(
|
'logged_in_as' => '<p class="logged-in-as">' . sprintf(
|
||||||
@ -2230,7 +2230,7 @@ function comment_form( $args = array(), $post_id = null ) {
|
|||||||
/* translators: %s: user name */
|
/* translators: %s: user name */
|
||||||
esc_attr( sprintf( __( 'Logged in as %s. Edit your profile.' ), $user_identity ) ),
|
esc_attr( sprintf( __( 'Logged in as %s. Edit your profile.' ), $user_identity ) ),
|
||||||
$user_identity,
|
$user_identity,
|
||||||
wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) )
|
wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
|
||||||
) . '</p>',
|
) . '</p>',
|
||||||
'comment_notes_before' => '<p class="comment-notes"><span id="email-notes">' . __( 'Your email address will not be published.' ) . '</span>'. ( $req ? $required_text : '' ) . '</p>',
|
'comment_notes_before' => '<p class="comment-notes"><span id="email-notes">' . __( 'Your email address will not be published.' ) . '</span>'. ( $req ? $required_text : '' ) . '</p>',
|
||||||
'comment_notes_after' => '',
|
'comment_notes_after' => '',
|
||||||
|
Loading…
Reference in New Issue
Block a user