Skip to content
Merged
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
8 changes: 2 additions & 6 deletions .github/workflows/code-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
name: Check the code
uses: publishpress/github-workflows/.github/workflows/code-standards.yml@v3

welcome-tests:
name: Welcome regressions (PHP ${{ matrix.php }})
php-regression-tests:
name: Regressions (PHP ${{ matrix.php }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand All @@ -33,10 +33,6 @@ jobs:
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Check post-type choices and save handler
run: |
php tests/unit/welcome-post-types.php
php tests/unit/welcome-save.php
- name: Check Read More fallback behavior
run: php tests/unit/read-more-fallback.php
- name: Check permission-scoped Trash counts
Expand Down
10 changes: 1 addition & 9 deletions activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,6 @@
}

$db_ver = (is_array($ver) && isset( $ver['db_version'] ) ) ? $ver['db_version'] : '';

// Enroll only genuine first installations. Existing sites can still open the
// welcome page manually, but are never redirected or shown onboarding notices.
if (empty($ver)) {
update_option('presspermit_welcome_enrolled', 1, false);
update_option('presspermit_welcome_redirect_pending', 1, false);
}

require_once(__DIR__ . '/classes/PublishPress/Permissions/DB/DatabaseSetup.php');
new \PublishPress\Permissions\DB\DatabaseSetup($db_ver);

Expand All @@ -31,4 +23,4 @@
update_option('presspermit_activation', true);
update_option('presspermit_refresh_role_usage', true);

do_action('presspermit_activate');
do_action('presspermit_activate');
46 changes: 0 additions & 46 deletions classes/PublishPress/Permissions/UI/WelcomeCallbackStep.php

This file was deleted.

652 changes: 0 additions & 652 deletions classes/PublishPress/Permissions/UI/WelcomeExperience.php

This file was deleted.

140 changes: 0 additions & 140 deletions classes/PublishPress/Permissions/UI/WelcomePostTypes.php

This file was deleted.

8 changes: 0 additions & 8 deletions classes/PublishPress/PermissionsHooksAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,6 @@ function($query) {
add_action('presspermit_trigger_cache_flush', [$this, 'wpeCacheFlush']);
add_action('presspermit_activate', [$this, 'actPluginSettingsUpdated']);
add_action('shutdown', [$this, 'actConfigUpdateFollowup']);

add_action('init', [$this, 'actRegisterWelcomeExperience'], 20);
}

public function actRegisterWelcomeExperience()
{
require_once(PRESSPERMIT_CLASSPATH . '/UI/WelcomeExperience.php');
new Permissions\UI\WelcomeExperience();
}

public function init()
Expand Down
Loading
Loading