PluginProbe
Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization / trunk
Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization vtrunk
4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 2.5.5 2.5.6 2.5.7 3.0.0 3.0.1 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.11.0 3.11.1 3.11.2 3.11.3 3.12.0 All 135 releases
← All changes | vendor/codeinwp/themeisle-sdk/src/Modules/Recommendation.php +0 -43 3.1.2 → trunk View file →
@@ -238,51 +238,8 @@
238 238 return $list;
239 239 }
240 240
241 241 /**
242 - * Call plugin api
243 - *
244 - * @param string $slug plugin slug.
245 - *
246 - * @return array|mixed|object
247 - */
248 - private function call_plugin_api( $slug ) {
249 - include_once ABSPATH . 'wp-admin/includes/plugin-install.php';
250 -
251 - $call_api = get_transient( 'ti_plugin_info_' . $slug );
252 -
253 - if ( false === $call_api ) {
254 - $call_api = plugins_api(
255 - 'plugin_information',
256 - array(
257 - 'slug' => $slug,
258 - 'fields' => array(
259 - 'downloaded' => false,
260 - 'rating' => false,
261 - 'description' => false,
262 - 'short_description' => true,
263 - 'donate_link' => false,
264 - 'tags' => false,
265 - 'sections' => true,
266 - 'homepage' => true,
267 - 'added' => false,
268 - 'last_updated' => false,
269 - 'compatibility' => false,
270 - 'tested' => false,
271 - 'requires' => false,
272 - 'downloadlink' => false,
273 - 'icons' => true,
274 - 'banners' => true,
275 - ),
276 - )
277 - );
278 - set_transient( 'ti_plugin_info_' . $slug, $call_api, 30 * MINUTE_IN_SECONDS );
279 - }
280 -
281 - return $call_api;
282 - }
283 -
284 - /**
285 242 * Load css and scripts for the plugin recommend page.
286 243 */
287 244 public function enqueue() {
288 245 $screen = get_current_screen();