-
Notifications
You must be signed in to change notification settings - Fork 30
Conversation
} | ||
$transcript_body .= "<p><strong>Transcript :</strong><p>"; | ||
foreach ( $body_xml->paragraph as $paragraph ) { | ||
$transcript_body .= ( strip_tags( $paragraph ) ) . '<p>'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This adds an opening <p>
- are the closing </p>
s added anywhere?
Looks good to me, with the exception of that possibly-not-closed |
In PHP 5.3, this error still shows:
if (empty($this->request->params) && !stristr($this->request->url, 'sort=')){
$this->stories = array_reverse($this->stories);
} |
if ( $transcript->type == 'api' ) { | ||
$response = wp_remote_get( $transcript->value ); | ||
if ( !is_wp_error( $response ) ) { | ||
$transcript_body .= "<p><strong>Transcript :</strong><p>"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@benlk As you can see the old code did not close <p>
s either!
I was trying to limit the scope of my changes to just solve the solving the "Trying to get property of non-object" errors because I know it is easier to accept fixes when they are small.
That said, I'll add another commit that should add </p>
closing tag.
No more errors here! |
Anything else needed to merge this? |
Merge pull request npr#32 from newclarity/master
When using PHP 5.6 or PHP 7.0 and debugging options as follows set on the NPR Story API plugin currently throws errors.
You can see the errors shown in this PDF file; look for the first two errors.