Skip to content

Commit

Permalink
Update issue (sovware#1767)
Browse files Browse the repository at this point in the history
  • Loading branch information
HeyMehedi authored Jun 13, 2024
1 parent 55444b2 commit 81beda1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions includes/classes/class-extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,9 @@ public function update_plugins( array $args = array() ) {
if ( ! empty( $plugin_key ) ) {
$plugin_key = self::filter_plugin_key_from_base_name( $plugin_key );
$plugin_item = self::extract_plugin_from_list( $plugin_key, $plugins_available_in_subscriptions );
$url = self::get_file_download_link( $plugin_item, 'plugin' );

$download_status = $this->download_plugin( array( 'url' => $url ) );
$url = $plugin_item['download_link'] ?? '';
$download_status = $this->download_plugin( array( 'url' => $plugin_item['download_link'] ) );

if ( ! $download_status['success'] ) {
$status['success'] = false;
Expand Down Expand Up @@ -648,9 +648,7 @@ public function update_the_themes( array $args = array() ) {
}

$theme_item = $themes_available_in_subscriptions[ $theme_stylesheet ];
$url = self::get_file_download_link( $theme_item, 'theme' );
$url = ( empty( $url ) && ! empty( $outdated_themes[ $theme_stylesheet ]['package'] ) ) ? $outdated_themes[ $theme_stylesheet ]['package'] : $url;

$url = $theme_item['download_link'] ?? '';
$download_status = $this->download_theme( array( 'url' => $url ) );

if ( ! $download_status['success'] ) {
Expand Down

0 comments on commit 81beda1

Please sign in to comment.