diff --git a/bootstrap/start.php b/bootstrap/start.php index a2bca3059..9dce4e29d 100644 --- a/bootstrap/start.php +++ b/bootstrap/start.php @@ -23,5 +23,4 @@ do_action( 'pm_loaded' ); -// Call tracker immediately -pm_init_tracker(); +add_action('init', 'pm_init_tracker'); diff --git a/cpm.php b/cpm.php index 47789d40f..0c9f21cdc 100644 --- a/cpm.php +++ b/cpm.php @@ -29,4 +29,5 @@ define( 'PM_BASENAME', plugin_basename(__FILE__) ); define( 'PM_PLUGIN_ASSEST', plugins_url( 'views/assets', __FILE__ ) ); + require __DIR__.'/bootstrap/start.php'; diff --git a/src/Task_List/Controllers/Task_List_Controller.php b/src/Task_List/Controllers/Task_List_Controller.php index 979cde553..bf6d4de5b 100644 --- a/src/Task_List/Controllers/Task_List_Controller.php +++ b/src/Task_List/Controllers/Task_List_Controller.php @@ -186,6 +186,23 @@ public function set_incomplete_task_in_lists( $lists, $incomplete_tasks ) { if ( ! empty( $filter_tasks[$list['id']] ) ) { $lists['data'][$key]['incomplete_tasks']['data'] = $filter_tasks[ $list['id'] ]; } + + if(isset($lists['data'][$key]['creator']->data->user_pass)){ + unset($lists['data'][$key]['creator']->data->user_pass); + } + if(isset($lists['data'][$key]['creator']->data->user_registered)){ + unset($lists['data'][$key]['creator']->data->user_registered); + } + if(isset($lists['data'][$key]['creator']->data->user_activation_key)){ + unset($lists['data'][$key]['creator']->data->user_activation_key); + } + if(isset($lists['data'][$key]['creator']->data->user_status)){ + unset($lists['data'][$key]['creator']->data->user_status); + } + if(isset($lists['data'][$key]['creator']->allcaps)){ + unset($lists['data'][$key]['creator']->allcaps); + } + } return $lists;