Skip to content

Commit a390a17

Browse files
committed
return args
1 parent 5c90d9b commit a390a17

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/welcome/useful-plugins.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function get_useful_plugins_info( $args, $callback, $plugin_config = null
8181
);
8282

8383
if ( ! $current_user_cap ) {
84-
return;
84+
return $args;
8585
}
8686

8787
if ( ! function_exists( 'get_plugins' ) || ! function_exists( 'is_plugin_active' ) ) {
@@ -138,7 +138,7 @@ public function get_useful_plugins_info( $args, $callback, $plugin_config = null
138138
public function add_cimo_args_to_localize_editor( $args, $data_to_localize, $current_user_cap, $has_premium ) {
139139
$slug = 'cimo-image-optimizer';
140140
if ( ! isset( $data_to_localize[ $slug ] ) ) {
141-
return;
141+
return $args;
142142
}
143143
$full_slug = $data_to_localize[ $slug ][ 'fullSlug' ];
144144

0 commit comments

Comments
 (0)