Code Duplication    Length = 4-4 lines in 2 locations

core/Datastore/Meta_Datastore.php 1 location

@@ 43-46 (lines=4) @@
40
			LIMIT 1
41
		' );
42
43
		if ( ! is_array( $value ) || count( $value ) < 1 ) {
44
			$field->set_value( false );
45
			return;
46
		}
47
48
		$field->set_value( $value[0] );
49
	}

core/Datastore/Nav_Menu_Datastore.php 1 location

@@ 58-61 (lines=4) @@
55
		', intval( $this->get_id() ), $this->get_clean_field_name( $field ) );
56
		$value = $wpdb->get_col( $query );
57
58
		if ( ! is_array( $value ) || count( $value ) < 1 ) {
59
			$field->set_value( false );
60
			return;
61
		}
62
63
		$field->set_value( $value[0] );
64
	}