diff --git a/.github/workflows/plugin-check.yml b/.github/workflows/plugin-check.yml index 039394c..ef1d792 100644 --- a/.github/workflows/plugin-check.yml +++ b/.github/workflows/plugin-check.yml @@ -17,7 +17,7 @@ jobs: tools: wp-cli - name: Install latest version of dist-archive-command - run: wp package install wp-cli/dist-archive-command:@stable + run: wp package install wp-cli/dist-archive-command:^3.1 - name: Build plugin run: | @@ -26,6 +26,6 @@ jobs: unzip ${{ github.event.repository.name }}.zip -d build - name: Run plugin check - uses: wordpress/plugin-check-action@v1.0.6 + uses: wordpress/plugin-check-action@v1.1.5 with: build-dir: './build/${{ github.event.repository.name }}' diff --git a/templates/blank.php b/templates/blank.php index 62f22f4..fcaded9 100644 --- a/templates/blank.php +++ b/templates/blank.php @@ -7,5 +7,9 @@ * This template is used to display a blank comments page when comments are disabled. */ +// Exit if accessed directly. +if ( ! defined( 'ABSPATH' ) ) { + exit; +} ?> - \ No newline at end of file +