Adopt reusable CI standard + PHPUnit conversion (#22)

Squash-merge of PR #22: adopt shared reusable CI workflow, convert PHPUnit to stubs, update branch-protection contexts.

QA-approved at 05d8094a1d. All required CI checks green.

Agent-Session: 2026-06-17-prcore-ci-deploy
This commit is contained in:
peptiderepo
2026-06-17 01:12:00 +07:00
committed by GitHub
parent d0b5875fd8
commit 665d7fa9e1
72 changed files with 4604 additions and 1212 deletions

View File

@@ -1,6 +1,18 @@
<?php
/**
* Ajax Handlers.
*
* @package Peptide_Repo_Core
*/
declare(strict_types=1);
/**
* Handles mark-verified and scan-now admin-ajax actions
*
* @package Peptide_Repo_Core
*/
/**
* AJAX handlers for verification scanner actions.
*
@@ -47,7 +59,7 @@ class PR_Core_Ajax_Handlers {
// Recompute status to 'current'.
update_post_meta( $post_id, '_pr_verification_status', 'current' );
wp_send_json_success( [ 'message' => 'Marked verified' ] );
wp_send_json_success( array( 'message' => 'Marked verified' ) );
}
/**
@@ -74,6 +86,6 @@ class PR_Core_Ajax_Handlers {
// Run scan.
PR_Core_Verification_Scanner::run_scan();
wp_send_json_success( [ 'message' => 'Scan complete' ] );
wp_send_json_success( array( 'message' => 'Scan complete' ) );
}
}