Code Duplication    Length = 6-6 lines in 2 locations

wp-admin/includes/comment.php 1 location

@@ 64-69 (lines=6) @@
61
	if ( isset( $_POST['comment_ID'] ) )
62
		$_POST['comment_ID'] = (int) $_POST['comment_ID'];
63
64
	foreach ( array ('aa', 'mm', 'jj', 'hh', 'mn') as $timeunit ) {
65
		if ( !empty( $_POST['hidden_' . $timeunit] ) && $_POST['hidden_' . $timeunit] != $_POST[$timeunit] ) {
66
			$_POST['edit_date'] = '1';
67
			break;
68
		}
69
	}
70
71
	if ( !empty ( $_POST['edit_date'] ) ) {
72
		$aa = $_POST['aa'];

wp-admin/includes/post.php 1 location

@@ 139-144 (lines=6) @@
136
	if (!isset( $post_data['ping_status'] ))
137
		$post_data['ping_status'] = 'closed';
138
139
	foreach ( array('aa', 'mm', 'jj', 'hh', 'mn') as $timeunit ) {
140
		if ( !empty( $post_data['hidden_' . $timeunit] ) && $post_data['hidden_' . $timeunit] != $post_data[$timeunit] ) {
141
			$post_data['edit_date'] = '1';
142
			break;
143
		}
144
	}
145
146
	if ( !empty( $post_data['edit_date'] ) ) {
147
		$aa = $post_data['aa'];