includes/class-fs-plugin-updater.php
function get_update_details( FS_Plugin_Tag $new_version ) {
            $update              = new stdClass();
            $update->slug        = $this->_fs->get_slug();
            $update->new_version = $new_version->version;
            $update->url         = WP_FS__ADDRESS;
            $update->package     = $new_version->url;
            $update->tested      = $new_version->tested_up_to_version;
            $update->requires    = $new_version->requires_platform_version;

            $icon = $this->_fs->get_local_icon_url();

            if ( ! empty( $icon ) ) {
                $update->icons = array(
//                    '1x'      => $icon,
//                    '2x'      => $icon,
                    'default' => $icon,
                );
            }

            if ( $this->_fs->is_premium() ) {
                $latest_tag = $this->_fs->_fetch_latest_version( $this->_fs->get_id(), false );

                if (
                    isset( $latest_tag->readme ) &&
                    isset( $latest_tag->readme->upgrade_notice ) &&
                    ! empty( $latest_tag->readme->upgrade_notice )
                ) {
                    $update->upgrade_notice = $latest_tag->readme->upgrade_notice;
                }
            }

            $update->{$this->_fs->get_module_type()} = $this->_fs->get_plugin_basename();

            return $update;
        }
function get_update_details( FS_Plugin_Tag $new_version ) {
            $update              = new stdClass();
            $update->slug        = $this->_fs->get_slug();
            $update->new_version = $new_version->version;
            $update->url         = WP_FS__ADDRESS;
            $update->package     = $new_version->url;
            $update->tested      = $new_version->tested_up_to_version;
            $update->requires    = $new_version->requires_platform_version;

            $icon = $this->_fs->get_local_icon_url();

            if ( ! empty( $icon ) ) {
                $update->icons = array(
//                    '1x'      => $icon,
//                    '2x'      => $icon,
                    'default' => $icon,
                );
            }

            if ( $this->_fs->is_premium() ) {
                $latest_tag = $this->_fs->_fetch_latest_version( $this->_fs->get_id(), false );

                if (
                    isset( $latest_tag->readme ) &&
                    isset( $latest_tag->readme->upgrade_notice ) &&
                    ! empty( $latest_tag->readme->upgrade_notice )
                ) {
                    $update->upgrade_notice = $latest_tag->readme->upgrade_notice;
                }
            }

            $update->{$this->_fs->get_module_type()} = $this->_fs->get_plugin_basename();

            return $update;
        }
function get_update_details ( FS_Plugin_Tag $ new_version ) { $ update = new stdClass ( ) ; $ update -> slug = $ this -> _fs -> get_slug ( ) ; $ update -> new_version = $ new_version -> version ; $ update -> url = WP_FS__ADDRESS ; $ update -> package = $ new_version -> url ; $ update -> tested = $ new_version -> tested_up_to_version ; $ update -> requires = $ new_version -> requires_platform_version ; $ icon = $ this -> _fs -> get_local_icon_url ( ) ; if ( ! empty ( $ icon ) ) { $ update -> icons = array ( //                    '1x'      => $icon,
 //                    '2x'      => $icon,
 'default' => $ icon , ) ; } if ( $ this -> _fs -> is_premium ( ) ) { $ latest_tag = $ this -> _fs -> _fetch_latest_version ( $ this -> _fs -> get_id ( ) , false ) ; if ( isset ( $ latest_tag -> readme ) && isset ( $ latest_tag -> readme -> upgrade_notice ) && ! empty ( $ latest_tag -> readme -> upgrade_notice ) ) { $ update -> upgrade_notice = $ latest_tag -> readme -> upgrade_notice ; } } $ update -> { $ this -> _fs -> get_module_type ( ) } = $ this -> _fs -> get_plugin_basename ( ) ; return $ update ; }
Get module's required data for the updates mechanism.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param \FS_Plugin_Tag $new_version

@return object
Get module s required data for the updates mechanism .