diff --git a/gdpr-content-blocker/gdpr-content-blocker.php b/gdpr-content-blocker/gdpr-content-blocker.php index 77543df..6c7a30c 100644 --- a/gdpr-content-blocker/gdpr-content-blocker.php +++ b/gdpr-content-blocker/gdpr-content-blocker.php @@ -1,9 +1,9 @@ $url ]; + } + return [ '1x' => $url, '2x' => $url, 'default' => $url ]; + } + } + return []; + } + /** Inject the update into the plugins update transient. */ public static function inject( mixed $transient ): mixed { if ( ! is_object( $transient ) ) { @@ -97,7 +116,7 @@ class CB_Updater { 'tested' => (string) ( $info['tested'] ?? '' ), 'requires' => (string) ( $info['requires'] ?? '' ), 'requires_php'=> (string) ( $info['requires_php'] ?? '' ), - 'icons' => [], + 'icons' => self::icons(), 'banners' => [], ]; @@ -131,6 +150,7 @@ class CB_Updater { 'tested' => (string) ( $info['tested'] ?? '' ), 'requires_php' => (string) ( $info['requires_php'] ?? '' ), 'download_link' => esc_url_raw( $info['package'] ?? '' ), + 'icons' => self::icons(), 'sections' => [ 'changelog' => wp_kses_post( $info['changelog'] ?? '' ), ],