Skip to content

Commit

Permalink
Merge pull request #432 from mrsdizzie/fix-431
Browse files Browse the repository at this point in the history
  • Loading branch information
swissspidy authored Aug 15, 2024
2 parents 189e264 + b14d625 commit 2a6f985
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Plugin_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ protected function get_wporg_data( $plugin_name ) {

// Check the last update date.
$r_body = wp_remote_retrieve_body( $request );
if ( str_contains( $r_body, 'pubDate' ) ) {
if ( strpos( $r_body, 'pubDate' ) !== false ) {
// Very raw check, not validating the format or anything else.
$xml = simplexml_load_string( $r_body );
$xml_pub_date = $xml->xpath( '//pubDate' );
Expand Down

0 comments on commit 2a6f985

Please sign in to comment.