We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 189e264 + b14d625 commit 2a6f985Copy full SHA for 2a6f985
src/Plugin_Command.php
@@ -863,7 +863,7 @@ protected function get_wporg_data( $plugin_name ) {
863
864
// Check the last update date.
865
$r_body = wp_remote_retrieve_body( $request );
866
- if ( str_contains( $r_body, 'pubDate' ) ) {
+ if ( strpos( $r_body, 'pubDate' ) !== false ) {
867
// Very raw check, not validating the format or anything else.
868
$xml = simplexml_load_string( $r_body );
869
$xml_pub_date = $xml->xpath( '//pubDate' );
0 commit comments