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

Update nprml.php #42

Merged
merged 1 commit into from
Apr 16, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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