WordPress.org

Make WordPress Core

Changeset 10426


Ignore:
Timestamp:
01/24/2009 09:35:12 AM (9 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

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

    r10377 r10426  
    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.