Skip to content
This repository has been archived by the owner on Mar 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #42 from tjuddill/patch-1
Browse files Browse the repository at this point in the history
Update nprml.php
  • Loading branch information
benlk authored Apr 16, 2018
2 parents f4032ce + 6460d67 commit 55f5b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/nprml.php
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ function nprstory_post_to_nprml_story( $post ) {

//is the image in the content? If so, tell the APi with a flag that CorePublisher knows
//WP may add something like "-150X150" to the end of the filename, before the extension. Isn't that nice?
$image_name_parts = split( ".", $image_guid );
$image_name_parts = explode( ".", $image_guid );
$image_regex = "/" . $image_name_parts[0] . "\-[a-zA-Z0-9]*" . $image_name_parts[1] . "/";
$in_body = "";
if ( preg_match( $image_regex, $content ) ) {
Expand Down

0 comments on commit 55f5b4a

Please sign in to comment.