Make WordPress Core

Changeset 10425


Ignore:
Timestamp:
01/24/2009 09:33:37 AM (15 years ago)
Author:
azaozz
Message:

Add classes to "edit_comment_link" and "edit_post_link", props yoavf, fixes #8945

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-includes/link-template.php

    r10336 r10425  
    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}
     
    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}
Note: See TracChangeset for help on using the changeset viewer.