Changeset 30137
- Timestamp:
- 11/01/2014 01:28:18 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-xmlrpc-server.php
r29731 r30137 973 973 protected function _prepare_comment( $comment ) { 974 974 // Format page date. 975 $comment_date = $this->_convert_date( $comment->comment_date );976 975 $comment_date_gmt = $this->_convert_date_gmt( $comment->comment_date_gmt, $comment->comment_date ); 977 976 978 if ( '0' == $comment->comment_approved ) 977 if ( '0' == $comment->comment_approved ) { 979 978 $comment_status = 'hold'; 980 else if ( 'spam' == $comment->comment_approved )979 } elseif ( 'spam' == $comment->comment_approved ) { 981 980 $comment_status = 'spam'; 982 else if ( '1' == $comment->comment_approved )981 } elseif ( '1' == $comment->comment_approved ) { 983 982 $comment_status = 'approve'; 984 else983 } else { 985 984 $comment_status = $comment->comment_approved; 986 985 } 987 986 $_comment = array( 988 987 'date_created_gmt' => $comment_date_gmt,
Note: See TracChangeset
for help on using the changeset viewer.