PluginProbe
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification / 5.6.2
Double Opt-In for Contact Form 7 – Secure, GDPR-Compliant Email Verification v5.6.2
5.6.2 5.6.3 5.6.1 5.6.0 5.5.0 5.4.0 5.3.2 5.3.1 5.1.6 5.1.5 trunk 2.1.5 2.11 2.12 2.13 2.15 3.0.0 3.0.1 3.0.2 3.0.3 3.0.5 3.0.51 3.0.60 3.0.61 3.0.62 All 38 releases
← All changes | core/review.php +32 -6 5.1.6 → 5.6.2 View file →
@@ -29,14 +29,18 @@
29 29 $remind_count = (int) get_option( 'f12_cf7_doubleoptin_review_remind_count', 0 );
30 30
31 31 // Conditions:
32 32 // - installed for at least 10 days
33 - // - at least 3 confirmed opt-ins
33 + // - at least 25 confirmed opt-ins
34 + //
35 + // The threshold used to be 3. Three confirmations is a site that has
36 + // barely started; asking for a public review at that point is asking
37 + // someone to vouch for something they have not seen work yet.
34 38 if ( ( time() - $installed_at ) < DAY_IN_SECONDS * 10 ) {
35 39 return;
36 40 }
37 41
38 - if ( $confirmed_optins < 3 ) {
42 + if ( $confirmed_optins < 25 ) {
39 43 return;
40 44 }
41 45
42 46 if ( $dismissed ) {
@@ -51,17 +55,27 @@
51 55 if ( $remind_count >= 2 ) {
52 56 return;
53 57 }
54 58
59 + // Claim this screen. The credit-link notice runs later on the same hook
60 + // and stands down when it sees this — asking a site owner for two
61 + // favours at once is how a plugin earns a one-star review, and the
62 + // review request is the more valuable of the two.
63 + $GLOBALS['f12_doi_review_notice_shown'] = true;
64 +
55 65 ?>
56 66 <div class="notice notice-info is-dismissible f12-cf7-doubleoptin-review-notice">
57 67 <p>
58 68 <?php printf(
59 - __(
60 - '<strong>Double Opt-In for WordPress</strong> has already confirmed <strong>%d email subscriptions</strong>. Would you support us with a quick review?',
61 - 'double-opt-in'
69 + wp_kses(
70 + /* translators: %d: number of confirmed opt-ins. */
71 + __(
72 + '<strong>Double Opt-In for WordPress</strong> has already confirmed <strong>%d email subscriptions</strong>. Would you support us with a quick review?',
73 + 'double-opt-in'
74 + ),
75 + array( 'strong' => array() )
62 76 ),
63 - $confirmed_optins
77 + (int) $confirmed_optins
64 78 ); ?>
65 79 </p>
66 80 <p>
67 81 <a href="https://wordpress.org/support/plugin/double-opt-in/reviews/#new-post"
@@ -67,8 +81,20 @@
67 81 <a href="https://wordpress.org/support/plugin/double-opt-in/reviews/#new-post"
68 82 target="_blank"
69 83 class="button button-primary">
70 84 <?php _e( 'Leave a review now', 'double-opt-in' ); ?>
85 + </a>
86 + <?php
87 + // The only path out of this notice used to be a public review.
88 + // Someone who is unhappy has no other outlet, so the feedback
89 + // lands as a one-star rating that nobody can answer. This gives
90 + // them somewhere to say it to us instead.
91 + ?>
92 + <a href="<?php echo esc_url( get_feedback_url( 'review-notice' ) ); ?>"
93 + target="_blank"
94 + rel="noopener"
95 + class="button">
96 + <?php esc_html_e( 'Something not working? Tell us', 'double-opt-in' ); ?>
71 97 </a>
72 98 <a href="<?php echo esc_url( wp_nonce_url( add_query_arg( 'f12_cf7_doubleoptin_review_remind', '1' ), 'doi_review_action' ) ); ?>"
73 99 class="button">
74 100 <?php _e( 'Remind me later', 'double-opt-in' ); ?>