Skip to content
Permalink
Browse files

PHPCS Warnings removed

  • Loading branch information...
NeilWJames committed Apr 23, 2019
1 parent a1b228f commit 61f790bfe2b62e6c72c617e03883a11fbf0b1418
Showing with 3 additions and 0 deletions.
  1. +3 −0 tests/class-test-wp-document-revisions.php
@@ -346,14 +346,17 @@ public function test_verify_post_type() {
$_GET['post_type'] = 'document';
$this->assertTrue( $wpdr->verify_post_type(), 'verify post type via explicit' );
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
unset( $_GET['post_type'] );
$_GET['post'] = $doc_id;
$this->assertTrue( $wpdr->verify_post_type(), 'verify post type via get' );
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
unset( $_GET['post'] );
$_REQUEST['post_id'] = $doc_id;
$this->assertTrue( $wpdr->verify_post_type(), 'verify post type via request (post_id)' );
// phpcs:ignore WordPress.Security.NonceVerification.Recommended
unset( $_REQUEST['post_id'] );
// @codingStandardsIgnoreStart WordPress.Variables.GlobalVariables.OverrideProhibited

0 comments on commit 61f790b

Please sign in to comment.
You can’t perform that action at this time.