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

@@ 54-60 (lines=7) @@
51
	 *
52
	 * @return bool
53
	 **/
54
	public function is_valid_save() {
55
		if ( ! isset( $_REQUEST[ $this->get_nonce_name() ] ) || ! wp_verify_nonce( $_REQUEST[ $this->get_nonce_name() ], $this->get_nonce_name() ) ) { // Input var okay.
56
			return false;
57
		} 
58
59
		return true;
60
	}
61
62
	/**
63
	 * Add meta box to the comment