- Fixes 'get_userdata() function not found' error
- Tidies up format
This commit is contained in:
@@ -1,10 +1,15 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace MailPoet\Segments;
|
namespace MailPoet\Segments;
|
||||||
use \MailPoet\Models\Subscriber;
|
|
||||||
use \MailPoet\Models\Segment;
|
use MailPoet\Models\Subscriber;
|
||||||
use \MailPoet\Models\SubscriberSegment;
|
use MailPoet\Models\Segment;
|
||||||
|
use MailPoet\Models\SubscriberSegment;
|
||||||
use MailPoet\Newsletter\Scheduler\Scheduler;
|
use MailPoet\Newsletter\Scheduler\Scheduler;
|
||||||
|
|
||||||
|
if(!defined('ABSPATH')) exit;
|
||||||
|
|
||||||
|
require_once(ABSPATH . 'wp-includes/pluggable.php');
|
||||||
|
|
||||||
class WP {
|
class WP {
|
||||||
static function synchronizeUser($wp_user_id, $old_wp_user_data = false) {
|
static function synchronizeUser($wp_user_id, $old_wp_user_data = false) {
|
||||||
$wp_user = \get_userdata($wp_user_id);
|
$wp_user = \get_userdata($wp_user_id);
|
||||||
|
Reference in New Issue
Block a user