mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-05 16:08:12 +01:00
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 Built from https://develop.svn.wordpress.org/trunk@41217 git-svn-id: http://core.svn.wordpress.org/trunk@41057 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4cdbe950e9
commit
375f495231
@ -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' => '',
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.9-alpha-41216';
|
$wp_version = '4.9-alpha-41217';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user