Skip to content

Commit 2a6f985

Browse files
authored
Merge pull request #432 from mrsdizzie/fix-431
2 parents 189e264 + b14d625 commit 2a6f985

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ protected function get_wporg_data( $plugin_name ) {
863863

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

0 commit comments

Comments
 (0)