Skip to content

Commit

Permalink
WP_Post instance can only be created from ::get_instance(). #3841
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyratilal committed Jun 8, 2018
1 parent 394e05d commit 43624c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/admin/upgrades/upgrade-functions.php
Expand Up @@ -1667,7 +1667,7 @@ function edd_logs_migration() {

$new_log_id = edd_add_api_request_log( $log_data );
} else {
$post = new WP_Post( $old_log->ID );
$post = WP_Post::get_instance( $old_log->ID );

$log_data = array(
'object_id' => $post->post_parent,
Expand Down

0 comments on commit 43624c4

Please sign in to comment.