WordPress.org

Make WordPress Core

Ticket #8945: link-template-patch.patch

File link-template-patch.patch, 1016 bytes (added by yoavf, 5 years ago)
  • link-template.php

     
    725725                        return; 
    726726        } 
    727727 
    728         $link = '<a href="' . get_edit_post_link( $post->ID ) . '" title="' . attribute_escape( __( 'Edit post' ) ) . '">' . $link . '</a>'; 
     728        $link = '<a class="post-edit-link" href="' . get_edit_post_link( $post->ID ) . '" title="' . attribute_escape( __( 'Edit post' ) ) . '">' . $link . '</a>'; 
    729729        echo $before . apply_filters( 'edit_post_link', $link, $post->ID ) . $after; 
    730730} 
    731731 
     
    775775                        return; 
    776776        } 
    777777 
    778         $link = '<a href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . __( 'Edit comment' ) . '">' . $link . '</a>'; 
     778        $link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . __( 'Edit comment' ) . '">' . $link . '</a>'; 
    779779        echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID ) . $after; 
    780780} 
    781781