inc/class-Iac_Mail_ID.php
protected static function sanitize_item( $item ) {

		if ( is_array( $item ) )
			$item = ( object )$item;

		if ( empty( $item->ID ) && isset( $item->comment_ID ) )
			$item->ID = $item->comment_ID;

		if ( isset( $item->post_date_gmt ) )
			$item->date_gmt = $item->post_date_gmt;

		if ( isset( $item->comment_date_gmt ) )
			$item->date_gmt = $item->comment_date_gmt;

		return $item;
	}
protected static function sanitize_item( $item ) {

		if ( is_array( $item ) )
			$item = ( object )$item;

		if ( empty( $item->ID ) && isset( $item->comment_ID ) )
			$item->ID = $item->comment_ID;

		if ( isset( $item->post_date_gmt ) )
			$item->date_gmt = $item->post_date_gmt;

		if ( isset( $item->comment_date_gmt ) )
			$item->date_gmt = $item->comment_date_gmt;

		return $item;
	}
protected static function sanitize_item ( $ item ) { if ( is_array ( $ item ) ) $ item = ( object ) $ item ; if ( empty ( $ item -> ID ) && isset ( $ item -> comment_ID ) ) $ item -> ID = $ item -> comment_ID ; if ( isset ( $ item -> post_date_gmt ) ) $ item -> date_gmt = $ item -> post_date_gmt ; if ( isset ( $ item -> comment_date_gmt ) ) $ item -> date_gmt = $ item -> comment_date_gmt ; return $ item ; }
normalize comment/post data objects

@param array|object $item
@return stdClass
normalize comment / post data objects