Changeset 32654 for trunk/src/wp-admin/includes/comment.php
- Timestamp:
- 05/29/2015 08:16:22 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/comment.php
r32642 r32654 21 21 global $wpdb; 22 22 23 $comment_author = stripslashes($comment_author);24 $comment_date = stripslashes($comment_date);25 26 23 return $wpdb->get_var( $wpdb->prepare("SELECT comment_post_ID FROM $wpdb->comments 27 WHERE comment_author = %s AND comment_date = %s", $comment_author, $comment_date) ); 24 WHERE comment_author = %s AND comment_date = %s", 25 stripslashes( $comment_author ), 26 stripslashes( $comment_date ) 27 ) ); 28 28 } 29 29 … … 34 34 */ 35 35 function edit_comment() { 36 37 36 if ( ! current_user_can( 'edit_comment', (int) $_POST['comment_ID'] ) ) 38 37 wp_die ( __( 'You are not allowed to edit comments on this post.' ) ); … … 81 80 * 82 81 * @param int $id ID of comment to retrieve. 83 * @return bool|objectComment if found. False on failure.82 * @return object|false Comment if found. False on failure. 84 83 */ 85 84 function get_comment_to_edit( $id ) { … … 157 156 * 158 157 * @since 2.5.0 159 * 158 * 160 159 * @global object $comment 161 160 *
Note: See TracChangeset
for help on using the changeset viewer.