Code Duplication    Length = 7-7 lines in 2 locations

core/Container/Comment_Meta_Container.php 1 location

@@ 45-51 (lines=7) @@
42
	 *
43
	 * @return bool
44
	 **/
45
	public function is_valid_save() {
46
		if ( ! isset( $_REQUEST[ $this->get_nonce_name() ] ) || ! wp_verify_nonce( $_REQUEST[ $this->get_nonce_name() ], $this->get_nonce_name() ) ) { // Input var okay.
47
			return false;
48
		}
49
50
		return true;
51
	}
52
53
	/**
54
	 * Add meta box to the comment

core/Container/Theme_Options_Container.php 1 location

@@ 102-108 (lines=7) @@
99
	 *
100
	 * @return bool
101
	 **/
102
	public function is_valid_save() {
103
		if ( ! isset( $_POST[ $this->get_nonce_name() ] ) || ! wp_verify_nonce( $_POST[ $this->get_nonce_name() ], $this->get_nonce_name() ) ) { // Input var okay.
104
			return false;
105
		}
106
107
		return true;
108
	}
109
110
	/**
111
	 * Add theme options container pages.