Changeset 36997
- Timestamp:
- 03/31/08 04:11:56 (4 months ago)
- Location:
- delink-comment-author/trunk
- Files:
-
- 2 modified
-
README.txt (modified) (1 diff)
-
delink-comment-author.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
delink-comment-author/trunk/README.txt
r19883 r36997 3 3 Contributors: alexkingorg 4 4 Requires at least: 2.2 5 Tested up to: 2. 36 Stable tag: 1. 15 Tested up to: 2.5 6 Stable tag: 1.2 7 7 8 8 Delink Comment Author gives you the ability to remove the link a commenter left as their URL without removing the entire comment. -
delink-comment-author/trunk/delink-comment-author.php
r19883 r36997 21 21 Author: Alex King 22 22 Author URI: http://alexking.org 23 Version: 1. 123 Version: 1.2 24 24 */ 25 25 … … 39 39 40 40 function akdca_admin_footer() { 41 print(" 41 global $wp_version; 42 if (isset($wp_version) && version_compare($wp_version, '2.5', '>=')) { 43 print(" 44 <script type=\"text/javascript\"> 45 jQuery('#the-comment-list tr[@id^=comment]').each(function() { 46 var id = jQuery(this).attr('id').replace('comment-', ''); 47 jQuery(this).children('td.action-links').append(' | <a href=\"".get_bloginfo('wpurl')."/wp-admin/index.php?ak_action=delink_comment_author&comment_id=' + id + '\">Delink Comment Author</a>'); 48 }); 49 </script> 50 "); 51 } 52 else { 53 print(" 42 54 <script type=\"text/javascript\"> 43 55 jQuery('#the-comment-list li[@id^=comment]').each(function() { … … 46 58 }); 47 59 </script> 48 "); 60 "); 61 } 49 62 } 50 63
