Skip to content

Commit

Permalink
Merge branch 'develop' into trunk
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed Feb 10, 2024
2 parents 0d365a2 + a9047dd commit 73c2904
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- name: Get tag
id: tag
run: echo "::set-output name=tag::${GITHUB_REF#refs/tags/}"
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT

- name: Build project
run: git archive -o /tmp/wp-plugin-dependencies-${{ steps.tag.outputs.tag }}.zip --prefix=wp-plugin-dependencies/ ${{ steps.tag.outputs.tag }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wp-phpunit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
php-version: ${{ matrix.php-versions }}
coverage: none
extensions: mysql, mysqli
tools: composer, wp-cli, phpunit-polyfills:1.0
tools: composer, wp-cli, phpunit-polyfills:1.1
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
[unreleased]
#### 3.0.2 / 2024-02-09
* update kill switch

#### 3.0.1 / 2023-11-21
* fix for multisite, too many `%s`
Expand Down
1 change: 1 addition & 0 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<testsuite name="wp-plugin-dependencies">
<directory suffix=".php">./tests/</directory>
<exclude>./tests/test-sample.php</exclude>
<exclude>./tests/invalid</exclude>
</testsuite>
</testsuites>

Expand Down
6 changes: 4 additions & 2 deletions plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* Plugin URI: https://wordpress.org/plugins/wp-plugin-dependencies
* Description: Parses 'Requires Plugins' header and information about dependencies.
* Author: Andy Fragen, Colin Stewart, Paul Biron
* Version: 3.0.1
* Version: 3.0.2
* License: MIT
* Network: true
* Requires at least: 6.4
Expand All @@ -33,7 +33,9 @@
}

// TODO: update with correct version.
if ( version_compare( get_bloginfo( 'version' ), '6.5-beta1', '>=' ) ) {
if ( version_compare( get_bloginfo( 'version' ), '6.5-beta1', '>=' )
|| \class_exists( 'WP_Plugin_Dependencies' )
) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';
deactivate_plugins( __FILE__ );
}
Expand Down
File renamed without changes.
16 changes: 7 additions & 9 deletions tests/phpunit/tests/admin/plugin-dependencies/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,13 @@ abstract class WP_PluginDependencies_UnitTestCase extends WP_UnitTestCase {
* @var array
*/
protected static $static_properties = array(
'plugins' => array(),
'plugin_dirnames' => array(),
'plugin_dirnames_cache' => array(),
'dependencies' => array(),
'dependency_slugs' => array(),
'dependent_slugs' => array(),
'dependency_api_data' => array(),
'uninstalled_dependency_api_data' => array(),
'plugin_card_data' => array(),
'plugins' => array(),
'plugin_dirnames' => array(),
'plugin_dirnames_cache' => array(),
'dependencies' => array(),
'dependency_slugs' => array(),
'dependent_slugs' => array(),
'dependency_api_data' => array(),
);

/**
Expand Down

0 comments on commit 73c2904

Please sign in to comment.