PluginProbe
Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization / 4.2.15
Optimole – Optimize Images | Convert WebP & AVIF | CDN & Lazy Load | Image Optimization v4.2.15
4.2.15 4.2.14 4.2.13 4.2.12 4.2.11 4.2.10 4.2.9 4.2.8 4.2.7 4.2.6 4.2.5 2.5.5 2.5.6 2.5.7 3.0.0 3.0.1 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.11.0 3.11.1 3.11.2 3.11.3 All 136 releases
← All changes | vendor/codeinwp/themeisle-sdk/src/Modules/Review.php +6 -11 3.11.0 → 4.2.15 View file →
@@ -11,8 +11,9 @@
11 11
12 12 namespace ThemeisleSDK\Modules;
13 13
14 14 use ThemeisleSDK\Common\Abstract_Module;
15 +use ThemeisleSDK\Loader;
15 16 use ThemeisleSDK\Product;
16 17
17 18 // Exit if accessed directly.
18 19 if ( ! defined( 'ABSPATH' ) ) {
@@ -52,31 +53,25 @@
52 53 */
53 54 public function add_notification( $all_notifications ) {
54 55
55 56 $developers = [
56 - 'Bogdan',
57 57 'Marius',
58 58 'Hardeep',
59 - 'Rodica',
60 - 'Stefan',
61 - 'Uriahs',
62 - 'Madalin',
63 - 'Cristi',
64 - 'Silviu',
65 59 'Andrei',
60 + 'Robert',
66 61 ];
67 62
68 63 $link = 'https://wordpress.org/support/' . $this->product->get_type() . '/' . $this->product->get_slug() . '/reviews/#wporg-footer';
69 64
70 - $message = apply_filters( $this->product->get_key() . '_feedback_review_message', '<p>Hey, it\'s great to see you have <b>{product}</b> active for a few days now. How is everything going? If you can spare a few moments to rate it on WordPress.org it would help us a lot (and boost my motivation). Cheers! <br/> <br/>~ {developer}, developer of {product}</p>' );
65 + $message = apply_filters( $this->product->get_key() . '_feedback_review_message', Loader::$labels['review']['notice'] );
71 66
72 - $button_submit = apply_filters( $this->product->get_key() . '_feedback_review_button_do', 'Ok, I will gladly help.' );
73 - $button_cancel = apply_filters( $this->product->get_key() . '_feedback_review_button_cancel', 'No, thanks.' );
67 + $button_submit = apply_filters( $this->product->get_key() . '_feedback_review_button_do', Loader::$labels['review']['ctay'] );
68 + $button_cancel = apply_filters( $this->product->get_key() . '_feedback_review_button_cancel', Loader::$labels['review']['ctan'] );
74 69 $message = str_replace(
75 70 [ '{product}', '{developer}' ],
76 71 [
77 72 $this->product->get_friendly_name(),
78 - $developers[ strlen( get_site_url() ) % 10 ],
73 + $developers[ strlen( get_site_url() ) % count( $developers ) ],
79 74 ],
80 75 $message
81 76 );
82 77