Skip to content

Commit a7f257e

Browse files
committed
test: add intentional violation for Plugin Check
1 parent e3f8b30 commit a7f257e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

plugins/hwp-previews/hwp-previews.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
* Text Domain: hwp-previews
1212
* Domain Path: /languages
1313
* Requires at least: 6.0
14-
* Tested up to: 6.7
14+
* Tested up to: 6.8.1
1515
* Requires PHP: 7.4+
1616
* License: GPLv2 or later
1717
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -141,3 +141,13 @@ function hwp_previews_load_textdomain(): void {
141141

142142
/** @psalm-suppress HookNotFound */
143143
add_action( 'plugins_loaded', 'hwp_previews_init', 15, 0 );
144+
145+
/**
146+
* INTENTIONAL VIOLATION FOR TESTING PLUGIN CHECK - REMOVE AFTER TEST
147+
*
148+
* @todo Remove this function after testing Plugin Check workflow.
149+
*/
150+
function hwp_previews_test_violation(): void {
151+
// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Intentional for testing
152+
echo $_GET['test'];
153+
}

0 commit comments

Comments
 (0)