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/Term_Meta_Container.php 1 location

@@ 52-59 (lines=8) @@
49
	 *
50
	 * @return bool
51
	 */
52
	public function is_valid_save() {
53
		if ( ! $this->verified_nonce_in_request() ) {
54
			return false;
55
		}
56
57
		$params = func_get_args();
58
		return $this->is_valid_attach_for_object( $params[0] );
59
	}
60
61
	/**
62
	 * Perform save operation after successful is_valid_save() check.

core/Container/User_Meta_Container.php 1 location

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

core/Container/Nav_Menu_Item_Container.php 1 location

@@ 69-76 (lines=8) @@
66
	 *
67
	 * @return bool
68
	 */
69
	public function is_valid_save() {
70
		if ( ! $this->verified_nonce_in_request() ) {
71
			return false;
72
		}
73
74
		$params = func_get_args();
75
		return $this->is_valid_attach_for_object( $params[0] );
76
	}
77
78
	/**
79
	 * Perform save operation after successful is_valid_save() check.