| @@ -237,9 +237,9 @@ | ||
| 237 | 237 | // Fetch latest version from Freemius. |
| 238 | 238 | $latest = $this->_fs->_fetch_latest_version( |
| 239 | 239 | $selected_addon->id, |
| 240 | 240 | true, |
| 241 | - WP_FS__TIME_24_HOURS_IN_SEC, | |
| 241 | + FS_Plugin_Updater::UPDATES_CHECK_CACHE_EXPIRATION, | |
| 242 | 242 | $current_addon_version |
| 243 | 243 | ); |
| 244 | 244 | |
| 245 | 245 | if ( $has_paid_plan ) { |
| @@ -837,14 +837,10 @@ | ||
| 837 | 837 | $action = ( 'install' === $status ) ? |
| 838 | 838 | 'install-plugin' : |
| 839 | 839 | 'upgrade-plugin'; |
| 840 | 840 | |
| 841 | - $query = parse_url( $network_status_url, PHP_URL_QUERY ); | |
| 842 | - if ( empty( $query ) ) { | |
| 843 | - return $network_status_url; | |
| 844 | - } | |
| 841 | + $url_params = fs_parse_url_params( $network_status_url, true ); | |
| 845 | 842 | |
| 846 | - parse_str( html_entity_decode( $query ), $url_params ); | |
| 847 | 843 | if ( empty( $url_params ) || ! isset( $url_params['plugin'] ) ) { |
| 848 | 844 | return $network_status_url; |
| 849 | 845 | } |
| 850 | 846 | |