- Timestamp:
- 11/18/2016 04:21:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php
r39278 r39287 1042 1042 } 1043 1043 1044 if ( isset( $request['author_user_agent'] ) ) {1044 if ( ! empty( $request['author_user_agent'] ) ) { 1045 1045 $prepared_comment['comment_agent'] = $request['author_user_agent']; 1046 } elseif ( $request->get_header( 'user_agent' ) ) { 1047 $prepared_comment['comment_agent'] = $request->get_header( 'user_agent' ); 1046 1048 } 1047 1049
Note: See TracChangeset
for help on using the changeset viewer.