Code Duplication    Length = 8-12 lines in 4 locations

core/Container/Comment_Meta_Container.php 1 location

@@ 43-50 (lines=8) @@
40
	 *
41
	 * @return bool
42
	 */
43
	public function is_valid_save() {
44
		if ( ! $this->verified_nonce_in_request() ) {
45
			return false;
46
		}
47
48
		$params = func_get_args();
49
		return $this->is_valid_attach_for_object( $params[0] );
50
	}
51
52
	/**
53
	 * Perform save operation after successful is_valid_save() check.

core/Container/Nav_Menu_Item_Container.php 1 location

@@ 61-68 (lines=8) @@
58
	 *
59
	 * @return bool
60
	 */
61
	public function is_valid_save() {
62
		if ( ! $this->verified_nonce_in_request() ) {
63
			return false;
64
		}
65
66
		$params = func_get_args();
67
		return $this->is_valid_attach_for_object( $params[0] );
68
	}
69
70
	/**
71
	 * Perform save operation after successful is_valid_save() check.

core/Container/Term_Meta_Container.php 1 location

@@ 46-53 (lines=8) @@
43
	 *
44
	 * @return bool
45
	 */
46
	public function is_valid_save() {
47
		if ( ! $this->verified_nonce_in_request() ) {
48
			return false;
49
		}
50
51
		$params = func_get_args();
52
		return $this->is_valid_attach_for_object( $params[0] );
53
	}
54
55
	/**
56
	 * Perform save operation after successful is_valid_save() check.

core/Container/User_Meta_Container.php 1 location

@@ 39-50 (lines=12) @@
36
	 *
37
	 * @return bool
38
	 */
39
	public function is_valid_save() {
40
		if ( ! $this->is_profile_page() ) {
41
			return false;
42
		}
43
		
44
		if ( ! $this->verified_nonce_in_request() ) {
45
			return false;
46
		}
47
48
		$params = func_get_args();
49
		return $this->is_valid_attach_for_object( $params[0] );
50
	}
51
52
	/**
53
	 * Perform save operation after successful is_valid_save() check.