MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/www/india/wp-content/plugins/woocommerce/includes/admin/class-wc-admin-addons.php
<?php
/**
 * Addons Page
 *
 * @author      WooThemes
 * @category    Admin
 * @package     WooCommerce/Admin
 * @version     2.1.0
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

/**
 * WC_Admin_Addons Class
 */
class WC_Admin_Addons {

	/**
	 * Handles output of the reports page in admin.
	 */
	public static function output() {

		if ( false === ( $addons = get_transient( 'woocommerce_addons_data' ) ) ) {

			$addons_json = wp_safe_remote_get( 'http://d3t0oesq8995hv.cloudfront.net/woocommerce-addons.json', array( 'user-agent' => 'WooCommerce Addons Page' ) );

			if ( ! is_wp_error( $addons_json ) ) {

				$addons = json_decode( wp_remote_retrieve_body( $addons_json ) );

				if ( $addons ) {
					set_transient( 'woocommerce_addons_data', $addons, WEEK_IN_SECONDS );
				}
			}
		}

		include_once( 'views/html-admin-page-addons.php' );
	}
}