Code Duplication    Length = 8-12 lines in 4 locations

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/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

@@ 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.