Skip to content

Commit aa3cff0

Browse files
committed
Swap out use of str_contains for PHP 7.4 compatibility
1 parent aa999a2 commit aa3cff0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

wp-rollback.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -475,10 +475,8 @@ public function plugin_action_links( $actions, $plugin_file, $plugin_data, $cont
475475
$plugin_data = apply_filters( 'wpr_plugin_data', $plugin_data );
476476

477477
// If plugin is missing package data do not output Rollback option.
478-
if ( ! isset( $plugin_data['package'] ) || ! str_contains(
479-
$plugin_data['package'],
480-
'downloads.wordpress.org'
481-
) ) {
478+
if ( ! isset( $plugin_data['package'] ) ||
479+
(strpos($plugin_data['package'], 'downloads.wordpress.org') === false) ) {
482480
return $actions;
483481
}
484482

0 commit comments

Comments
 (0)