diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index a802152d..9a91a35d 100644 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -71,7 +71,7 @@ jobs: run: | echo "::set-output name=dir::$(composer config cache-files-dir)" - name: Setup Composer cache - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ${{ steps.composer-cache.outputs.dir }} key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} diff --git a/includes/Sites_Listing.php b/includes/Sites_Listing.php index ebfad6e3..801b8842 100755 --- a/includes/Sites_Listing.php +++ b/includes/Sites_Listing.php @@ -230,6 +230,6 @@ private function get_upsell_status() { 8 => 2, 9 => 3, ); - return ! isset( $category_mapping[ $category ] ) || $category_mapping[ $category ] < 2; + return apply_filters( 'product_neve_license_status', false ) !== 'valid' || ! isset( $category_mapping[ $category ] ) || $category_mapping[ $category ] < 2; } }