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/composer.lock b/composer.lock index 81dc0b5b..01b92804 100644 --- a/composer.lock +++ b/composer.lock @@ -4,20 +4,20 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "126f1b3007145bf2c64b331928a6ac85", + "content-hash": "ae3cdd9534eb892645a05dfa56da1432", "packages": [ { "name": "codeinwp/themeisle-sdk", - "version": "3.3.44", + "version": "3.3.46", "source": { "type": "git", "url": "https://github.com/Codeinwp/themeisle-sdk.git", - "reference": "fed444b52ebf1f689ec2434df177926bf8f238c4" + "reference": "af2e7360bbe3af6a1bd2c3779fc33b7765104461" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/fed444b52ebf1f689ec2434df177926bf8f238c4", - "reference": "fed444b52ebf1f689ec2434df177926bf8f238c4", + "url": "https://api.github.com/repos/Codeinwp/themeisle-sdk/zipball/af2e7360bbe3af6a1bd2c3779fc33b7765104461", + "reference": "af2e7360bbe3af6a1bd2c3779fc33b7765104461", "shasum": "" }, "require-dev": { @@ -43,9 +43,9 @@ ], "support": { "issues": "https://github.com/Codeinwp/themeisle-sdk/issues", - "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.44" + "source": "https://github.com/Codeinwp/themeisle-sdk/tree/v3.3.46" }, - "time": "2025-02-18T21:31:30+00:00" + "time": "2025-05-16T15:38:02+00:00" } ], "packages-dev": [ 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; } } diff --git a/includes/WP_Cli.php b/includes/WP_Cli.php index 04437c59..eca3014a 100755 --- a/includes/WP_Cli.php +++ b/includes/WP_Cli.php @@ -147,7 +147,7 @@ public function import( $args, $assoc_args ) { $sites = $this->get_all_sites(); $site_slug = $args[0]; if ( ! array_key_exists( $site_slug, $sites ) ) { - \WP_CLI::warning( "No site to import with the slug ${site_slug}." ); + \WP_CLI::warning( "No site to import with the slug {$site_slug}." ); return; } @@ -257,7 +257,7 @@ function ( &$item ) { */ private function import_xml_file( $path, $json, $editor ) { if ( ! file_exists( $path ) || ! is_readable( $path ) ) { - \WP_CLI::warning( "Cannot import XML file. Either the file is not readable or it does not exist (${path})" ); + \WP_CLI::warning( "Cannot import XML file. Either the file is not readable or it does not exist ({$path})" ); } $this->content_importer->import_file( $path, $json, $editor ); $this->content_importer->maybe_bust_elementor_cache();