Code Duplication    Length = 11-13 lines in 2 locations

includes/process/update_object.php 1 location

@@ 213-225 (lines=13) @@
210
		}
211
	}
212
	
213
	public function set_date( $postid, $value) {
214
		
215
		if( $value ) {
216
			$time = current_time('mysql');
217
            wp_update_post(
218
				array (
219
					'ID'            => $postid, // ID of the post to update
220
					'post_date'     => date( 'Y-m-d H:i:s',  strtotime($value) ),
221
					'post_date_gmt'     => gmdate( 'Y-m-d H:i:s',  strtotime($value) ),
222
				)
223
			);
224
		}
225
	}
226
227
	/**
228
	 *  Determines if the given value has multiple terms by checking to see

public/includes/lasso.php 1 location

@@ 452-462 (lines=11) @@
449
		}
450
	}
451
	
452
	public function set_date( $postid, $value) {
453
		if( $value ) {
454
            wp_update_post(
455
				array (
456
					'ID'            => $postid, // ID of the post to update
457
					'post_date'     => date( 'Y-m-d H:i:s',  strtotime($value) ),
458
					'post_date_gmt'     => gmdate( 'Y-m-d H:i:s',  strtotime($value) ),
459
				)
460
			);
461
		}
462
	}
463
}
464