Code Duplication    Length = 7-7 lines in 2 locations

core/Container/Theme_Options_Container.php 1 location

@@ 81-87 (lines=7) @@
78
	 * 
79
	 * @return bool
80
	 **/
81
	public function is_valid_save() {
82
		if ( ! isset( $_POST[ $this->get_nonce_name() ] ) || ! wp_verify_nonce( $_POST[ $this->get_nonce_name() ], $this->get_nonce_name() ) ) { // Input var okay.
83
			return false;
84
		}
85
86
		return true;
87
	}
88
89
	/**
90
	 * Add theme options container pages.

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