Changeset 15564 for trunk/wp-admin/includes/comment.php
- Timestamp:
- 09/05/2010 02:45:39 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/comment.php
r15512 r15564 10 10 * {@internal Missing Short Description}} 11 11 * 12 * @since unknown12 * @since 2.0.0 13 13 * @uses $wpdb 14 14 * 15 * @param string $comment_author 16 * @param string $comment_date 15 * @param string $comment_author Author of the comment 16 * @param string $comment_date Date of the comment 17 17 * @return mixed Comment ID on success. 18 18 */ … … 28 28 29 29 /** 30 * {@internal Missing Short Description}}30 * Update a comment with values provided in $_POST. 31 31 * 32 * @since unknown32 * @since 2.0.0 33 33 */ 34 34 function edit_comment() { 35 36 35 $comment_post_ID = (int) $_POST['comment_post_ID']; 37 36 38 37 if (!current_user_can( 'edit_post', $comment_post_ID )) 39 wp_die( __('You are not allowed to edit comments on this post, so you cannot edit this comment.' ) );38 wp_die( __('You are not allowed to edit comments on this post, so you cannot edit this comment.' ) ); 40 39 41 40 $_POST['comment_author'] = $_POST['newcomment_author']; … … 53 52 } 54 53 55 if ( !empty ( $_POST['edit_date'] ) ) {54 if ( !empty ( $_POST['edit_date'] ) ) { 56 55 $aa = $_POST['aa']; 57 56 $mm = $_POST['mm']; … … 67 66 } 68 67 69 wp_update_comment( $_POST );68 wp_update_comment( $_POST ); 70 69 } 71 70 … … 73 72 * {@internal Missing Short Description}} 74 73 * 75 * @since unknown74 * @since 2.0.0 76 75 * 77 * @param unknown_type $id78 * @return unknown76 * @param int $id ID of comment to retrieve 77 * @return bool|object Comment if found. False on failure. 79 78 */ 80 79 function get_comment_to_edit( $id ) { … … 99 98 * Get the number of pending comments on a post or posts 100 99 * 101 * @since unknown100 * @since 2.3.0 102 101 * @uses $wpdb 103 102 *
Note: See TracChangeset
for help on using the changeset viewer.