Ryan McCue
Ryan McCue
@anteksiler Can you clarify what you mean by "it's not working"? That's not enough to go on unfortunately :)
@anteksiler Is this a public WXR file? Happy to test and debug :)
Oh, actually, you may need a logger instance: try adding `$importer->set_logger( new WP_Importer_Logger_CLI() )` just before your `->import` line
Splitting out into #17. :)
@roborourke Still want to update this one per @JJJ's comments?
Very strange; we call `wp_slash()`, however this is immediately undone instead `wp_insert_comment()`... Can you share your import file (or just a single comment from it)?
(Also, is this for new comments, or comments being updated?)
Ah WordPress, you continue to disappoint me. This may be additionally stripping a layer of slashes in that case, if `wp_filter_comment` expects slashed data.
From memory, internally `wp_filter_comment` calls `wp_kses_filter`, which runs `addslashes( wp_kses( stripslashes( $data ) ) )`, so my guess is that we need to add slashes _before_ `wp_filter_comment`, and then not...
Doesn't appear that gifsicle has native Node support; there's a [npm module](https://www.npmjs.com/package/gifsicle) but that just finds the executable. Are there any Node libraries that _do_ support GIFs?