Changeset 53747
- Timestamp:
- 07/21/2022 10:57:03 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/ajax-actions.php
r53729 r53747 1298 1298 1299 1299 if ( $user->exists() ) { 1300 $user_id = $user->ID;1301 1300 $comment_author = wp_slash( $user->display_name ); 1302 1301 $comment_author_email = wp_slash( $user->user_email ); 1303 1302 $comment_author_url = wp_slash( $user->user_url ); 1304 $comment_content = trim( $_POST['content'] ); 1305 $comment_type = isset( $_POST['comment_type'] ) ? trim( $_POST['comment_type'] ) : 'comment'; 1303 $user_id = $user->ID; 1306 1304 1307 1305 if ( current_user_can( 'unfiltered_html' ) ) { … … 1321 1319 } 1322 1320 1321 $comment_content = trim( $_POST['content'] ); 1322 1323 1323 if ( '' === $comment_content ) { 1324 1324 wp_die( __( 'Please type your comment text.' ) ); 1325 1325 } 1326 1327 $comment_type = isset( $_POST['comment_type'] ) ? trim( $_POST['comment_type'] ) : 'comment'; 1326 1328 1327 1329 $comment_parent = 0;
Note: See TracChangeset
for help on using the changeset viewer.