diff --git a/src/Plugin_Command.php b/src/Plugin_Command.php index 935d4b44..ca8c346a 100644 --- a/src/Plugin_Command.php +++ b/src/Plugin_Command.php @@ -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' );