Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/lint_phpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,11 @@ jobs:
coverage: none # XDebug can be enabled here 'coverage: xdebug'
tools: composer:v2

- name: Install Strauss
run: sh -c 'test -f ./bin/strauss.phar || curl -o bin/strauss.phar -L -C - https://github.com/BrianHenryIE/strauss/releases/latest/download/strauss.phar'

- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-scripts
run: composer install --no-interaction

- name: Lint with phpcs
run: composer phpcs
5 changes: 4 additions & 1 deletion .github/workflows/lint_phpstan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ jobs:
coverage: none # XDebug can be enabled here 'coverage: xdebug'
tools: composer:v2

- name: Install Strauss
run: sh -c 'test -f ./bin/strauss.phar || curl -o bin/strauss.phar -L -C - https://github.com/BrianHenryIE/strauss/releases/latest/download/strauss.phar'

- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-scripts
run: composer install --no-interaction

- name: Lint with PHP Stan
run: composer run-stan -- --error-format=github
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
fail-fast: false
matrix:
operating-system: [ubuntu-latest]
php-versions: ['8.0', '8.1', '8.2']
php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4']
wp-versions: ['latest']

name: WP ${{ matrix.wp-versions }} with PHP ${{ matrix.php-versions }} on ${{ matrix.operating-system }}.
Expand Down Expand Up @@ -62,8 +62,11 @@ jobs:
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install Strauss
run: sh -c 'test -f ./bin/strauss.phar || curl -o bin/strauss.phar -L -C - https://github.com/BrianHenryIE/strauss/releases/latest/download/strauss.phar'

- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-scripts --ignore-platform-reqs
run: composer install --no-interaction

- name: Install tests
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1:3306 ${{ matrix.wp-versions }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test_legacy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,11 @@ jobs:
- name: Require PHPUnit 7.5 for WP compatibility
run: composer require --dev --no-scripts phpunit/phpunit "^7.5" -W

- name: Install Strauss
run: sh -c 'test -f ./bin/strauss.phar || curl -o bin/strauss.phar -L -C - https://github.com/BrianHenryIE/strauss/releases/latest/download/strauss.phar'

- name: Install dependencies
run: composer install --prefer-dist --no-interaction --no-scripts
run: composer install --no-interaction

- name: Install tests
run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1:3306 ${{ matrix.wp-versions }}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ composer.lock
package-lock.json
/_dev/node_modules
.phpunit.result.cache
bin/strauss.phar
Empty file added bin/.gitkeep
Empty file.
46 changes: 46 additions & 0 deletions classes/Admin/PluginFamilySubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,50 @@ public function install_activate() {
public function display_error_notice() {
$this->plugin_family->display_error_notice();
}

/**
* Enqueue block editor assets.
*
* @return void
*/
public function enqueue_assets(): void {
$this->plugin_family->enqueue_assets();
}

/**
* Install Imagify using the ajax request.
*
* @return void
*/
public function install_imagify(): void {
$this->plugin_family->install_imagify();
}

/**
* Enqueue Admin assets.
*
* @param string $page Page ID.
* @return void
*/
public function enqueue_admin_assets( $page ): void {
$this->plugin_family->enqueue_admin_assets( $page );
}

/**
* Insert admin footer JS templates.
*
* @return void
*/
public function insert_footer_templates(): void {
$this->plugin_family->insert_footer_templates();
}

/**
* Dismiss promote Imagify using the ajax request.
*
* @return void
*/
public function dismiss_promote_imagify(): void {
$this->plugin_family->dismiss_promote_imagify();
}
}
Loading
Loading