Make WordPress Core

Changeset 41217


Ignore:
Timestamp:
08/03/2017 02:58:26 PM (7 years ago)
Author:
johnbillion
Message:

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

File:
1 edited

Legend:

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

    r41127 r41217  
    22212221                                      /* translators: %s: login URL */
    22222222                                      __( 'You must be <a href="%s">logged in</a> to post a comment.' ),
    2223                                       wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) )
     2223                                      wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
    22242224                                  ) . '</p>',
    22252225        /** This filter is documented in wp-includes/link-template.php */
     
    22312231                                      esc_attr( sprintf( __( 'Logged in as %s. Edit your profile.' ), $user_identity ) ),
    22322232                                      $user_identity,
    2233                                       wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) )
     2233                                      wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
    22342234                                  ) . '</p>',
    22352235        'comment_notes_before' => '<p class="comment-notes"><span id="email-notes">' . __( 'Your email address will not be published.' ) . '</span>'. ( $req ? $required_text : '' ) . '</p>',
Note: See TracChangeset for help on using the changeset viewer.