Skip to content

Commit

Permalink
Fixed missing user_id in webhook migration script
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiosanches committed Jan 31, 2018
1 parent 2936daa commit 5533f85
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions includes/wc-update-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
*
* Functions for updating data, used by the background updater.
*
* @author WooThemes
* @category Core
* @package WooCommerce/Functions
* @version 2.6.0
* @package WooCommerce/Functions
* @version 3.3.0
*/

if ( ! defined( 'ABSPATH' ) ) {
Expand Down Expand Up @@ -1529,6 +1527,7 @@ function wc_update_330_webhooks() {
$webhook->set_secret( get_post_meta( $post->ID, '_secret', true ) );
$webhook->set_topic( get_post_meta( $post->ID, '_topic', true ) );
$webhook->set_api_version( get_post_meta( $post->ID, '_api_version', true ) );
$webhook->set_user_id( $post->post_author );
$webhook->set_pending_delivery( false );
$webhook->save();

Expand Down

0 comments on commit 5533f85

Please sign in to comment.