WC_Install::in_plugin_update_message PHP Method

in_plugin_update_message() public static method

Show plugin changes. Code adapted from W3 Total Cache.
public static in_plugin_update_message ( $args )
    public static function in_plugin_update_message($args)
    {
        $transient_name = 'wc_upgrade_notice_' . $args['Version'];
        if (false === ($upgrade_notice = get_transient($transient_name))) {
            $response = wp_safe_remote_get('https://plugins.svn.wordpress.org/woocommerce/trunk/readme.txt');
            if (!is_wp_error($response) && !empty($response['body'])) {
                $upgrade_notice = self::parse_update_notice($response['body'], $args['new_version']);
                set_transient($transient_name, $upgrade_notice, DAY_IN_SECONDS);
            }
        }
        echo wp_kses_post($upgrade_notice);
    }