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

@@ 472-482 (lines=11) @@
469
		}
470
	}
471
	
472
	public function set_date( $postid, $value) {
473
		if( $value ) {
474
            wp_update_post(
475
				array (
476
					'ID'            => $postid, // ID of the post to update
477
					'post_date'     => date( 'Y-m-d H:i:s',  strtotime($value) ),
478
					'post_date_gmt'     => gmdate( 'Y-m-d H:i:s',  strtotime($value) ),
479
				)
480
			);
481
		}
482
	}
483
}
484