Skip to content

Commit 5477476

Browse files
OlegApanovichcagdasdag
authored andcommitted
VC-3543 remove pnps survey popup
1 parent 3488960 commit 5477476

File tree

3 files changed

+0
-111
lines changed

3 files changed

+0
-111
lines changed

visualcomposer/Helpers/Localizations.php

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -685,46 +685,6 @@ public function getLocalizations()
685685
'Element preset has been removed.',
686686
'visualcomposer'
687687
),
688-
'feedbackVoteHeadingText' => __(
689-
'How likely are you to recommend Visual Composer to friend or colleague?',
690-
'visualcomposer'
691-
),
692-
'veryDisappointed' => __(
693-
'Not likely at all',
694-
'visualcomposer'
695-
),
696-
'somewhatDisappointed' => __(
697-
'Extremely likely',
698-
'visualcomposer'
699-
),
700-
'negativeReviewHeadingText' => __(
701-
'How can we become better?',
702-
'visualcomposer'
703-
),
704-
'positiveReviewText' => __(
705-
'Thanks for your feedback. Please rate us on WordPress.org and help others to discover Visual Composer.',
706-
'visualcomposer'
707-
),
708-
'negativeReviewText' => __(
709-
'Your opinion matters. Help us to improve by taking a quick survey.',
710-
'visualcomposer'
711-
),
712-
'positiveReviewButtonText' => __(
713-
'Write Your Review',
714-
'visualcomposer'
715-
),
716-
'negativeReviewButtonText' => __(
717-
'Leave Your Feedback',
718-
'visualcomposer'
719-
),
720-
'likeText' => __(
721-
'Like',
722-
'visualcomposer'
723-
),
724-
'dislikeText' => __(
725-
'Dislike',
726-
'visualcomposer'
727-
),
728688
'replacePopupTemplateText' => __(
729689
'The current popup will be replaced with the popup template.',
730690
'visualcomposer'

visualcomposer/Helpers/Plugin.php

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,4 @@ public function isActivelyUsed($days = 5)
3333

3434
return false;
3535
}
36-
37-
/**
38-
* Check if user has certain amount of posts.
39-
*
40-
* @param $posts
41-
*
42-
* @return bool
43-
*/
44-
public function isHasCertainPostsNumber($posts = 3)
45-
{
46-
$vcvPosts = new \WP_Query(
47-
[
48-
'post_type' => 'any',
49-
'post_status' => ['publish', 'pending', 'draft', 'auto-draft', 'future', 'private'],
50-
'posts_per_page' => $posts,
51-
'meta_key' => VCV_PREFIX . 'pageContent',
52-
'suppress_filters' => true,
53-
]
54-
);
55-
// @codingStandardsIgnoreLine
56-
return (int)$vcvPosts->found_posts >= $posts;
57-
}
5836
}

visualcomposer/Modules/License/FeedbackController.php

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -46,55 +46,6 @@ public function __construct()
4646
$this->wpAddAction('deactivate_' . $file, 'setDeactivationPopupInterval');
4747
}
4848

49-
/**
50-
* Send editor score vote survey to my.visualcomposer.com
51-
*
52-
* @param \VisualComposer\Helpers\Request $requestHelper
53-
* @param \VisualComposer\Helpers\Url $urlHelper
54-
* @param \VisualComposer\Helpers\License $licenseHelper
55-
*
56-
* @return array
57-
*/
58-
protected function submitScoreVote(
59-
Request $requestHelper,
60-
Url $urlHelper,
61-
License $licenseHelper
62-
) {
63-
$feedbackValue = (int)$requestHelper->input('vcv-feedback');
64-
if (!$feedbackValue) {
65-
return ['status' => false];
66-
}
67-
68-
$user = wp_get_current_user();
69-
70-
update_user_meta($user->ID, 'vcv-feedback-score', $feedbackValue);
71-
update_user_meta($user->ID, 'vcv-feedback-score-time', time());
72-
73-
$licenseType = $licenseHelper->getType();
74-
75-
$url = $urlHelper->query(
76-
vcvenv('VCV_HUB_URL'),
77-
[
78-
'vcv-send-feedback' => 'sendFeedback',
79-
'vcv-value' => $feedbackValue,
80-
'vcv-version' => VCV_VERSION,
81-
'vcv-site-url' => get_site_url(),
82-
'vcv-user-email' => $user->user_email,
83-
'vcv-license-type' => $licenseType,
84-
'vcv-user-id' => $licenseHelper->getHashedKey(get_site_url() . $user->ID),
85-
]
86-
);
87-
88-
wp_remote_get(
89-
$url,
90-
[
91-
'timeout' => 30,
92-
]
93-
);
94-
95-
return ['status' => true];
96-
}
97-
9849
/**
9950
* Send user message editor survey to my.visualcomposer.com
10051
* It should correspond the user that previously voted to score vote survey.

0 commit comments

Comments
 (0)