PluginProbe
Meow Gallery / 4.2.2
Meow Gallery v4.2.2
5.5.5 5.5.4 5.5.3 5.5.2 5.5.1 5.5.0 5.4.9 5.4.8 5.4.7 4.1.5 4.1.6 4.1.7 4.1.8 4.1.9 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.2.5 4.2.6 4.2.7 4.2.8 4.2.9 4.3.0 All 157 releases
← All changes | common/ratings.php +22 -30 4.2.6 → 4.2.2 View file →
@@ -30,11 +30,11 @@
30 30
31 31 function create_rating_date() {
32 32 $rating_date = get_option( $this->prefix . '_rating_date' );
33 33 if ( empty( $rating_date ) ) {
34 - $two_weeks = strtotime( '+2 weeks' );
35 - $three_weeks = strtotime( '+3 weeks' );
36 - $rating_date = mt_rand( $two_weeks, $three_weeks );
34 + $two_months = strtotime( '+2 months' );
35 + $six_months = strtotime( '+4 months' );
36 + $rating_date = mt_rand( $two_months, $six_months );
37 37 update_option( $this->prefix . '_rating_date', $rating_date, false );
38 38 }
39 39 return $rating_date;
40 40 }
@@ -57,44 +57,36 @@
57 57 update_option( $this->prefix . '_rating_date', $twenty_years, false );
58 58 return;
59 59 }
60 60 $rating_date = get_option( $this->prefix . '_rating_date' );
61 - $html = wp_kses_post( '<div class="notice notice-success" data-rating-date="' .
62 - date( 'Y-m-d', $rating_date ) . '">' );
63 - $esc_nice_name = esc_attr( $this->nice_name_from_file( $this->mainfile ) );
64 - $esc_short_url = esc_attr( $this->nice_short_url_from_file( $this->mainfile ) );
65 - $escaped_prefix = $this->prefix;
61 + $html = '<div class="notice notice-success" data-rating-date="' . date( 'Y-m-d', $rating_date ) . '">';
66 62 $html .= '<p style="font-size: 100%;">';
67 - // Translators: %1$s is a plugin nicename, %2$s is a short url (slug)
68 63 $html .= sprintf(
69 - __( '<h2 class="title">You have been using <b>%1$s</b> for some time now! Thank you 💕</h2>Could you take one minute and write a <b>little review</b> for me? That would <b>really</b> bring me joy and motivation 🥰<br />In the review, don\'t hesitate to share your feature requests and remarks. I will try my best!
70 - ', $this->domain ), $esc_nice_name
64 + // translators: %1$s is a plugin nicename, %2$s is a short url (slug)
65 + __( 'You have been using <b>%1$s</b> for some time now. Thank you! Could you kindly share your opinion with me, along with, maybe, features you would like to see implemented? Then, please <a style="font-weight: bold; color: #b926ff;" target="_blank" href="https://wordpress.org/support/plugin/%2$s/reviews/?rate=5#new-post">write a little review</a>. That will also bring me joy and motivation! I will get back to you :)', $this->domain ),
66 + $this->nice_name_from_file( $this->mainfile ),
67 + $this->nice_short_url_from_file( $this->mainfile )
71 68 );
72 - $html .= '<div style="padding: 20px 0 12px 0; display: flex; align-items: center;">';
73 - $html .= '<a target="_blank" class="button button-primary" style="float: left; margin-right: 10px;"
74 - href="https://wordpress.org/support/plugin/' . $esc_short_url . '/reviews/?rate=5#new-post">
75 - ✍🏼 Yes, let\'s write it now!
76 - </a>
77 - <form method="post" action="" style="margin-right: 10px;">
78 - <input type="hidden" name="' . $escaped_prefix . '_did_it" value="true">
69 + $html .= '<p>
70 + <form method="post" action="" style="float: right;">
71 + <input type="hidden" name="' . $this->prefix . '_never_remind_me" value="true">
72 + <input type="submit" name="submit" id="submit" class="button button-red" value="'
73 + . __( 'Never remind me!', $this->domain ) . '">
74 + </form>
75 + <form method="post" action="" style="float: right; margin-right: 10px;">
76 + <input type="hidden" name="' . $this->prefix . '_remind_me" value="true">
79 77 <input type="submit" name="submit" id="submit" class="button button-primary" value="'
80 - . __( '🥰 I did it', $this->domain ) . '">
78 + . __( 'Remind me in a few weeks...', $this->domain ) . '">
81 79 </form>
82 - <div style="flex: auto;"></div>
83 - <form method="post" action="" style="margin-right: 10px;">
84 - <input type="hidden" name="' . $escaped_prefix . '_remind_me" value="true">
80 + <form method="post" action="" style="float: right; margin-right: 10px;">
81 + <input type="hidden" name="' . $this->prefix . '_did_it" value="true">
85 82 <input type="submit" name="submit" id="submit" class="button button-primary" value="'
86 - . __( '⏰ Remind me later', $this->domain ) . '">
83 + . __( 'Yes, I did it!', $this->domain ) . '">
87 84 </form>
88 - <form method="post" action="">
89 - <input type="hidden" name="' . $escaped_prefix . '_never_remind_me" value="true">
90 - <input type="submit" name="submit" id="submit" class="button-link" style="font-size: small;" value="'
91 - . __( 'Hide this', $this->domain ) . '">
92 - </form>
93 85 <div style="clear: both;"></div>
94 - </div>';
86 + </p>';
95 87 $html .= '</div>';
96 - echo $html;
88 + wp_kses_post( $html );
97 89 }
98 90
99 91 function nice_short_url_from_file( $file ) {
100 92 $info = pathinfo( $file );