From 76934db7c1238c0d8c9c4550bbc69acec6b74632 Mon Sep 17 00:00:00 2001 From: Damian Taggart <4309872+attackant@users.noreply.github.com> Date: Thu, 2 Nov 2023 11:01:06 -0600 Subject: [PATCH] Add workflow_dispatch and remove dummy function --- .github/workflows/node-tests.yml | 1 + .github/workflows/phpcs.yml | 1 + index.php | 6 ------ 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/node-tests.yml b/.github/workflows/node-tests.yml index 0e61cee7e..58b9a0c57 100644 --- a/.github/workflows/node-tests.yml +++ b/.github/workflows/node-tests.yml @@ -1,6 +1,7 @@ name: Node Tests on: + workflow_dispatch: pull_request: types: [ opened, synchronize, reopened, ready_for_review ] branches: diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index f97e209c7..29ffb3e53 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -1,6 +1,7 @@ name: PHP Coding Standards on: + workflow_dispatch: pull_request: types: [ opened, synchronize, reopened, ready_for_review ] branches: diff --git a/index.php b/index.php index 673a974b0..83ea57820 100644 --- a/index.php +++ b/index.php @@ -6,9 +6,3 @@ */ // Silence is golden. - -if ( ! function_exists('add_action' ) ) { - function do_nothing() { - // Do nothing. - } -}