@@ -155,25 +155,25 @@ discard block |
||
155 | 155 | $this->network = is_network_admin() || ! empty( $args['network'] ); |
156 | 156 | |
157 | 157 | $default_token = $this->network ? MonsterInsights()->auth->get_network_token() : MonsterInsights()->auth->get_token(); |
158 | - $default_key = $this->network ? MonsterInsights()->auth->get_network_key() : MonsterInsights()->auth->get_key(); |
|
158 | + $default_key = $this->network ? MonsterInsights()->auth->get_network_key() : MonsterInsights()->auth->get_key(); |
|
159 | 159 | |
160 | - $this->token = ! empty( $args['token'] ) ? $args['token'] : $default_token; |
|
161 | - $this->key = ! empty( $args['key'] ) ? $args['key'] : $default_key; |
|
162 | - $this->tt = ! empty( $args['tt'] ) ? $args['tt'] : ''; |
|
163 | - $this->return = ! empty( $args['return'] ) ? $args['return'] : ''; |
|
164 | - $this->start = ! empty( $args['start'] ) ? $args['start'] : ''; |
|
165 | - $this->end = ! empty( $args['end'] ) ? $args['end'] : ''; |
|
160 | + $this->token = ! empty( $args['token'] ) ? $args['token'] : $default_token; |
|
161 | + $this->key = ! empty( $args['key'] ) ? $args['key'] : $default_key; |
|
162 | + $this->tt = ! empty( $args['tt'] ) ? $args['tt'] : ''; |
|
163 | + $this->return = ! empty( $args['return'] ) ? $args['return'] : ''; |
|
164 | + $this->start = ! empty( $args['start'] ) ? $args['start'] : ''; |
|
165 | + $this->end = ! empty( $args['end'] ) ? $args['end'] : ''; |
|
166 | 166 | |
167 | 167 | // We need to do this hack so that the network panel + the site_url of the main site are distinct |
168 | 168 | $this->site_url = is_network_admin() ? network_admin_url() : site_url(); |
169 | 169 | |
170 | 170 | if ( monsterinsights_is_pro_version() ) { |
171 | - $this->license = $this->network ? MonsterInsights()->license->get_network_license_key() : MonsterInsights()->license->get_site_license_key(); |
|
171 | + $this->license = $this->network ? MonsterInsights()->license->get_network_license_key() : MonsterInsights()->license->get_site_license_key(); |
|
172 | 172 | } |
173 | 173 | $this->plugin = MonsterInsights()->plugin_slug; |
174 | 174 | $this->miversion = MONSTERINSIGHTS_VERSION; |
175 | - $this->sitei = ! empty( $args['sitei'] ) ? $args['sitei'] : ''; |
|
176 | - $this->testurl = ! empty( $args['testurl'] ) ? $args['testurl'] : ''; |
|
175 | + $this->sitei = ! empty( $args['sitei'] ) ? $args['sitei'] : ''; |
|
176 | + $this->testurl = ! empty( $args['testurl'] ) ? $args['testurl'] : ''; |
|
177 | 177 | } |
178 | 178 | |
179 | 179 | /** |
@@ -186,7 +186,7 @@ discard block |
||
186 | 186 | public function request() { |
187 | 187 | // Make sure we're not blocked |
188 | 188 | $blocked = $this->is_blocked( $this->url ); |
189 | - if ( $blocked || is_wp_error( $blocked ) ) { |
|
189 | + if ( $blocked || is_wp_error( $blocked ) ) { |
|
190 | 190 | if ( is_wp_error( $blocked ) ) { |
191 | 191 | // Translators: Placeholder gets replaced with the error message. |
192 | 192 | return new WP_Error( 'api-error', sprintf( __( 'The firewall of your server is blocking outbound calls. Please contact your hosting provider to fix this issue. %s', 'google-analytics-for-wordpress' ), $blocked->get_error_message() ) ); |
@@ -244,14 +244,14 @@ discard block |
||
244 | 244 | } |
245 | 245 | |
246 | 246 | if ( 'GET' == $this->method ) { |
247 | - $body['time'] = time(); // just to avoid caching |
|
247 | + $body['time'] = time(); // just to avoid caching |
|
248 | 248 | } |
249 | 249 | |
250 | - $body['timezone'] = date('e'); |
|
250 | + $body['timezone'] = date( 'e' ); |
|
251 | 251 | |
252 | 252 | $body['network'] = $this->network ? 'network' : 'site'; |
253 | 253 | |
254 | - $body['ip'] = ! empty( $_SERVER['SERVER_ADDR'] ) ? $_SERVER['SERVER_ADDR'] : ''; |
|
254 | + $body['ip'] = ! empty( $_SERVER['SERVER_ADDR'] ) ? $_SERVER['SERVER_ADDR'] : ''; |
|
255 | 255 | |
256 | 256 | // This filter will be removed in the future. |
257 | 257 | $body = apply_filters( 'monsterinsights_api_request_body', $body ); |
@@ -282,7 +282,7 @@ discard block |
||
282 | 282 | ); |
283 | 283 | |
284 | 284 | // Perform the query and retrieve the response. |
285 | - $response = 'GET' == $this->method ? wp_remote_get( esc_url_raw( $this->url ) . '?' . $string, $data ) : wp_remote_post( esc_url_raw( $this->url ), $data ); |
|
285 | + $response = 'GET' == $this->method ? wp_remote_get( esc_url_raw( $this->url ) . '?' . $string, $data ) : wp_remote_post( esc_url_raw( $this->url ), $data ); |
|
286 | 286 | |
287 | 287 | //return new WP_Error( 'debug', '<pre>' . var_export( $response, true ) . '</pre>' ); |
288 | 288 | |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | |
302 | 302 | // If not a 200 status header, send back error. |
303 | 303 | if ( 200 != $response_code ) { |
304 | - $type = ! empty( $response_body['type'] ) ? $response_body['type'] : 'api-error'; |
|
304 | + $type = ! empty( $response_body['type'] ) ? $response_body['type'] : 'api-error'; |
|
305 | 305 | |
306 | 306 | if ( empty( $response_code ) ) { |
307 | 307 | return new WP_Error( $type, __( 'The API was unreachable.', 'google-analytics-for-wordpress' ) ); |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | // and for image linking purposes in Google Images. We use it to test outbound connections since it is run on google.com |
393 | 393 | // and is only a few bytes large. Plus on Google's main CDN so it loads in most places in 0.07 seconds or less. Perfect for our |
394 | 394 | // use case of quickly testing outbound connections. |
395 | - $testurl = ! empty( $this->testurl ) ? $this->testurl :'https://www.google.com/blank.html'; |
|
395 | + $testurl = ! empty( $this->testurl ) ? $this->testurl : 'https://www.google.com/blank.html'; |
|
396 | 396 | if ( defined( 'WP_HTTP_BLOCK_EXTERNAL' ) && WP_HTTP_BLOCK_EXTERNAL ) { |
397 | 397 | if ( defined( 'WP_ACCESSIBLE_HOSTS' ) ) { |
398 | 398 | $wp_http = new WP_Http(); |
@@ -407,7 +407,7 @@ discard block |
||
407 | 407 | 'body' => '' |
408 | 408 | ); |
409 | 409 | $response = wp_remote_get( $testurl, $params ); |
410 | - if( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) { |
|
410 | + if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) { |
|
411 | 411 | return false; |
412 | 412 | } else { |
413 | 413 | if ( is_wp_error( $response ) ) { |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | ); |
430 | 430 | $response = wp_remote_get( $testurl, $params ); |
431 | 431 | |
432 | - if( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) { |
|
432 | + if ( ! is_wp_error( $response ) && $response['response']['code'] >= 200 && $response['response']['code'] < 300 ) { |
|
433 | 433 | return false; |
434 | 434 | } else { |
435 | 435 | if ( is_wp_error( $response ) ) { |
@@ -306,7 +306,7 @@ |
||
306 | 306 | // put to result |
307 | 307 | $result->headline_types = $headline_types; |
308 | 308 | |
309 | - // Resources for more reading: |
|
309 | + // Resources for more reading: |
|
310 | 310 | // https://kopywritingkourse.com/copywriting-headlines-that-sell/ |
311 | 311 | // How To _______ That Will Help You ______ |
312 | 312 | // https://coschedule.com/blog/how-to-write-the-best-headlines-that-will-increase-traffic/ |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | namespace MonsterInsightsHeadlineToolPlugin; |
4 | 4 | |
5 | 5 | // setup defines |
6 | -define ( 'MONSTERINSIGHTS_HEADLINE_TOOL_DIR_PATH', plugin_dir_path( __FILE__ ) ); |
|
6 | +define( 'MONSTERINSIGHTS_HEADLINE_TOOL_DIR_PATH', plugin_dir_path( __FILE__ ) ); |
|
7 | 7 | |
8 | 8 | /** |
9 | 9 | * Headline Tool |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * @since 0.1 |
12 | 12 | * @author Debjit Saha |
13 | 13 | */ |
14 | -class MonsterInsightsHeadlineToolPlugin{ |
|
14 | +class MonsterInsightsHeadlineToolPlugin { |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Class Variables. |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | // get whether or not the website is up |
68 | 68 | $result = $this->get_headline_scores(); |
69 | 69 | |
70 | - if ( !empty( $result->err ) ) { |
|
70 | + if ( ! empty( $result->err ) ) { |
|
71 | 71 | $content = self::output_template( 'results-error.php', $result ); |
72 | 72 | wp_send_json_error( |
73 | 73 | array( 'html' => $content, 'analysed' => false ) |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | wp_send_json_success( |
79 | 79 | array( |
80 | 80 | 'result' => $result, |
81 | - 'analysed' => !$result->err, |
|
81 | + 'analysed' => ! $result->err, |
|
82 | 82 | 'sentence' => ucwords( wp_unslash( sanitize_text_field( $_REQUEST['q'] ) ) ), |
83 | 83 | 'score' => ( isset( $result->score ) && ! empty( $result->score ) ) ? $result->score : 0 |
84 | 84 | ) |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | function match_words( $sentence, $sentence_split, $words ) { |
95 | 95 | $ret = array(); |
96 | - foreach( $words as $wrd ) { |
|
96 | + foreach ( $words as $wrd ) { |
|
97 | 97 | // check if $wrd is a phrase |
98 | 98 | if ( strpos( $wrd, ' ' ) !== false ) { |
99 | 99 | if ( strpos( $sentence, $wrd ) !== false ) { |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | $input = preg_replace( '/[^A-Za-z0-9 ]/', '', $input ); |
126 | 126 | |
127 | 127 | // strip whitespace |
128 | - $input = preg_replace( '!\s+!', ' ', $input); |
|
128 | + $input = preg_replace( '!\s+!', ' ', $input ); |
|
129 | 129 | |
130 | 130 | // lower case |
131 | 131 | $input = strtolower( $input ); |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | // bad input |
136 | 136 | if ( ! $input || $input == ' ' || trim( $input ) == '' ) { |
137 | 137 | $result->err = true; |
138 | - $result->msg = __('Bad Input', 'google-analytics-for-wordpress'); |
|
138 | + $result->msg = __( 'Bad Input', 'google-analytics-for-wordpress' ); |
|
139 | 139 | return $result; |
140 | 140 | } |
141 | 141 | |
@@ -179,28 +179,28 @@ discard block |
||
179 | 179 | $result->common_words_per = count( $result->common_words ) / $result->word_count; |
180 | 180 | $result->uncommon_words = $this->match_words( $result->input, $result->input_array, $this->uncommon_words ); |
181 | 181 | $result->uncommon_words_per = count( $result->uncommon_words ) / $result->word_count; |
182 | - $result->word_balance = __('Can Be Improved', 'google-analytics-for-wordpress'); |
|
182 | + $result->word_balance = __( 'Can Be Improved', 'google-analytics-for-wordpress' ); |
|
183 | 183 | $result->word_balance_use = array(); |
184 | 184 | |
185 | 185 | if ( $result->emotion_words_per < 0.1 ) { |
186 | - $result->word_balance_use[] = __('emotion', 'google-analytics-for-wordpress'); |
|
186 | + $result->word_balance_use[] = __( 'emotion', 'google-analytics-for-wordpress' ); |
|
187 | 187 | } else { |
188 | 188 | $scoret = $scoret + 15; |
189 | 189 | } |
190 | 190 | |
191 | 191 | if ( $result->common_words_per < 0.2 ) { |
192 | - $result->word_balance_use[] = __('common', 'google-analytics-for-wordpress'); |
|
192 | + $result->word_balance_use[] = __( 'common', 'google-analytics-for-wordpress' ); |
|
193 | 193 | } else { |
194 | 194 | $scoret = $scoret + 11; |
195 | 195 | } |
196 | 196 | |
197 | 197 | if ( $result->uncommon_words_per < 0.1 ) { |
198 | - $result->word_balance_use[] = __('uncommon', 'google-analytics-for-wordpress'); |
|
198 | + $result->word_balance_use[] = __( 'uncommon', 'google-analytics-for-wordpress' ); |
|
199 | 199 | } else |
200 | 200 | $scoret = $scoret + 15; |
201 | 201 | |
202 | 202 | if ( count( $result->power_words ) < 1 ) { |
203 | - $result->word_balance_use[] = __('power', 'google-analytics-for-wordpress'); |
|
203 | + $result->word_balance_use[] = __( 'power', 'google-analytics-for-wordpress' ); |
|
204 | 204 | } else { |
205 | 205 | $scoret = $scoret + 19; |
206 | 206 | } |
@@ -210,7 +210,7 @@ discard block |
||
210 | 210 | $result->common_words_per >= 0.2 && |
211 | 211 | $result->uncommon_words_per >= 0.1 && |
212 | 212 | count( $result->power_words ) >= 1 ) { |
213 | - $result->word_balance = __('Perfect', 'google-analytics-for-wordpress'); |
|
213 | + $result->word_balance = __( 'Perfect', 'google-analytics-for-wordpress' ); |
|
214 | 214 | $scoret = $scoret + 3; |
215 | 215 | } |
216 | 216 | |
@@ -229,77 +229,77 @@ discard block |
||
229 | 229 | $headline_types = array(); |
230 | 230 | |
231 | 231 | // HDL type: how to, how-to, howto |
232 | - if ( strpos( $input, __('how to', 'google-analytics-for-wordpress') ) !== false || strpos( $input, __('howto', 'google-analytics-for-wordpress') ) !== false ) { |
|
233 | - $headline_types[] = __('How-To', 'google-analytics-for-wordpress'); |
|
232 | + if ( strpos( $input, __( 'how to', 'google-analytics-for-wordpress' ) ) !== false || strpos( $input, __( 'howto', 'google-analytics-for-wordpress' ) ) !== false ) { |
|
233 | + $headline_types[] = __( 'How-To', 'google-analytics-for-wordpress' ); |
|
234 | 234 | $scoret = $scoret + 7; |
235 | 235 | } |
236 | 236 | |
237 | 237 | // HDL type: numbers - numeric and alpha |
238 | 238 | $num_quantifiers = array( |
239 | - __('one', 'google-analytics-for-wordpress'), |
|
240 | - __('two', 'google-analytics-for-wordpress'), |
|
241 | - __('three', 'google-analytics-for-wordpress'), |
|
242 | - __('four', 'google-analytics-for-wordpress'), |
|
243 | - __('five', 'google-analytics-for-wordpress'), |
|
244 | - __('six', 'google-analytics-for-wordpress'), |
|
245 | - __('seven', 'google-analytics-for-wordpress'), |
|
246 | - __('eight', 'google-analytics-for-wordpress'), |
|
247 | - __('nine', 'google-analytics-for-wordpress'), |
|
248 | - __('eleven', 'google-analytics-for-wordpress'), |
|
249 | - __('twelve', 'google-analytics-for-wordpress'), |
|
250 | - __('thirt', 'google-analytics-for-wordpress'), |
|
251 | - __('fift', 'google-analytics-for-wordpress'), |
|
252 | - __('hundred', 'google-analytics-for-wordpress'), |
|
253 | - __('thousand', 'google-analytics-for-wordpress'), |
|
239 | + __( 'one', 'google-analytics-for-wordpress' ), |
|
240 | + __( 'two', 'google-analytics-for-wordpress' ), |
|
241 | + __( 'three', 'google-analytics-for-wordpress' ), |
|
242 | + __( 'four', 'google-analytics-for-wordpress' ), |
|
243 | + __( 'five', 'google-analytics-for-wordpress' ), |
|
244 | + __( 'six', 'google-analytics-for-wordpress' ), |
|
245 | + __( 'seven', 'google-analytics-for-wordpress' ), |
|
246 | + __( 'eight', 'google-analytics-for-wordpress' ), |
|
247 | + __( 'nine', 'google-analytics-for-wordpress' ), |
|
248 | + __( 'eleven', 'google-analytics-for-wordpress' ), |
|
249 | + __( 'twelve', 'google-analytics-for-wordpress' ), |
|
250 | + __( 'thirt', 'google-analytics-for-wordpress' ), |
|
251 | + __( 'fift', 'google-analytics-for-wordpress' ), |
|
252 | + __( 'hundred', 'google-analytics-for-wordpress' ), |
|
253 | + __( 'thousand', 'google-analytics-for-wordpress' ), |
|
254 | 254 | ); |
255 | 255 | |
256 | 256 | $list_words = array_intersect( $input_array, $num_quantifiers ); |
257 | 257 | if ( preg_match( '~[0-9]+~', $input ) || ! empty ( $list_words ) ) { |
258 | - $headline_types[] = __('List', 'google-analytics-for-wordpress'); |
|
258 | + $headline_types[] = __( 'List', 'google-analytics-for-wordpress' ); |
|
259 | 259 | $scoret = $scoret + 7; |
260 | 260 | } |
261 | 261 | |
262 | 262 | // HDL type: Question |
263 | 263 | $qn_quantifiers = array( |
264 | - __('where', 'google-analytics-for-wordpress'), |
|
265 | - __('when', 'google-analytics-for-wordpress'), |
|
266 | - __('how', 'google-analytics-for-wordpress'), |
|
267 | - __('what', 'google-analytics-for-wordpress'), |
|
268 | - __('have', 'google-analytics-for-wordpress'), |
|
269 | - __('has', 'google-analytics-for-wordpress'), |
|
270 | - __('does', 'google-analytics-for-wordpress'), |
|
271 | - __('do', 'google-analytics-for-wordpress'), |
|
272 | - __('can', 'google-analytics-for-wordpress'), |
|
273 | - __('are', 'google-analytics-for-wordpress'), |
|
274 | - __('will', 'google-analytics-for-wordpress'), |
|
264 | + __( 'where', 'google-analytics-for-wordpress' ), |
|
265 | + __( 'when', 'google-analytics-for-wordpress' ), |
|
266 | + __( 'how', 'google-analytics-for-wordpress' ), |
|
267 | + __( 'what', 'google-analytics-for-wordpress' ), |
|
268 | + __( 'have', 'google-analytics-for-wordpress' ), |
|
269 | + __( 'has', 'google-analytics-for-wordpress' ), |
|
270 | + __( 'does', 'google-analytics-for-wordpress' ), |
|
271 | + __( 'do', 'google-analytics-for-wordpress' ), |
|
272 | + __( 'can', 'google-analytics-for-wordpress' ), |
|
273 | + __( 'are', 'google-analytics-for-wordpress' ), |
|
274 | + __( 'will', 'google-analytics-for-wordpress' ), |
|
275 | 275 | ); |
276 | 276 | $qn_quantifiers_sub = array( |
277 | - __('you', 'google-analytics-for-wordpress'), |
|
278 | - __('they', 'google-analytics-for-wordpress'), |
|
279 | - __('he', 'google-analytics-for-wordpress'), |
|
280 | - __('she', 'google-analytics-for-wordpress'), |
|
281 | - __('your', 'google-analytics-for-wordpress'), |
|
282 | - __('it', 'google-analytics-for-wordpress'), |
|
283 | - __('they', 'google-analytics-for-wordpress'), |
|
284 | - __('my', 'google-analytics-for-wordpress'), |
|
285 | - __('have', 'google-analytics-for-wordpress'), |
|
286 | - __('has', 'google-analytics-for-wordpress'), |
|
287 | - __('does', 'google-analytics-for-wordpress'), |
|
288 | - __('do', 'google-analytics-for-wordpress'), |
|
289 | - __('can', 'google-analytics-for-wordpress'), |
|
290 | - __('are', 'google-analytics-for-wordpress'), |
|
291 | - __('will', 'google-analytics-for-wordpress'), |
|
277 | + __( 'you', 'google-analytics-for-wordpress' ), |
|
278 | + __( 'they', 'google-analytics-for-wordpress' ), |
|
279 | + __( 'he', 'google-analytics-for-wordpress' ), |
|
280 | + __( 'she', 'google-analytics-for-wordpress' ), |
|
281 | + __( 'your', 'google-analytics-for-wordpress' ), |
|
282 | + __( 'it', 'google-analytics-for-wordpress' ), |
|
283 | + __( 'they', 'google-analytics-for-wordpress' ), |
|
284 | + __( 'my', 'google-analytics-for-wordpress' ), |
|
285 | + __( 'have', 'google-analytics-for-wordpress' ), |
|
286 | + __( 'has', 'google-analytics-for-wordpress' ), |
|
287 | + __( 'does', 'google-analytics-for-wordpress' ), |
|
288 | + __( 'do', 'google-analytics-for-wordpress' ), |
|
289 | + __( 'can', 'google-analytics-for-wordpress' ), |
|
290 | + __( 'are', 'google-analytics-for-wordpress' ), |
|
291 | + __( 'will', 'google-analytics-for-wordpress' ), |
|
292 | 292 | ); |
293 | 293 | if ( in_array( $input_array[0], $qn_quantifiers ) ) { |
294 | 294 | if ( in_array( $input_array[1], $qn_quantifiers_sub ) ) { |
295 | - $headline_types[] = __('Question', 'google-analytics-for-wordpress'); |
|
295 | + $headline_types[] = __( 'Question', 'google-analytics-for-wordpress' ); |
|
296 | 296 | $scoret = $scoret + 7; |
297 | 297 | } |
298 | 298 | } |
299 | 299 | |
300 | 300 | // General headline type |
301 | 301 | if ( empty( $headline_types ) ) { |
302 | - $headline_types[] = __('General', 'google-analytics-for-wordpress'); |
|
302 | + $headline_types[] = __( 'General', 'google-analytics-for-wordpress' ); |
|
303 | 303 | $scoret = $scoret + 5; |
304 | 304 | } |
305 | 305 | |
@@ -346,7 +346,7 @@ discard block |
||
346 | 346 | } elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { |
347 | 347 | //to check ip is pass from proxy |
348 | 348 | $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; |
349 | - } elseif( ! empty( $_SERVER['REMOTE_ADDR'] ) ) { |
|
349 | + } elseif ( ! empty( $_SERVER['REMOTE_ADDR'] ) ) { |
|
350 | 350 | $ip = $_SERVER['REMOTE_ADDR']; |
351 | 351 | } |
352 | 352 | |
@@ -364,287 +364,287 @@ discard block |
||
364 | 364 | */ |
365 | 365 | function emotion_power_words() { |
366 | 366 | return array( |
367 | - __("destroy", "google-analytics-for-wordpress"), |
|
368 | - __("extra", "google-analytics-for-wordpress"), |
|
369 | - __("in a", "google-analytics-for-wordpress"), |
|
370 | - __("devastating", "google-analytics-for-wordpress"), |
|
371 | - __("eye-opening", "google-analytics-for-wordpress"), |
|
372 | - __("gift", "google-analytics-for-wordpress"), |
|
373 | - __("in the world", "google-analytics-for-wordpress"), |
|
374 | - __("devoted", "google-analytics-for-wordpress"), |
|
375 | - __("fail", "google-analytics-for-wordpress"), |
|
376 | - __("in the", "google-analytics-for-wordpress"), |
|
377 | - __("faith", "google-analytics-for-wordpress"), |
|
378 | - __("grateful", "google-analytics-for-wordpress"), |
|
379 | - __("inexpensive", "google-analytics-for-wordpress"), |
|
380 | - __("dirty", "google-analytics-for-wordpress"), |
|
381 | - __("famous", "google-analytics-for-wordpress"), |
|
382 | - __("disastrous", "google-analytics-for-wordpress"), |
|
383 | - __("fantastic", "google-analytics-for-wordpress"), |
|
384 | - __("greed", "google-analytics-for-wordpress"), |
|
385 | - __("grit", "google-analytics-for-wordpress"), |
|
386 | - __("insanely", "google-analytics-for-wordpress"), |
|
387 | - __("disgusting", "google-analytics-for-wordpress"), |
|
388 | - __("fearless", "google-analytics-for-wordpress"), |
|
389 | - __("disinformation", "google-analytics-for-wordpress"), |
|
390 | - __("feast", "google-analytics-for-wordpress"), |
|
391 | - __("insidious", "google-analytics-for-wordpress"), |
|
392 | - __("dollar", "google-analytics-for-wordpress"), |
|
393 | - __("feeble", "google-analytics-for-wordpress"), |
|
394 | - __("gullible", "google-analytics-for-wordpress"), |
|
395 | - __("double", "google-analytics-for-wordpress"), |
|
396 | - __("fire", "google-analytics-for-wordpress"), |
|
397 | - __("hack", "google-analytics-for-wordpress"), |
|
398 | - __("fleece", "google-analytics-for-wordpress"), |
|
399 | - __("had enough", "google-analytics-for-wordpress"), |
|
400 | - __("invasion", "google-analytics-for-wordpress"), |
|
401 | - __("drowning", "google-analytics-for-wordpress"), |
|
402 | - __("floundering", "google-analytics-for-wordpress"), |
|
403 | - __("happy", "google-analytics-for-wordpress"), |
|
404 | - __("ironclad", "google-analytics-for-wordpress"), |
|
405 | - __("dumb", "google-analytics-for-wordpress"), |
|
406 | - __("flush", "google-analytics-for-wordpress"), |
|
407 | - __("hate", "google-analytics-for-wordpress"), |
|
408 | - __("irresistibly", "google-analytics-for-wordpress"), |
|
409 | - __("hazardous", "google-analytics-for-wordpress"), |
|
410 | - __("is the", "google-analytics-for-wordpress"), |
|
411 | - __("fool", "google-analytics-for-wordpress"), |
|
412 | - __("is what happens when", "google-analytics-for-wordpress"), |
|
413 | - __("fooled", "google-analytics-for-wordpress"), |
|
414 | - __("helpless", "google-analytics-for-wordpress"), |
|
415 | - __("it looks like a", "google-analytics-for-wordpress"), |
|
416 | - __("embarrass", "google-analytics-for-wordpress"), |
|
417 | - __("for the first time", "google-analytics-for-wordpress"), |
|
418 | - __("help are the", "google-analytics-for-wordpress"), |
|
419 | - __("jackpot", "google-analytics-for-wordpress"), |
|
420 | - __("forbidden", "google-analytics-for-wordpress"), |
|
421 | - __("hidden", "google-analytics-for-wordpress"), |
|
422 | - __("jail", "google-analytics-for-wordpress"), |
|
423 | - __("empower", "google-analytics-for-wordpress"), |
|
424 | - __("force-fed", "google-analytics-for-wordpress"), |
|
425 | - __("high", "google-analytics-for-wordpress"), |
|
426 | - __("jaw-dropping", "google-analytics-for-wordpress"), |
|
427 | - __("forgotten", "google-analytics-for-wordpress"), |
|
428 | - __("jeopardy", "google-analytics-for-wordpress"), |
|
429 | - __("energize", "google-analytics-for-wordpress"), |
|
430 | - __("hoax", "google-analytics-for-wordpress"), |
|
431 | - __("jubilant", "google-analytics-for-wordpress"), |
|
432 | - __("foul", "google-analytics-for-wordpress"), |
|
433 | - __("hope", "google-analytics-for-wordpress"), |
|
434 | - __("killer", "google-analytics-for-wordpress"), |
|
435 | - __("frantic", "google-analytics-for-wordpress"), |
|
436 | - __("horrific", "google-analytics-for-wordpress"), |
|
437 | - __("know it all", "google-analytics-for-wordpress"), |
|
438 | - __("epic", "google-analytics-for-wordpress"), |
|
439 | - __("how to make", "google-analytics-for-wordpress"), |
|
440 | - __("evil", "google-analytics-for-wordpress"), |
|
441 | - __("freebie", "google-analytics-for-wordpress"), |
|
442 | - __("frenzy", "google-analytics-for-wordpress"), |
|
443 | - __("hurricane", "google-analytics-for-wordpress"), |
|
444 | - __("excited", "google-analytics-for-wordpress"), |
|
445 | - __("fresh on the mind", "google-analytics-for-wordpress"), |
|
446 | - __("frightening", "google-analytics-for-wordpress"), |
|
447 | - __("hypnotic", "google-analytics-for-wordpress"), |
|
448 | - __("lawsuit", "google-analytics-for-wordpress"), |
|
449 | - __("frugal", "google-analytics-for-wordpress"), |
|
450 | - __("illegal", "google-analytics-for-wordpress"), |
|
451 | - __("fulfill", "google-analytics-for-wordpress"), |
|
452 | - __("lick", "google-analytics-for-wordpress"), |
|
453 | - __("explode", "google-analytics-for-wordpress"), |
|
454 | - __("lies", "google-analytics-for-wordpress"), |
|
455 | - __("exposed", "google-analytics-for-wordpress"), |
|
456 | - __("gambling", "google-analytics-for-wordpress"), |
|
457 | - __("like a normal", "google-analytics-for-wordpress"), |
|
458 | - __("nightmare", "google-analytics-for-wordpress"), |
|
459 | - __("results", "google-analytics-for-wordpress"), |
|
460 | - __("line", "google-analytics-for-wordpress"), |
|
461 | - __("no good", "google-analytics-for-wordpress"), |
|
462 | - __("pound", "google-analytics-for-wordpress"), |
|
463 | - __("loathsome", "google-analytics-for-wordpress"), |
|
464 | - __("no questions asked", "google-analytics-for-wordpress"), |
|
465 | - __("revenge", "google-analytics-for-wordpress"), |
|
466 | - __("lonely", "google-analytics-for-wordpress"), |
|
467 | - __("looks like a", "google-analytics-for-wordpress"), |
|
468 | - __("obnoxious", "google-analytics-for-wordpress"), |
|
469 | - __("preposterous", "google-analytics-for-wordpress"), |
|
470 | - __("revolting", "google-analytics-for-wordpress"), |
|
471 | - __("looming", "google-analytics-for-wordpress"), |
|
472 | - __("priced", "google-analytics-for-wordpress"), |
|
473 | - __("lost", "google-analytics-for-wordpress"), |
|
474 | - __("prison", "google-analytics-for-wordpress"), |
|
475 | - __("lowest", "google-analytics-for-wordpress"), |
|
476 | - __("of the", "google-analytics-for-wordpress"), |
|
477 | - __("privacy", "google-analytics-for-wordpress"), |
|
478 | - __("rich", "google-analytics-for-wordpress"), |
|
479 | - __("lunatic", "google-analytics-for-wordpress"), |
|
480 | - __("off-limits", "google-analytics-for-wordpress"), |
|
481 | - __("private", "google-analytics-for-wordpress"), |
|
482 | - __("risky", "google-analytics-for-wordpress"), |
|
483 | - __("lurking", "google-analytics-for-wordpress"), |
|
484 | - __("offer", "google-analytics-for-wordpress"), |
|
485 | - __("prize", "google-analytics-for-wordpress"), |
|
486 | - __("ruthless", "google-analytics-for-wordpress"), |
|
487 | - __("lust", "google-analytics-for-wordpress"), |
|
488 | - __("official", "google-analytics-for-wordpress"), |
|
489 | - __("luxurious", "google-analytics-for-wordpress"), |
|
490 | - __("on the", "google-analytics-for-wordpress"), |
|
491 | - __("profit", "google-analytics-for-wordpress"), |
|
492 | - __("scary", "google-analytics-for-wordpress"), |
|
493 | - __("lying", "google-analytics-for-wordpress"), |
|
494 | - __("outlawed", "google-analytics-for-wordpress"), |
|
495 | - __("protected", "google-analytics-for-wordpress"), |
|
496 | - __("scream", "google-analytics-for-wordpress"), |
|
497 | - __("searing", "google-analytics-for-wordpress"), |
|
498 | - __("overcome", "google-analytics-for-wordpress"), |
|
499 | - __("provocative", "google-analytics-for-wordpress"), |
|
500 | - __("make you", "google-analytics-for-wordpress"), |
|
501 | - __("painful", "google-analytics-for-wordpress"), |
|
502 | - __("pummel", "google-analytics-for-wordpress"), |
|
503 | - __("secure", "google-analytics-for-wordpress"), |
|
504 | - __("pale", "google-analytics-for-wordpress"), |
|
505 | - __("punish", "google-analytics-for-wordpress"), |
|
506 | - __("marked down", "google-analytics-for-wordpress"), |
|
507 | - __("panic", "google-analytics-for-wordpress"), |
|
508 | - __("quadruple", "google-analytics-for-wordpress"), |
|
509 | - __("secutively", "google-analytics-for-wordpress"), |
|
510 | - __("massive", "google-analytics-for-wordpress"), |
|
511 | - __("pay zero", "google-analytics-for-wordpress"), |
|
512 | - __("seize", "google-analytics-for-wordpress"), |
|
513 | - __("meltdown", "google-analytics-for-wordpress"), |
|
514 | - __("payback", "google-analytics-for-wordpress"), |
|
515 | - __("might look like a", "google-analytics-for-wordpress"), |
|
516 | - __("peril", "google-analytics-for-wordpress"), |
|
517 | - __("mind-blowing", "google-analytics-for-wordpress"), |
|
518 | - __("shameless", "google-analytics-for-wordpress"), |
|
519 | - __("minute", "google-analytics-for-wordpress"), |
|
520 | - __("rave", "google-analytics-for-wordpress"), |
|
521 | - __("shatter", "google-analytics-for-wordpress"), |
|
522 | - __("piranha", "google-analytics-for-wordpress"), |
|
523 | - __("reckoning", "google-analytics-for-wordpress"), |
|
524 | - __("shellacking", "google-analytics-for-wordpress"), |
|
525 | - __("mired", "google-analytics-for-wordpress"), |
|
526 | - __("pitfall", "google-analytics-for-wordpress"), |
|
527 | - __("reclaim", "google-analytics-for-wordpress"), |
|
528 | - __("mistakes", "google-analytics-for-wordpress"), |
|
529 | - __("plague", "google-analytics-for-wordpress"), |
|
530 | - __("sick and tired", "google-analytics-for-wordpress"), |
|
531 | - __("money", "google-analytics-for-wordpress"), |
|
532 | - __("played", "google-analytics-for-wordpress"), |
|
533 | - __("refugee", "google-analytics-for-wordpress"), |
|
534 | - __("silly", "google-analytics-for-wordpress"), |
|
535 | - __("money-grubbing", "google-analytics-for-wordpress"), |
|
536 | - __("pluck", "google-analytics-for-wordpress"), |
|
537 | - __("refund", "google-analytics-for-wordpress"), |
|
538 | - __("moneyback", "google-analytics-for-wordpress"), |
|
539 | - __("plummet", "google-analytics-for-wordpress"), |
|
540 | - __("plunge", "google-analytics-for-wordpress"), |
|
541 | - __("murder", "google-analytics-for-wordpress"), |
|
542 | - __("pointless", "google-analytics-for-wordpress"), |
|
543 | - __("sinful", "google-analytics-for-wordpress"), |
|
544 | - __("myths", "google-analytics-for-wordpress"), |
|
545 | - __("poor", "google-analytics-for-wordpress"), |
|
546 | - __("remarkably", "google-analytics-for-wordpress"), |
|
547 | - __("six-figure", "google-analytics-for-wordpress"), |
|
548 | - __("never again", "google-analytics-for-wordpress"), |
|
549 | - __("research", "google-analytics-for-wordpress"), |
|
550 | - __("surrender", "google-analytics-for-wordpress"), |
|
551 | - __("to the", "google-analytics-for-wordpress"), |
|
552 | - __("varify", "google-analytics-for-wordpress"), |
|
553 | - __("skyrocket", "google-analytics-for-wordpress"), |
|
554 | - __("toxic", "google-analytics-for-wordpress"), |
|
555 | - __("vibrant", "google-analytics-for-wordpress"), |
|
556 | - __("slaughter", "google-analytics-for-wordpress"), |
|
557 | - __("swindle", "google-analytics-for-wordpress"), |
|
558 | - __("trap", "google-analytics-for-wordpress"), |
|
559 | - __("victim", "google-analytics-for-wordpress"), |
|
560 | - __("sleazy", "google-analytics-for-wordpress"), |
|
561 | - __("taboo", "google-analytics-for-wordpress"), |
|
562 | - __("treasure", "google-analytics-for-wordpress"), |
|
563 | - __("victory", "google-analytics-for-wordpress"), |
|
564 | - __("smash", "google-analytics-for-wordpress"), |
|
565 | - __("tailspin", "google-analytics-for-wordpress"), |
|
566 | - __("vindication", "google-analytics-for-wordpress"), |
|
567 | - __("smug", "google-analytics-for-wordpress"), |
|
568 | - __("tank", "google-analytics-for-wordpress"), |
|
569 | - __("triple", "google-analytics-for-wordpress"), |
|
570 | - __("viral", "google-analytics-for-wordpress"), |
|
571 | - __("smuggled", "google-analytics-for-wordpress"), |
|
572 | - __("tantalizing", "google-analytics-for-wordpress"), |
|
573 | - __("triumph", "google-analytics-for-wordpress"), |
|
574 | - __("volatile", "google-analytics-for-wordpress"), |
|
575 | - __("sniveling", "google-analytics-for-wordpress"), |
|
576 | - __("targeted", "google-analytics-for-wordpress"), |
|
577 | - __("truth", "google-analytics-for-wordpress"), |
|
578 | - __("vulnerable", "google-analytics-for-wordpress"), |
|
579 | - __("snob", "google-analytics-for-wordpress"), |
|
580 | - __("tawdry", "google-analytics-for-wordpress"), |
|
581 | - __("try before you buy", "google-analytics-for-wordpress"), |
|
582 | - __("tech", "google-analytics-for-wordpress"), |
|
583 | - __("turn the tables", "google-analytics-for-wordpress"), |
|
584 | - __("wanton", "google-analytics-for-wordpress"), |
|
585 | - __("soaring", "google-analytics-for-wordpress"), |
|
586 | - __("warning", "google-analytics-for-wordpress"), |
|
587 | - __("teetering", "google-analytics-for-wordpress"), |
|
588 | - __("unauthorized", "google-analytics-for-wordpress"), |
|
589 | - __("spectacular", "google-analytics-for-wordpress"), |
|
590 | - __("temporary fix", "google-analytics-for-wordpress"), |
|
591 | - __("unbelievably", "google-analytics-for-wordpress"), |
|
592 | - __("spine", "google-analytics-for-wordpress"), |
|
593 | - __("tempting", "google-analytics-for-wordpress"), |
|
594 | - __("uncommonly", "google-analytics-for-wordpress"), |
|
595 | - __("what happened", "google-analytics-for-wordpress"), |
|
596 | - __("spirit", "google-analytics-for-wordpress"), |
|
597 | - __("what happens when", "google-analytics-for-wordpress"), |
|
598 | - __("terror", "google-analytics-for-wordpress"), |
|
599 | - __("under", "google-analytics-for-wordpress"), |
|
600 | - __("what happens", "google-analytics-for-wordpress"), |
|
601 | - __("staggering", "google-analytics-for-wordpress"), |
|
602 | - __("underhanded", "google-analytics-for-wordpress"), |
|
603 | - __("what this", "google-analytics-for-wordpress"), |
|
604 | - __("that will make you", "google-analytics-for-wordpress"), |
|
605 | - __("undo","when you see", "google-analytics-for-wordpress"), |
|
606 | - __("that will make", "google-analytics-for-wordpress"), |
|
607 | - __("unexpected", "google-analytics-for-wordpress"), |
|
608 | - __("when you", "google-analytics-for-wordpress"), |
|
609 | - __("strangle", "google-analytics-for-wordpress"), |
|
610 | - __("that will", "google-analytics-for-wordpress"), |
|
611 | - __("whip", "google-analytics-for-wordpress"), |
|
612 | - __("the best", "google-analytics-for-wordpress"), |
|
613 | - __("whopping", "google-analytics-for-wordpress"), |
|
614 | - __("stuck up", "google-analytics-for-wordpress"), |
|
615 | - __("the ranking of", "google-analytics-for-wordpress"), |
|
616 | - __("wicked", "google-analytics-for-wordpress"), |
|
617 | - __("stunning", "google-analytics-for-wordpress"), |
|
618 | - __("the most", "google-analytics-for-wordpress"), |
|
619 | - __("will make you", "google-analytics-for-wordpress"), |
|
620 | - __("stupid", "google-analytics-for-wordpress"), |
|
621 | - __("the reason why is", "google-analytics-for-wordpress"), |
|
622 | - __("unscrupulous", "google-analytics-for-wordpress"), |
|
623 | - __("thing ive ever seen", "google-analytics-for-wordpress"), |
|
624 | - __("withheld", "google-analytics-for-wordpress"), |
|
625 | - __("this is the", "google-analytics-for-wordpress"), |
|
626 | - __("this is what happens", "google-analytics-for-wordpress"), |
|
627 | - __("unusually", "google-analytics-for-wordpress"), |
|
628 | - __("wondrous", "google-analytics-for-wordpress"), |
|
629 | - __("this is what", "google-analytics-for-wordpress"), |
|
630 | - __("uplifting", "google-analytics-for-wordpress"), |
|
631 | - __("worry", "google-analytics-for-wordpress"), |
|
632 | - __("sure", "google-analytics-for-wordpress"), |
|
633 | - __("this is", "google-analytics-for-wordpress"), |
|
634 | - __("wounded", "google-analytics-for-wordpress"), |
|
635 | - __("surge", "google-analytics-for-wordpress"), |
|
636 | - __("thrilled", "google-analytics-for-wordpress"), |
|
637 | - __("you need to know", "google-analytics-for-wordpress"), |
|
638 | - __("thrilling", "google-analytics-for-wordpress"), |
|
639 | - __("valor", "google-analytics-for-wordpress"), |
|
640 | - __("you need to", "google-analytics-for-wordpress"), |
|
641 | - __("you see what", "google-analytics-for-wordpress"), |
|
642 | - __("surprising", "google-analytics-for-wordpress"), |
|
643 | - __("tired", "google-analytics-for-wordpress"), |
|
644 | - __("you see", "google-analytics-for-wordpress"), |
|
645 | - __("surprisingly", "google-analytics-for-wordpress"), |
|
646 | - __("to be", "google-analytics-for-wordpress"), |
|
647 | - __("vaporize", "google-analytics-for-wordpress"), |
|
367 | + __( "destroy", "google-analytics-for-wordpress" ), |
|
368 | + __( "extra", "google-analytics-for-wordpress" ), |
|
369 | + __( "in a", "google-analytics-for-wordpress" ), |
|
370 | + __( "devastating", "google-analytics-for-wordpress" ), |
|
371 | + __( "eye-opening", "google-analytics-for-wordpress" ), |
|
372 | + __( "gift", "google-analytics-for-wordpress" ), |
|
373 | + __( "in the world", "google-analytics-for-wordpress" ), |
|
374 | + __( "devoted", "google-analytics-for-wordpress" ), |
|
375 | + __( "fail", "google-analytics-for-wordpress" ), |
|
376 | + __( "in the", "google-analytics-for-wordpress" ), |
|
377 | + __( "faith", "google-analytics-for-wordpress" ), |
|
378 | + __( "grateful", "google-analytics-for-wordpress" ), |
|
379 | + __( "inexpensive", "google-analytics-for-wordpress" ), |
|
380 | + __( "dirty", "google-analytics-for-wordpress" ), |
|
381 | + __( "famous", "google-analytics-for-wordpress" ), |
|
382 | + __( "disastrous", "google-analytics-for-wordpress" ), |
|
383 | + __( "fantastic", "google-analytics-for-wordpress" ), |
|
384 | + __( "greed", "google-analytics-for-wordpress" ), |
|
385 | + __( "grit", "google-analytics-for-wordpress" ), |
|
386 | + __( "insanely", "google-analytics-for-wordpress" ), |
|
387 | + __( "disgusting", "google-analytics-for-wordpress" ), |
|
388 | + __( "fearless", "google-analytics-for-wordpress" ), |
|
389 | + __( "disinformation", "google-analytics-for-wordpress" ), |
|
390 | + __( "feast", "google-analytics-for-wordpress" ), |
|
391 | + __( "insidious", "google-analytics-for-wordpress" ), |
|
392 | + __( "dollar", "google-analytics-for-wordpress" ), |
|
393 | + __( "feeble", "google-analytics-for-wordpress" ), |
|
394 | + __( "gullible", "google-analytics-for-wordpress" ), |
|
395 | + __( "double", "google-analytics-for-wordpress" ), |
|
396 | + __( "fire", "google-analytics-for-wordpress" ), |
|
397 | + __( "hack", "google-analytics-for-wordpress" ), |
|
398 | + __( "fleece", "google-analytics-for-wordpress" ), |
|
399 | + __( "had enough", "google-analytics-for-wordpress" ), |
|
400 | + __( "invasion", "google-analytics-for-wordpress" ), |
|
401 | + __( "drowning", "google-analytics-for-wordpress" ), |
|
402 | + __( "floundering", "google-analytics-for-wordpress" ), |
|
403 | + __( "happy", "google-analytics-for-wordpress" ), |
|
404 | + __( "ironclad", "google-analytics-for-wordpress" ), |
|
405 | + __( "dumb", "google-analytics-for-wordpress" ), |
|
406 | + __( "flush", "google-analytics-for-wordpress" ), |
|
407 | + __( "hate", "google-analytics-for-wordpress" ), |
|
408 | + __( "irresistibly", "google-analytics-for-wordpress" ), |
|
409 | + __( "hazardous", "google-analytics-for-wordpress" ), |
|
410 | + __( "is the", "google-analytics-for-wordpress" ), |
|
411 | + __( "fool", "google-analytics-for-wordpress" ), |
|
412 | + __( "is what happens when", "google-analytics-for-wordpress" ), |
|
413 | + __( "fooled", "google-analytics-for-wordpress" ), |
|
414 | + __( "helpless", "google-analytics-for-wordpress" ), |
|
415 | + __( "it looks like a", "google-analytics-for-wordpress" ), |
|
416 | + __( "embarrass", "google-analytics-for-wordpress" ), |
|
417 | + __( "for the first time", "google-analytics-for-wordpress" ), |
|
418 | + __( "help are the", "google-analytics-for-wordpress" ), |
|
419 | + __( "jackpot", "google-analytics-for-wordpress" ), |
|
420 | + __( "forbidden", "google-analytics-for-wordpress" ), |
|
421 | + __( "hidden", "google-analytics-for-wordpress" ), |
|
422 | + __( "jail", "google-analytics-for-wordpress" ), |
|
423 | + __( "empower", "google-analytics-for-wordpress" ), |
|
424 | + __( "force-fed", "google-analytics-for-wordpress" ), |
|
425 | + __( "high", "google-analytics-for-wordpress" ), |
|
426 | + __( "jaw-dropping", "google-analytics-for-wordpress" ), |
|
427 | + __( "forgotten", "google-analytics-for-wordpress" ), |
|
428 | + __( "jeopardy", "google-analytics-for-wordpress" ), |
|
429 | + __( "energize", "google-analytics-for-wordpress" ), |
|
430 | + __( "hoax", "google-analytics-for-wordpress" ), |
|
431 | + __( "jubilant", "google-analytics-for-wordpress" ), |
|
432 | + __( "foul", "google-analytics-for-wordpress" ), |
|
433 | + __( "hope", "google-analytics-for-wordpress" ), |
|
434 | + __( "killer", "google-analytics-for-wordpress" ), |
|
435 | + __( "frantic", "google-analytics-for-wordpress" ), |
|
436 | + __( "horrific", "google-analytics-for-wordpress" ), |
|
437 | + __( "know it all", "google-analytics-for-wordpress" ), |
|
438 | + __( "epic", "google-analytics-for-wordpress" ), |
|
439 | + __( "how to make", "google-analytics-for-wordpress" ), |
|
440 | + __( "evil", "google-analytics-for-wordpress" ), |
|
441 | + __( "freebie", "google-analytics-for-wordpress" ), |
|
442 | + __( "frenzy", "google-analytics-for-wordpress" ), |
|
443 | + __( "hurricane", "google-analytics-for-wordpress" ), |
|
444 | + __( "excited", "google-analytics-for-wordpress" ), |
|
445 | + __( "fresh on the mind", "google-analytics-for-wordpress" ), |
|
446 | + __( "frightening", "google-analytics-for-wordpress" ), |
|
447 | + __( "hypnotic", "google-analytics-for-wordpress" ), |
|
448 | + __( "lawsuit", "google-analytics-for-wordpress" ), |
|
449 | + __( "frugal", "google-analytics-for-wordpress" ), |
|
450 | + __( "illegal", "google-analytics-for-wordpress" ), |
|
451 | + __( "fulfill", "google-analytics-for-wordpress" ), |
|
452 | + __( "lick", "google-analytics-for-wordpress" ), |
|
453 | + __( "explode", "google-analytics-for-wordpress" ), |
|
454 | + __( "lies", "google-analytics-for-wordpress" ), |
|
455 | + __( "exposed", "google-analytics-for-wordpress" ), |
|
456 | + __( "gambling", "google-analytics-for-wordpress" ), |
|
457 | + __( "like a normal", "google-analytics-for-wordpress" ), |
|
458 | + __( "nightmare", "google-analytics-for-wordpress" ), |
|
459 | + __( "results", "google-analytics-for-wordpress" ), |
|
460 | + __( "line", "google-analytics-for-wordpress" ), |
|
461 | + __( "no good", "google-analytics-for-wordpress" ), |
|
462 | + __( "pound", "google-analytics-for-wordpress" ), |
|
463 | + __( "loathsome", "google-analytics-for-wordpress" ), |
|
464 | + __( "no questions asked", "google-analytics-for-wordpress" ), |
|
465 | + __( "revenge", "google-analytics-for-wordpress" ), |
|
466 | + __( "lonely", "google-analytics-for-wordpress" ), |
|
467 | + __( "looks like a", "google-analytics-for-wordpress" ), |
|
468 | + __( "obnoxious", "google-analytics-for-wordpress" ), |
|
469 | + __( "preposterous", "google-analytics-for-wordpress" ), |
|
470 | + __( "revolting", "google-analytics-for-wordpress" ), |
|
471 | + __( "looming", "google-analytics-for-wordpress" ), |
|
472 | + __( "priced", "google-analytics-for-wordpress" ), |
|
473 | + __( "lost", "google-analytics-for-wordpress" ), |
|
474 | + __( "prison", "google-analytics-for-wordpress" ), |
|
475 | + __( "lowest", "google-analytics-for-wordpress" ), |
|
476 | + __( "of the", "google-analytics-for-wordpress" ), |
|
477 | + __( "privacy", "google-analytics-for-wordpress" ), |
|
478 | + __( "rich", "google-analytics-for-wordpress" ), |
|
479 | + __( "lunatic", "google-analytics-for-wordpress" ), |
|
480 | + __( "off-limits", "google-analytics-for-wordpress" ), |
|
481 | + __( "private", "google-analytics-for-wordpress" ), |
|
482 | + __( "risky", "google-analytics-for-wordpress" ), |
|
483 | + __( "lurking", "google-analytics-for-wordpress" ), |
|
484 | + __( "offer", "google-analytics-for-wordpress" ), |
|
485 | + __( "prize", "google-analytics-for-wordpress" ), |
|
486 | + __( "ruthless", "google-analytics-for-wordpress" ), |
|
487 | + __( "lust", "google-analytics-for-wordpress" ), |
|
488 | + __( "official", "google-analytics-for-wordpress" ), |
|
489 | + __( "luxurious", "google-analytics-for-wordpress" ), |
|
490 | + __( "on the", "google-analytics-for-wordpress" ), |
|
491 | + __( "profit", "google-analytics-for-wordpress" ), |
|
492 | + __( "scary", "google-analytics-for-wordpress" ), |
|
493 | + __( "lying", "google-analytics-for-wordpress" ), |
|
494 | + __( "outlawed", "google-analytics-for-wordpress" ), |
|
495 | + __( "protected", "google-analytics-for-wordpress" ), |
|
496 | + __( "scream", "google-analytics-for-wordpress" ), |
|
497 | + __( "searing", "google-analytics-for-wordpress" ), |
|
498 | + __( "overcome", "google-analytics-for-wordpress" ), |
|
499 | + __( "provocative", "google-analytics-for-wordpress" ), |
|
500 | + __( "make you", "google-analytics-for-wordpress" ), |
|
501 | + __( "painful", "google-analytics-for-wordpress" ), |
|
502 | + __( "pummel", "google-analytics-for-wordpress" ), |
|
503 | + __( "secure", "google-analytics-for-wordpress" ), |
|
504 | + __( "pale", "google-analytics-for-wordpress" ), |
|
505 | + __( "punish", "google-analytics-for-wordpress" ), |
|
506 | + __( "marked down", "google-analytics-for-wordpress" ), |
|
507 | + __( "panic", "google-analytics-for-wordpress" ), |
|
508 | + __( "quadruple", "google-analytics-for-wordpress" ), |
|
509 | + __( "secutively", "google-analytics-for-wordpress" ), |
|
510 | + __( "massive", "google-analytics-for-wordpress" ), |
|
511 | + __( "pay zero", "google-analytics-for-wordpress" ), |
|
512 | + __( "seize", "google-analytics-for-wordpress" ), |
|
513 | + __( "meltdown", "google-analytics-for-wordpress" ), |
|
514 | + __( "payback", "google-analytics-for-wordpress" ), |
|
515 | + __( "might look like a", "google-analytics-for-wordpress" ), |
|
516 | + __( "peril", "google-analytics-for-wordpress" ), |
|
517 | + __( "mind-blowing", "google-analytics-for-wordpress" ), |
|
518 | + __( "shameless", "google-analytics-for-wordpress" ), |
|
519 | + __( "minute", "google-analytics-for-wordpress" ), |
|
520 | + __( "rave", "google-analytics-for-wordpress" ), |
|
521 | + __( "shatter", "google-analytics-for-wordpress" ), |
|
522 | + __( "piranha", "google-analytics-for-wordpress" ), |
|
523 | + __( "reckoning", "google-analytics-for-wordpress" ), |
|
524 | + __( "shellacking", "google-analytics-for-wordpress" ), |
|
525 | + __( "mired", "google-analytics-for-wordpress" ), |
|
526 | + __( "pitfall", "google-analytics-for-wordpress" ), |
|
527 | + __( "reclaim", "google-analytics-for-wordpress" ), |
|
528 | + __( "mistakes", "google-analytics-for-wordpress" ), |
|
529 | + __( "plague", "google-analytics-for-wordpress" ), |
|
530 | + __( "sick and tired", "google-analytics-for-wordpress" ), |
|
531 | + __( "money", "google-analytics-for-wordpress" ), |
|
532 | + __( "played", "google-analytics-for-wordpress" ), |
|
533 | + __( "refugee", "google-analytics-for-wordpress" ), |
|
534 | + __( "silly", "google-analytics-for-wordpress" ), |
|
535 | + __( "money-grubbing", "google-analytics-for-wordpress" ), |
|
536 | + __( "pluck", "google-analytics-for-wordpress" ), |
|
537 | + __( "refund", "google-analytics-for-wordpress" ), |
|
538 | + __( "moneyback", "google-analytics-for-wordpress" ), |
|
539 | + __( "plummet", "google-analytics-for-wordpress" ), |
|
540 | + __( "plunge", "google-analytics-for-wordpress" ), |
|
541 | + __( "murder", "google-analytics-for-wordpress" ), |
|
542 | + __( "pointless", "google-analytics-for-wordpress" ), |
|
543 | + __( "sinful", "google-analytics-for-wordpress" ), |
|
544 | + __( "myths", "google-analytics-for-wordpress" ), |
|
545 | + __( "poor", "google-analytics-for-wordpress" ), |
|
546 | + __( "remarkably", "google-analytics-for-wordpress" ), |
|
547 | + __( "six-figure", "google-analytics-for-wordpress" ), |
|
548 | + __( "never again", "google-analytics-for-wordpress" ), |
|
549 | + __( "research", "google-analytics-for-wordpress" ), |
|
550 | + __( "surrender", "google-analytics-for-wordpress" ), |
|
551 | + __( "to the", "google-analytics-for-wordpress" ), |
|
552 | + __( "varify", "google-analytics-for-wordpress" ), |
|
553 | + __( "skyrocket", "google-analytics-for-wordpress" ), |
|
554 | + __( "toxic", "google-analytics-for-wordpress" ), |
|
555 | + __( "vibrant", "google-analytics-for-wordpress" ), |
|
556 | + __( "slaughter", "google-analytics-for-wordpress" ), |
|
557 | + __( "swindle", "google-analytics-for-wordpress" ), |
|
558 | + __( "trap", "google-analytics-for-wordpress" ), |
|
559 | + __( "victim", "google-analytics-for-wordpress" ), |
|
560 | + __( "sleazy", "google-analytics-for-wordpress" ), |
|
561 | + __( "taboo", "google-analytics-for-wordpress" ), |
|
562 | + __( "treasure", "google-analytics-for-wordpress" ), |
|
563 | + __( "victory", "google-analytics-for-wordpress" ), |
|
564 | + __( "smash", "google-analytics-for-wordpress" ), |
|
565 | + __( "tailspin", "google-analytics-for-wordpress" ), |
|
566 | + __( "vindication", "google-analytics-for-wordpress" ), |
|
567 | + __( "smug", "google-analytics-for-wordpress" ), |
|
568 | + __( "tank", "google-analytics-for-wordpress" ), |
|
569 | + __( "triple", "google-analytics-for-wordpress" ), |
|
570 | + __( "viral", "google-analytics-for-wordpress" ), |
|
571 | + __( "smuggled", "google-analytics-for-wordpress" ), |
|
572 | + __( "tantalizing", "google-analytics-for-wordpress" ), |
|
573 | + __( "triumph", "google-analytics-for-wordpress" ), |
|
574 | + __( "volatile", "google-analytics-for-wordpress" ), |
|
575 | + __( "sniveling", "google-analytics-for-wordpress" ), |
|
576 | + __( "targeted", "google-analytics-for-wordpress" ), |
|
577 | + __( "truth", "google-analytics-for-wordpress" ), |
|
578 | + __( "vulnerable", "google-analytics-for-wordpress" ), |
|
579 | + __( "snob", "google-analytics-for-wordpress" ), |
|
580 | + __( "tawdry", "google-analytics-for-wordpress" ), |
|
581 | + __( "try before you buy", "google-analytics-for-wordpress" ), |
|
582 | + __( "tech", "google-analytics-for-wordpress" ), |
|
583 | + __( "turn the tables", "google-analytics-for-wordpress" ), |
|
584 | + __( "wanton", "google-analytics-for-wordpress" ), |
|
585 | + __( "soaring", "google-analytics-for-wordpress" ), |
|
586 | + __( "warning", "google-analytics-for-wordpress" ), |
|
587 | + __( "teetering", "google-analytics-for-wordpress" ), |
|
588 | + __( "unauthorized", "google-analytics-for-wordpress" ), |
|
589 | + __( "spectacular", "google-analytics-for-wordpress" ), |
|
590 | + __( "temporary fix", "google-analytics-for-wordpress" ), |
|
591 | + __( "unbelievably", "google-analytics-for-wordpress" ), |
|
592 | + __( "spine", "google-analytics-for-wordpress" ), |
|
593 | + __( "tempting", "google-analytics-for-wordpress" ), |
|
594 | + __( "uncommonly", "google-analytics-for-wordpress" ), |
|
595 | + __( "what happened", "google-analytics-for-wordpress" ), |
|
596 | + __( "spirit", "google-analytics-for-wordpress" ), |
|
597 | + __( "what happens when", "google-analytics-for-wordpress" ), |
|
598 | + __( "terror", "google-analytics-for-wordpress" ), |
|
599 | + __( "under", "google-analytics-for-wordpress" ), |
|
600 | + __( "what happens", "google-analytics-for-wordpress" ), |
|
601 | + __( "staggering", "google-analytics-for-wordpress" ), |
|
602 | + __( "underhanded", "google-analytics-for-wordpress" ), |
|
603 | + __( "what this", "google-analytics-for-wordpress" ), |
|
604 | + __( "that will make you", "google-analytics-for-wordpress" ), |
|
605 | + __( "undo", "when you see", "google-analytics-for-wordpress" ), |
|
606 | + __( "that will make", "google-analytics-for-wordpress" ), |
|
607 | + __( "unexpected", "google-analytics-for-wordpress" ), |
|
608 | + __( "when you", "google-analytics-for-wordpress" ), |
|
609 | + __( "strangle", "google-analytics-for-wordpress" ), |
|
610 | + __( "that will", "google-analytics-for-wordpress" ), |
|
611 | + __( "whip", "google-analytics-for-wordpress" ), |
|
612 | + __( "the best", "google-analytics-for-wordpress" ), |
|
613 | + __( "whopping", "google-analytics-for-wordpress" ), |
|
614 | + __( "stuck up", "google-analytics-for-wordpress" ), |
|
615 | + __( "the ranking of", "google-analytics-for-wordpress" ), |
|
616 | + __( "wicked", "google-analytics-for-wordpress" ), |
|
617 | + __( "stunning", "google-analytics-for-wordpress" ), |
|
618 | + __( "the most", "google-analytics-for-wordpress" ), |
|
619 | + __( "will make you", "google-analytics-for-wordpress" ), |
|
620 | + __( "stupid", "google-analytics-for-wordpress" ), |
|
621 | + __( "the reason why is", "google-analytics-for-wordpress" ), |
|
622 | + __( "unscrupulous", "google-analytics-for-wordpress" ), |
|
623 | + __( "thing ive ever seen", "google-analytics-for-wordpress" ), |
|
624 | + __( "withheld", "google-analytics-for-wordpress" ), |
|
625 | + __( "this is the", "google-analytics-for-wordpress" ), |
|
626 | + __( "this is what happens", "google-analytics-for-wordpress" ), |
|
627 | + __( "unusually", "google-analytics-for-wordpress" ), |
|
628 | + __( "wondrous", "google-analytics-for-wordpress" ), |
|
629 | + __( "this is what", "google-analytics-for-wordpress" ), |
|
630 | + __( "uplifting", "google-analytics-for-wordpress" ), |
|
631 | + __( "worry", "google-analytics-for-wordpress" ), |
|
632 | + __( "sure", "google-analytics-for-wordpress" ), |
|
633 | + __( "this is", "google-analytics-for-wordpress" ), |
|
634 | + __( "wounded", "google-analytics-for-wordpress" ), |
|
635 | + __( "surge", "google-analytics-for-wordpress" ), |
|
636 | + __( "thrilled", "google-analytics-for-wordpress" ), |
|
637 | + __( "you need to know", "google-analytics-for-wordpress" ), |
|
638 | + __( "thrilling", "google-analytics-for-wordpress" ), |
|
639 | + __( "valor", "google-analytics-for-wordpress" ), |
|
640 | + __( "you need to", "google-analytics-for-wordpress" ), |
|
641 | + __( "you see what", "google-analytics-for-wordpress" ), |
|
642 | + __( "surprising", "google-analytics-for-wordpress" ), |
|
643 | + __( "tired", "google-analytics-for-wordpress" ), |
|
644 | + __( "you see", "google-analytics-for-wordpress" ), |
|
645 | + __( "surprisingly", "google-analytics-for-wordpress" ), |
|
646 | + __( "to be", "google-analytics-for-wordpress" ), |
|
647 | + __( "vaporize", "google-analytics-for-wordpress" ), |
|
648 | 648 | ); |
649 | 649 | } |
650 | 650 | |
@@ -655,179 +655,179 @@ discard block |
||
655 | 655 | */ |
656 | 656 | function power_words() { |
657 | 657 | return array( |
658 | - __("great", "google-analytics-for-wordpress"), |
|
659 | - __("free", "google-analytics-for-wordpress"), |
|
660 | - __("focus", "google-analytics-for-wordpress"), |
|
661 | - __("remarkable", "google-analytics-for-wordpress"), |
|
662 | - __("confidential", "google-analytics-for-wordpress"), |
|
663 | - __("sale", "google-analytics-for-wordpress"), |
|
664 | - __("wanted", "google-analytics-for-wordpress"), |
|
665 | - __("obsession", "google-analytics-for-wordpress"), |
|
666 | - __("sizable", "google-analytics-for-wordpress"), |
|
667 | - __("new", "google-analytics-for-wordpress"), |
|
668 | - __("absolutely lowest", "google-analytics-for-wordpress"), |
|
669 | - __("surging", "google-analytics-for-wordpress"), |
|
670 | - __("wonderful", "google-analytics-for-wordpress"), |
|
671 | - __("professional", "google-analytics-for-wordpress"), |
|
672 | - __("interesting", "google-analytics-for-wordpress"), |
|
673 | - __("revisited", "google-analytics-for-wordpress"), |
|
674 | - __("delivered", "google-analytics-for-wordpress"), |
|
675 | - __("guaranteed", "google-analytics-for-wordpress"), |
|
676 | - __("challenge", "google-analytics-for-wordpress"), |
|
677 | - __("unique", "google-analytics-for-wordpress"), |
|
678 | - __("secrets", "google-analytics-for-wordpress"), |
|
679 | - __("special", "google-analytics-for-wordpress"), |
|
680 | - __("lifetime", "google-analytics-for-wordpress"), |
|
681 | - __("bargain", "google-analytics-for-wordpress"), |
|
682 | - __("scarce", "google-analytics-for-wordpress"), |
|
683 | - __("tested", "google-analytics-for-wordpress"), |
|
684 | - __("highest", "google-analytics-for-wordpress"), |
|
685 | - __("hurry", "google-analytics-for-wordpress"), |
|
686 | - __("alert famous", "google-analytics-for-wordpress"), |
|
687 | - __("improved", "google-analytics-for-wordpress"), |
|
688 | - __("expert", "google-analytics-for-wordpress"), |
|
689 | - __("daring", "google-analytics-for-wordpress"), |
|
690 | - __("strong", "google-analytics-for-wordpress"), |
|
691 | - __("immediately", "google-analytics-for-wordpress"), |
|
692 | - __("advice", "google-analytics-for-wordpress"), |
|
693 | - __("pioneering", "google-analytics-for-wordpress"), |
|
694 | - __("unusual", "google-analytics-for-wordpress"), |
|
695 | - __("limited", "google-analytics-for-wordpress"), |
|
696 | - __("the truth about", "google-analytics-for-wordpress"), |
|
697 | - __("destiny", "google-analytics-for-wordpress"), |
|
698 | - __("outstanding", "google-analytics-for-wordpress"), |
|
699 | - __("simplistic", "google-analytics-for-wordpress"), |
|
700 | - __("compare", "google-analytics-for-wordpress"), |
|
701 | - __("unsurpassed", "google-analytics-for-wordpress"), |
|
702 | - __("energy", "google-analytics-for-wordpress"), |
|
703 | - __("powerful", "google-analytics-for-wordpress"), |
|
704 | - __("colorful", "google-analytics-for-wordpress"), |
|
705 | - __("genuine", "google-analytics-for-wordpress"), |
|
706 | - __("instructive", "google-analytics-for-wordpress"), |
|
707 | - __("big", "google-analytics-for-wordpress"), |
|
708 | - __("affordable", "google-analytics-for-wordpress"), |
|
709 | - __("informative", "google-analytics-for-wordpress"), |
|
710 | - __("liberal", "google-analytics-for-wordpress"), |
|
711 | - __("popular", "google-analytics-for-wordpress"), |
|
712 | - __("ultimate", "google-analytics-for-wordpress"), |
|
713 | - __("mainstream", "google-analytics-for-wordpress"), |
|
714 | - __("rare", "google-analytics-for-wordpress"), |
|
715 | - __("exclusive", "google-analytics-for-wordpress"), |
|
716 | - __("willpower", "google-analytics-for-wordpress"), |
|
717 | - __("complete", "google-analytics-for-wordpress"), |
|
718 | - __("edge", "google-analytics-for-wordpress"), |
|
719 | - __("valuable", "google-analytics-for-wordpress"), |
|
720 | - __("attractive", "google-analytics-for-wordpress"), |
|
721 | - __("last chance", "google-analytics-for-wordpress"), |
|
722 | - __("superior", "google-analytics-for-wordpress"), |
|
723 | - __("how to", "google-analytics-for-wordpress"), |
|
724 | - __("easily", "google-analytics-for-wordpress"), |
|
725 | - __("exploit", "google-analytics-for-wordpress"), |
|
726 | - __("unparalleled", "google-analytics-for-wordpress"), |
|
727 | - __("endorsed", "google-analytics-for-wordpress"), |
|
728 | - __("approved", "google-analytics-for-wordpress"), |
|
729 | - __("quality", "google-analytics-for-wordpress"), |
|
730 | - __("fascinating", "google-analytics-for-wordpress"), |
|
731 | - __("unlimited", "google-analytics-for-wordpress"), |
|
732 | - __("competitive", "google-analytics-for-wordpress"), |
|
733 | - __("gigantic", "google-analytics-for-wordpress"), |
|
734 | - __("compromise", "google-analytics-for-wordpress"), |
|
735 | - __("discount", "google-analytics-for-wordpress"), |
|
736 | - __("full", "google-analytics-for-wordpress"), |
|
737 | - __("love", "google-analytics-for-wordpress"), |
|
738 | - __("odd", "google-analytics-for-wordpress"), |
|
739 | - __("fundamentals", "google-analytics-for-wordpress"), |
|
740 | - __("mammoth", "google-analytics-for-wordpress"), |
|
741 | - __("lavishly", "google-analytics-for-wordpress"), |
|
742 | - __("bottom line", "google-analytics-for-wordpress"), |
|
743 | - __("under priced", "google-analytics-for-wordpress"), |
|
744 | - __("innovative", "google-analytics-for-wordpress"), |
|
745 | - __("reliable", "google-analytics-for-wordpress"), |
|
746 | - __("zinger", "google-analytics-for-wordpress"), |
|
747 | - __("suddenly", "google-analytics-for-wordpress"), |
|
748 | - __("it's here", "google-analytics-for-wordpress"), |
|
749 | - __("terrific", "google-analytics-for-wordpress"), |
|
750 | - __("simplified", "google-analytics-for-wordpress"), |
|
751 | - __("perspective", "google-analytics-for-wordpress"), |
|
752 | - __("just arrived", "google-analytics-for-wordpress"), |
|
753 | - __("breakthrough", "google-analytics-for-wordpress"), |
|
754 | - __("tremendous", "google-analytics-for-wordpress"), |
|
755 | - __("launching", "google-analytics-for-wordpress"), |
|
756 | - __("sure fire", "google-analytics-for-wordpress"), |
|
757 | - __("emerging", "google-analytics-for-wordpress"), |
|
758 | - __("helpful", "google-analytics-for-wordpress"), |
|
759 | - __("skill", "google-analytics-for-wordpress"), |
|
760 | - __("soar", "google-analytics-for-wordpress"), |
|
761 | - __("profitable", "google-analytics-for-wordpress"), |
|
762 | - __("special offer", "google-analytics-for-wordpress"), |
|
763 | - __("reduced", "google-analytics-for-wordpress"), |
|
764 | - __("beautiful", "google-analytics-for-wordpress"), |
|
765 | - __("sampler", "google-analytics-for-wordpress"), |
|
766 | - __("technology", "google-analytics-for-wordpress"), |
|
767 | - __("better", "google-analytics-for-wordpress"), |
|
768 | - __("crammed", "google-analytics-for-wordpress"), |
|
769 | - __("noted", "google-analytics-for-wordpress"), |
|
770 | - __("selected", "google-analytics-for-wordpress"), |
|
771 | - __("shrewd", "google-analytics-for-wordpress"), |
|
772 | - __("growth", "google-analytics-for-wordpress"), |
|
773 | - __("luxury", "google-analytics-for-wordpress"), |
|
774 | - __("sturdy", "google-analytics-for-wordpress"), |
|
775 | - __("enormous", "google-analytics-for-wordpress"), |
|
776 | - __("promising", "google-analytics-for-wordpress"), |
|
777 | - __("unconditional", "google-analytics-for-wordpress"), |
|
778 | - __("wealth", "google-analytics-for-wordpress"), |
|
779 | - __("spotlight", "google-analytics-for-wordpress"), |
|
780 | - __("astonishing", "google-analytics-for-wordpress"), |
|
781 | - __("timely", "google-analytics-for-wordpress"), |
|
782 | - __("successful", "google-analytics-for-wordpress"), |
|
783 | - __("useful", "google-analytics-for-wordpress"), |
|
784 | - __("imagination", "google-analytics-for-wordpress"), |
|
785 | - __("bonanza", "google-analytics-for-wordpress"), |
|
786 | - __("opportunities", "google-analytics-for-wordpress"), |
|
787 | - __("survival", "google-analytics-for-wordpress"), |
|
788 | - __("greatest", "google-analytics-for-wordpress"), |
|
789 | - __("security", "google-analytics-for-wordpress"), |
|
790 | - __("last minute", "google-analytics-for-wordpress"), |
|
791 | - __("largest", "google-analytics-for-wordpress"), |
|
792 | - __("high tech", "google-analytics-for-wordpress"), |
|
793 | - __("refundable", "google-analytics-for-wordpress"), |
|
794 | - __("monumental", "google-analytics-for-wordpress"), |
|
795 | - __("colossal", "google-analytics-for-wordpress"), |
|
796 | - __("latest", "google-analytics-for-wordpress"), |
|
797 | - __("quickly", "google-analytics-for-wordpress"), |
|
798 | - __("startling", "google-analytics-for-wordpress"), |
|
799 | - __("now", "google-analytics-for-wordpress"), |
|
800 | - __("important", "google-analytics-for-wordpress"), |
|
801 | - __("revolutionary", "google-analytics-for-wordpress"), |
|
802 | - __("quick", "google-analytics-for-wordpress"), |
|
803 | - __("unlock", "google-analytics-for-wordpress"), |
|
804 | - __("urgent", "google-analytics-for-wordpress"), |
|
805 | - __("miracle", "google-analytics-for-wordpress"), |
|
806 | - __("easy", "google-analytics-for-wordpress"), |
|
807 | - __("fortune", "google-analytics-for-wordpress"), |
|
808 | - __("amazing", "google-analytics-for-wordpress"), |
|
809 | - __("magic", "google-analytics-for-wordpress"), |
|
810 | - __("direct", "google-analytics-for-wordpress"), |
|
811 | - __("authentic", "google-analytics-for-wordpress"), |
|
812 | - __("exciting", "google-analytics-for-wordpress"), |
|
813 | - __("proven", "google-analytics-for-wordpress"), |
|
814 | - __("simple", "google-analytics-for-wordpress"), |
|
815 | - __("announcing", "google-analytics-for-wordpress"), |
|
816 | - __("portfolio", "google-analytics-for-wordpress"), |
|
817 | - __("reward", "google-analytics-for-wordpress"), |
|
818 | - __("strange", "google-analytics-for-wordpress"), |
|
819 | - __("huge gift", "google-analytics-for-wordpress"), |
|
820 | - __("revealing", "google-analytics-for-wordpress"), |
|
821 | - __("weird", "google-analytics-for-wordpress"), |
|
822 | - __("value", "google-analytics-for-wordpress"), |
|
823 | - __("introducing", "google-analytics-for-wordpress"), |
|
824 | - __("sensational", "google-analytics-for-wordpress"), |
|
825 | - __("surprise", "google-analytics-for-wordpress"), |
|
826 | - __("insider", "google-analytics-for-wordpress"), |
|
827 | - __("practical", "google-analytics-for-wordpress"), |
|
828 | - __("excellent", "google-analytics-for-wordpress"), |
|
829 | - __("delighted", "google-analytics-for-wordpress"), |
|
830 | - __("download", "google-analytics-for-wordpress"), |
|
658 | + __( "great", "google-analytics-for-wordpress" ), |
|
659 | + __( "free", "google-analytics-for-wordpress" ), |
|
660 | + __( "focus", "google-analytics-for-wordpress" ), |
|
661 | + __( "remarkable", "google-analytics-for-wordpress" ), |
|
662 | + __( "confidential", "google-analytics-for-wordpress" ), |
|
663 | + __( "sale", "google-analytics-for-wordpress" ), |
|
664 | + __( "wanted", "google-analytics-for-wordpress" ), |
|
665 | + __( "obsession", "google-analytics-for-wordpress" ), |
|
666 | + __( "sizable", "google-analytics-for-wordpress" ), |
|
667 | + __( "new", "google-analytics-for-wordpress" ), |
|
668 | + __( "absolutely lowest", "google-analytics-for-wordpress" ), |
|
669 | + __( "surging", "google-analytics-for-wordpress" ), |
|
670 | + __( "wonderful", "google-analytics-for-wordpress" ), |
|
671 | + __( "professional", "google-analytics-for-wordpress" ), |
|
672 | + __( "interesting", "google-analytics-for-wordpress" ), |
|
673 | + __( "revisited", "google-analytics-for-wordpress" ), |
|
674 | + __( "delivered", "google-analytics-for-wordpress" ), |
|
675 | + __( "guaranteed", "google-analytics-for-wordpress" ), |
|
676 | + __( "challenge", "google-analytics-for-wordpress" ), |
|
677 | + __( "unique", "google-analytics-for-wordpress" ), |
|
678 | + __( "secrets", "google-analytics-for-wordpress" ), |
|
679 | + __( "special", "google-analytics-for-wordpress" ), |
|
680 | + __( "lifetime", "google-analytics-for-wordpress" ), |
|
681 | + __( "bargain", "google-analytics-for-wordpress" ), |
|
682 | + __( "scarce", "google-analytics-for-wordpress" ), |
|
683 | + __( "tested", "google-analytics-for-wordpress" ), |
|
684 | + __( "highest", "google-analytics-for-wordpress" ), |
|
685 | + __( "hurry", "google-analytics-for-wordpress" ), |
|
686 | + __( "alert famous", "google-analytics-for-wordpress" ), |
|
687 | + __( "improved", "google-analytics-for-wordpress" ), |
|
688 | + __( "expert", "google-analytics-for-wordpress" ), |
|
689 | + __( "daring", "google-analytics-for-wordpress" ), |
|
690 | + __( "strong", "google-analytics-for-wordpress" ), |
|
691 | + __( "immediately", "google-analytics-for-wordpress" ), |
|
692 | + __( "advice", "google-analytics-for-wordpress" ), |
|
693 | + __( "pioneering", "google-analytics-for-wordpress" ), |
|
694 | + __( "unusual", "google-analytics-for-wordpress" ), |
|
695 | + __( "limited", "google-analytics-for-wordpress" ), |
|
696 | + __( "the truth about", "google-analytics-for-wordpress" ), |
|
697 | + __( "destiny", "google-analytics-for-wordpress" ), |
|
698 | + __( "outstanding", "google-analytics-for-wordpress" ), |
|
699 | + __( "simplistic", "google-analytics-for-wordpress" ), |
|
700 | + __( "compare", "google-analytics-for-wordpress" ), |
|
701 | + __( "unsurpassed", "google-analytics-for-wordpress" ), |
|
702 | + __( "energy", "google-analytics-for-wordpress" ), |
|
703 | + __( "powerful", "google-analytics-for-wordpress" ), |
|
704 | + __( "colorful", "google-analytics-for-wordpress" ), |
|
705 | + __( "genuine", "google-analytics-for-wordpress" ), |
|
706 | + __( "instructive", "google-analytics-for-wordpress" ), |
|
707 | + __( "big", "google-analytics-for-wordpress" ), |
|
708 | + __( "affordable", "google-analytics-for-wordpress" ), |
|
709 | + __( "informative", "google-analytics-for-wordpress" ), |
|
710 | + __( "liberal", "google-analytics-for-wordpress" ), |
|
711 | + __( "popular", "google-analytics-for-wordpress" ), |
|
712 | + __( "ultimate", "google-analytics-for-wordpress" ), |
|
713 | + __( "mainstream", "google-analytics-for-wordpress" ), |
|
714 | + __( "rare", "google-analytics-for-wordpress" ), |
|
715 | + __( "exclusive", "google-analytics-for-wordpress" ), |
|
716 | + __( "willpower", "google-analytics-for-wordpress" ), |
|
717 | + __( "complete", "google-analytics-for-wordpress" ), |
|
718 | + __( "edge", "google-analytics-for-wordpress" ), |
|
719 | + __( "valuable", "google-analytics-for-wordpress" ), |
|
720 | + __( "attractive", "google-analytics-for-wordpress" ), |
|
721 | + __( "last chance", "google-analytics-for-wordpress" ), |
|
722 | + __( "superior", "google-analytics-for-wordpress" ), |
|
723 | + __( "how to", "google-analytics-for-wordpress" ), |
|
724 | + __( "easily", "google-analytics-for-wordpress" ), |
|
725 | + __( "exploit", "google-analytics-for-wordpress" ), |
|
726 | + __( "unparalleled", "google-analytics-for-wordpress" ), |
|
727 | + __( "endorsed", "google-analytics-for-wordpress" ), |
|
728 | + __( "approved", "google-analytics-for-wordpress" ), |
|
729 | + __( "quality", "google-analytics-for-wordpress" ), |
|
730 | + __( "fascinating", "google-analytics-for-wordpress" ), |
|
731 | + __( "unlimited", "google-analytics-for-wordpress" ), |
|
732 | + __( "competitive", "google-analytics-for-wordpress" ), |
|
733 | + __( "gigantic", "google-analytics-for-wordpress" ), |
|
734 | + __( "compromise", "google-analytics-for-wordpress" ), |
|
735 | + __( "discount", "google-analytics-for-wordpress" ), |
|
736 | + __( "full", "google-analytics-for-wordpress" ), |
|
737 | + __( "love", "google-analytics-for-wordpress" ), |
|
738 | + __( "odd", "google-analytics-for-wordpress" ), |
|
739 | + __( "fundamentals", "google-analytics-for-wordpress" ), |
|
740 | + __( "mammoth", "google-analytics-for-wordpress" ), |
|
741 | + __( "lavishly", "google-analytics-for-wordpress" ), |
|
742 | + __( "bottom line", "google-analytics-for-wordpress" ), |
|
743 | + __( "under priced", "google-analytics-for-wordpress" ), |
|
744 | + __( "innovative", "google-analytics-for-wordpress" ), |
|
745 | + __( "reliable", "google-analytics-for-wordpress" ), |
|
746 | + __( "zinger", "google-analytics-for-wordpress" ), |
|
747 | + __( "suddenly", "google-analytics-for-wordpress" ), |
|
748 | + __( "it's here", "google-analytics-for-wordpress" ), |
|
749 | + __( "terrific", "google-analytics-for-wordpress" ), |
|
750 | + __( "simplified", "google-analytics-for-wordpress" ), |
|
751 | + __( "perspective", "google-analytics-for-wordpress" ), |
|
752 | + __( "just arrived", "google-analytics-for-wordpress" ), |
|
753 | + __( "breakthrough", "google-analytics-for-wordpress" ), |
|
754 | + __( "tremendous", "google-analytics-for-wordpress" ), |
|
755 | + __( "launching", "google-analytics-for-wordpress" ), |
|
756 | + __( "sure fire", "google-analytics-for-wordpress" ), |
|
757 | + __( "emerging", "google-analytics-for-wordpress" ), |
|
758 | + __( "helpful", "google-analytics-for-wordpress" ), |
|
759 | + __( "skill", "google-analytics-for-wordpress" ), |
|
760 | + __( "soar", "google-analytics-for-wordpress" ), |
|
761 | + __( "profitable", "google-analytics-for-wordpress" ), |
|
762 | + __( "special offer", "google-analytics-for-wordpress" ), |
|
763 | + __( "reduced", "google-analytics-for-wordpress" ), |
|
764 | + __( "beautiful", "google-analytics-for-wordpress" ), |
|
765 | + __( "sampler", "google-analytics-for-wordpress" ), |
|
766 | + __( "technology", "google-analytics-for-wordpress" ), |
|
767 | + __( "better", "google-analytics-for-wordpress" ), |
|
768 | + __( "crammed", "google-analytics-for-wordpress" ), |
|
769 | + __( "noted", "google-analytics-for-wordpress" ), |
|
770 | + __( "selected", "google-analytics-for-wordpress" ), |
|
771 | + __( "shrewd", "google-analytics-for-wordpress" ), |
|
772 | + __( "growth", "google-analytics-for-wordpress" ), |
|
773 | + __( "luxury", "google-analytics-for-wordpress" ), |
|
774 | + __( "sturdy", "google-analytics-for-wordpress" ), |
|
775 | + __( "enormous", "google-analytics-for-wordpress" ), |
|
776 | + __( "promising", "google-analytics-for-wordpress" ), |
|
777 | + __( "unconditional", "google-analytics-for-wordpress" ), |
|
778 | + __( "wealth", "google-analytics-for-wordpress" ), |
|
779 | + __( "spotlight", "google-analytics-for-wordpress" ), |
|
780 | + __( "astonishing", "google-analytics-for-wordpress" ), |
|
781 | + __( "timely", "google-analytics-for-wordpress" ), |
|
782 | + __( "successful", "google-analytics-for-wordpress" ), |
|
783 | + __( "useful", "google-analytics-for-wordpress" ), |
|
784 | + __( "imagination", "google-analytics-for-wordpress" ), |
|
785 | + __( "bonanza", "google-analytics-for-wordpress" ), |
|
786 | + __( "opportunities", "google-analytics-for-wordpress" ), |
|
787 | + __( "survival", "google-analytics-for-wordpress" ), |
|
788 | + __( "greatest", "google-analytics-for-wordpress" ), |
|
789 | + __( "security", "google-analytics-for-wordpress" ), |
|
790 | + __( "last minute", "google-analytics-for-wordpress" ), |
|
791 | + __( "largest", "google-analytics-for-wordpress" ), |
|
792 | + __( "high tech", "google-analytics-for-wordpress" ), |
|
793 | + __( "refundable", "google-analytics-for-wordpress" ), |
|
794 | + __( "monumental", "google-analytics-for-wordpress" ), |
|
795 | + __( "colossal", "google-analytics-for-wordpress" ), |
|
796 | + __( "latest", "google-analytics-for-wordpress" ), |
|
797 | + __( "quickly", "google-analytics-for-wordpress" ), |
|
798 | + __( "startling", "google-analytics-for-wordpress" ), |
|
799 | + __( "now", "google-analytics-for-wordpress" ), |
|
800 | + __( "important", "google-analytics-for-wordpress" ), |
|
801 | + __( "revolutionary", "google-analytics-for-wordpress" ), |
|
802 | + __( "quick", "google-analytics-for-wordpress" ), |
|
803 | + __( "unlock", "google-analytics-for-wordpress" ), |
|
804 | + __( "urgent", "google-analytics-for-wordpress" ), |
|
805 | + __( "miracle", "google-analytics-for-wordpress" ), |
|
806 | + __( "easy", "google-analytics-for-wordpress" ), |
|
807 | + __( "fortune", "google-analytics-for-wordpress" ), |
|
808 | + __( "amazing", "google-analytics-for-wordpress" ), |
|
809 | + __( "magic", "google-analytics-for-wordpress" ), |
|
810 | + __( "direct", "google-analytics-for-wordpress" ), |
|
811 | + __( "authentic", "google-analytics-for-wordpress" ), |
|
812 | + __( "exciting", "google-analytics-for-wordpress" ), |
|
813 | + __( "proven", "google-analytics-for-wordpress" ), |
|
814 | + __( "simple", "google-analytics-for-wordpress" ), |
|
815 | + __( "announcing", "google-analytics-for-wordpress" ), |
|
816 | + __( "portfolio", "google-analytics-for-wordpress" ), |
|
817 | + __( "reward", "google-analytics-for-wordpress" ), |
|
818 | + __( "strange", "google-analytics-for-wordpress" ), |
|
819 | + __( "huge gift", "google-analytics-for-wordpress" ), |
|
820 | + __( "revealing", "google-analytics-for-wordpress" ), |
|
821 | + __( "weird", "google-analytics-for-wordpress" ), |
|
822 | + __( "value", "google-analytics-for-wordpress" ), |
|
823 | + __( "introducing", "google-analytics-for-wordpress" ), |
|
824 | + __( "sensational", "google-analytics-for-wordpress" ), |
|
825 | + __( "surprise", "google-analytics-for-wordpress" ), |
|
826 | + __( "insider", "google-analytics-for-wordpress" ), |
|
827 | + __( "practical", "google-analytics-for-wordpress" ), |
|
828 | + __( "excellent", "google-analytics-for-wordpress" ), |
|
829 | + __( "delighted", "google-analytics-for-wordpress" ), |
|
830 | + __( "download", "google-analytics-for-wordpress" ), |
|
831 | 831 | ); |
832 | 832 | } |
833 | 833 | |
@@ -838,69 +838,69 @@ discard block |
||
838 | 838 | */ |
839 | 839 | function common_words() { |
840 | 840 | return array( |
841 | - __("a", "google-analytics-for-wordpress"), |
|
842 | - __("for", "google-analytics-for-wordpress"), |
|
843 | - __("about", "google-analytics-for-wordpress"), |
|
844 | - __("from", "google-analytics-for-wordpress"), |
|
845 | - __("after", "google-analytics-for-wordpress"), |
|
846 | - __("get", "google-analytics-for-wordpress"), |
|
847 | - __("all", "google-analytics-for-wordpress"), |
|
848 | - __("has", "google-analytics-for-wordpress"), |
|
849 | - __("an", "google-analytics-for-wordpress"), |
|
850 | - __("have", "google-analytics-for-wordpress"), |
|
851 | - __("and", "google-analytics-for-wordpress"), |
|
852 | - __("he", "google-analytics-for-wordpress"), |
|
853 | - __("are", "google-analytics-for-wordpress"), |
|
854 | - __("her", "google-analytics-for-wordpress"), |
|
855 | - __("as", "google-analytics-for-wordpress"), |
|
856 | - __("his", "google-analytics-for-wordpress"), |
|
857 | - __("at", "google-analytics-for-wordpress"), |
|
858 | - __("how", "google-analytics-for-wordpress"), |
|
859 | - __("be", "google-analytics-for-wordpress"), |
|
860 | - __("I", "google-analytics-for-wordpress"), |
|
861 | - __("but", "google-analytics-for-wordpress"), |
|
862 | - __("if", "google-analytics-for-wordpress"), |
|
863 | - __("by", "google-analytics-for-wordpress"), |
|
864 | - __("in", "google-analytics-for-wordpress"), |
|
865 | - __("can", "google-analytics-for-wordpress"), |
|
866 | - __("is", "google-analytics-for-wordpress"), |
|
867 | - __("did", "google-analytics-for-wordpress"), |
|
868 | - __("it", "google-analytics-for-wordpress"), |
|
869 | - __("do", "google-analytics-for-wordpress"), |
|
870 | - __("just", "google-analytics-for-wordpress"), |
|
871 | - __("ever", "google-analytics-for-wordpress"), |
|
872 | - __("like", "google-analytics-for-wordpress"), |
|
873 | - __("ll", "google-analytics-for-wordpress"), |
|
874 | - __("these", "google-analytics-for-wordpress"), |
|
875 | - __("me", "google-analytics-for-wordpress"), |
|
876 | - __("they", "google-analytics-for-wordpress"), |
|
877 | - __("most", "google-analytics-for-wordpress"), |
|
878 | - __("things", "google-analytics-for-wordpress"), |
|
879 | - __("my", "google-analytics-for-wordpress"), |
|
880 | - __("this", "google-analytics-for-wordpress"), |
|
881 | - __("no", "google-analytics-for-wordpress"), |
|
882 | - __("to", "google-analytics-for-wordpress"), |
|
883 | - __("not", "google-analytics-for-wordpress"), |
|
884 | - __("up", "google-analytics-for-wordpress"), |
|
885 | - __("of", "google-analytics-for-wordpress"), |
|
886 | - __("was", "google-analytics-for-wordpress"), |
|
887 | - __("on", "google-analytics-for-wordpress"), |
|
888 | - __("what", "google-analytics-for-wordpress"), |
|
889 | - __("re", "google-analytics-for-wordpress"), |
|
890 | - __("when", "google-analytics-for-wordpress"), |
|
891 | - __("she", "google-analytics-for-wordpress"), |
|
892 | - __("who", "google-analytics-for-wordpress"), |
|
893 | - __("sould", "google-analytics-for-wordpress"), |
|
894 | - __("why", "google-analytics-for-wordpress"), |
|
895 | - __("so", "google-analytics-for-wordpress"), |
|
896 | - __("will", "google-analytics-for-wordpress"), |
|
897 | - __("that", "google-analytics-for-wordpress"), |
|
898 | - __("with", "google-analytics-for-wordpress"), |
|
899 | - __("the", "google-analytics-for-wordpress"), |
|
900 | - __("you", "google-analytics-for-wordpress"), |
|
901 | - __("their", "google-analytics-for-wordpress"), |
|
902 | - __("your", "google-analytics-for-wordpress"), |
|
903 | - __("there", "google-analytics-for-wordpress"), |
|
841 | + __( "a", "google-analytics-for-wordpress" ), |
|
842 | + __( "for", "google-analytics-for-wordpress" ), |
|
843 | + __( "about", "google-analytics-for-wordpress" ), |
|
844 | + __( "from", "google-analytics-for-wordpress" ), |
|
845 | + __( "after", "google-analytics-for-wordpress" ), |
|
846 | + __( "get", "google-analytics-for-wordpress" ), |
|
847 | + __( "all", "google-analytics-for-wordpress" ), |
|
848 | + __( "has", "google-analytics-for-wordpress" ), |
|
849 | + __( "an", "google-analytics-for-wordpress" ), |
|
850 | + __( "have", "google-analytics-for-wordpress" ), |
|
851 | + __( "and", "google-analytics-for-wordpress" ), |
|
852 | + __( "he", "google-analytics-for-wordpress" ), |
|
853 | + __( "are", "google-analytics-for-wordpress" ), |
|
854 | + __( "her", "google-analytics-for-wordpress" ), |
|
855 | + __( "as", "google-analytics-for-wordpress" ), |
|
856 | + __( "his", "google-analytics-for-wordpress" ), |
|
857 | + __( "at", "google-analytics-for-wordpress" ), |
|
858 | + __( "how", "google-analytics-for-wordpress" ), |
|
859 | + __( "be", "google-analytics-for-wordpress" ), |
|
860 | + __( "I", "google-analytics-for-wordpress" ), |
|
861 | + __( "but", "google-analytics-for-wordpress" ), |
|
862 | + __( "if", "google-analytics-for-wordpress" ), |
|
863 | + __( "by", "google-analytics-for-wordpress" ), |
|
864 | + __( "in", "google-analytics-for-wordpress" ), |
|
865 | + __( "can", "google-analytics-for-wordpress" ), |
|
866 | + __( "is", "google-analytics-for-wordpress" ), |
|
867 | + __( "did", "google-analytics-for-wordpress" ), |
|
868 | + __( "it", "google-analytics-for-wordpress" ), |
|
869 | + __( "do", "google-analytics-for-wordpress" ), |
|
870 | + __( "just", "google-analytics-for-wordpress" ), |
|
871 | + __( "ever", "google-analytics-for-wordpress" ), |
|
872 | + __( "like", "google-analytics-for-wordpress" ), |
|
873 | + __( "ll", "google-analytics-for-wordpress" ), |
|
874 | + __( "these", "google-analytics-for-wordpress" ), |
|
875 | + __( "me", "google-analytics-for-wordpress" ), |
|
876 | + __( "they", "google-analytics-for-wordpress" ), |
|
877 | + __( "most", "google-analytics-for-wordpress" ), |
|
878 | + __( "things", "google-analytics-for-wordpress" ), |
|
879 | + __( "my", "google-analytics-for-wordpress" ), |
|
880 | + __( "this", "google-analytics-for-wordpress" ), |
|
881 | + __( "no", "google-analytics-for-wordpress" ), |
|
882 | + __( "to", "google-analytics-for-wordpress" ), |
|
883 | + __( "not", "google-analytics-for-wordpress" ), |
|
884 | + __( "up", "google-analytics-for-wordpress" ), |
|
885 | + __( "of", "google-analytics-for-wordpress" ), |
|
886 | + __( "was", "google-analytics-for-wordpress" ), |
|
887 | + __( "on", "google-analytics-for-wordpress" ), |
|
888 | + __( "what", "google-analytics-for-wordpress" ), |
|
889 | + __( "re", "google-analytics-for-wordpress" ), |
|
890 | + __( "when", "google-analytics-for-wordpress" ), |
|
891 | + __( "she", "google-analytics-for-wordpress" ), |
|
892 | + __( "who", "google-analytics-for-wordpress" ), |
|
893 | + __( "sould", "google-analytics-for-wordpress" ), |
|
894 | + __( "why", "google-analytics-for-wordpress" ), |
|
895 | + __( "so", "google-analytics-for-wordpress" ), |
|
896 | + __( "will", "google-analytics-for-wordpress" ), |
|
897 | + __( "that", "google-analytics-for-wordpress" ), |
|
898 | + __( "with", "google-analytics-for-wordpress" ), |
|
899 | + __( "the", "google-analytics-for-wordpress" ), |
|
900 | + __( "you", "google-analytics-for-wordpress" ), |
|
901 | + __( "their", "google-analytics-for-wordpress" ), |
|
902 | + __( "your", "google-analytics-for-wordpress" ), |
|
903 | + __( "there", "google-analytics-for-wordpress" ), |
|
904 | 904 | ); |
905 | 905 | } |
906 | 906 | |
@@ -912,67 +912,67 @@ discard block |
||
912 | 912 | */ |
913 | 913 | function uncommon_words() { |
914 | 914 | return array( |
915 | - __("actually", "google-analytics-for-wordpress"), |
|
916 | - __("happened", "google-analytics-for-wordpress"), |
|
917 | - __("need", "google-analytics-for-wordpress"), |
|
918 | - __("thing", "google-analytics-for-wordpress"), |
|
919 | - __("awesome", "google-analytics-for-wordpress"), |
|
920 | - __("heart", "google-analytics-for-wordpress"), |
|
921 | - __("never", "google-analytics-for-wordpress"), |
|
922 | - __("think", "google-analytics-for-wordpress"), |
|
923 | - __("baby", "google-analytics-for-wordpress"), |
|
924 | - __("here", "google-analytics-for-wordpress"), |
|
925 | - __("new", "google-analytics-for-wordpress"), |
|
926 | - __("time", "google-analytics-for-wordpress"), |
|
927 | - __("beautiful", "google-analytics-for-wordpress"), |
|
928 | - __("its", "google-analytics-for-wordpress"), |
|
929 | - __("now", "google-analytics-for-wordpress"), |
|
930 | - __("valentines", "google-analytics-for-wordpress"), |
|
931 | - __("being", "google-analytics-for-wordpress"), |
|
932 | - __("know", "google-analytics-for-wordpress"), |
|
933 | - __("old", "google-analytics-for-wordpress"), |
|
934 | - __("video", "google-analytics-for-wordpress"), |
|
935 | - __("best", "google-analytics-for-wordpress"), |
|
936 | - __("life", "google-analytics-for-wordpress"), |
|
937 | - __("one", "google-analytics-for-wordpress"), |
|
938 | - __("want", "google-analytics-for-wordpress"), |
|
939 | - __("better", "google-analytics-for-wordpress"), |
|
940 | - __("little", "google-analytics-for-wordpress"), |
|
941 | - __("out", "google-analytics-for-wordpress"), |
|
942 | - __("watch", "google-analytics-for-wordpress"), |
|
943 | - __("boy", "google-analytics-for-wordpress"), |
|
944 | - __("look", "google-analytics-for-wordpress"), |
|
945 | - __("people", "google-analytics-for-wordpress"), |
|
946 | - __("way", "google-analytics-for-wordpress"), |
|
947 | - __("dog", "google-analytics-for-wordpress"), |
|
948 | - __("love", "google-analytics-for-wordpress"), |
|
949 | - __("photos", "google-analytics-for-wordpress"), |
|
950 | - __("ways", "google-analytics-for-wordpress"), |
|
951 | - __("down", "google-analytics-for-wordpress"), |
|
952 | - __("made", "google-analytics-for-wordpress"), |
|
953 | - __("really", "google-analytics-for-wordpress"), |
|
954 | - __("world", "google-analytics-for-wordpress"), |
|
955 | - __("facebook", "google-analytics-for-wordpress"), |
|
956 | - __("make", "google-analytics-for-wordpress"), |
|
957 | - __("reasons", "google-analytics-for-wordpress"), |
|
958 | - __("year", "google-analytics-for-wordpress"), |
|
959 | - __("first", "google-analytics-for-wordpress"), |
|
960 | - __("makes", "google-analytics-for-wordpress"), |
|
961 | - __("right", "google-analytics-for-wordpress"), |
|
962 | - __("years", "google-analytics-for-wordpress"), |
|
963 | - __("found", "google-analytics-for-wordpress"), |
|
964 | - __("man", "google-analytics-for-wordpress"), |
|
965 | - __("see", "google-analytics-for-wordpress"), |
|
966 | - __("you’ll", "google-analytics-for-wordpress"), |
|
967 | - __("girl", "google-analytics-for-wordpress"), |
|
968 | - __("media", "google-analytics-for-wordpress"), |
|
969 | - __("seen", "google-analytics-for-wordpress"), |
|
970 | - __("good", "google-analytics-for-wordpress"), |
|
971 | - __("mind", "google-analytics-for-wordpress"), |
|
972 | - __("social", "google-analytics-for-wordpress"), |
|
973 | - __("guy", "google-analytics-for-wordpress"), |
|
974 | - __("more", "google-analytics-for-wordpress"), |
|
975 | - __("something", "google-analytics-for-wordpress"), |
|
915 | + __( "actually", "google-analytics-for-wordpress" ), |
|
916 | + __( "happened", "google-analytics-for-wordpress" ), |
|
917 | + __( "need", "google-analytics-for-wordpress" ), |
|
918 | + __( "thing", "google-analytics-for-wordpress" ), |
|
919 | + __( "awesome", "google-analytics-for-wordpress" ), |
|
920 | + __( "heart", "google-analytics-for-wordpress" ), |
|
921 | + __( "never", "google-analytics-for-wordpress" ), |
|
922 | + __( "think", "google-analytics-for-wordpress" ), |
|
923 | + __( "baby", "google-analytics-for-wordpress" ), |
|
924 | + __( "here", "google-analytics-for-wordpress" ), |
|
925 | + __( "new", "google-analytics-for-wordpress" ), |
|
926 | + __( "time", "google-analytics-for-wordpress" ), |
|
927 | + __( "beautiful", "google-analytics-for-wordpress" ), |
|
928 | + __( "its", "google-analytics-for-wordpress" ), |
|
929 | + __( "now", "google-analytics-for-wordpress" ), |
|
930 | + __( "valentines", "google-analytics-for-wordpress" ), |
|
931 | + __( "being", "google-analytics-for-wordpress" ), |
|
932 | + __( "know", "google-analytics-for-wordpress" ), |
|
933 | + __( "old", "google-analytics-for-wordpress" ), |
|
934 | + __( "video", "google-analytics-for-wordpress" ), |
|
935 | + __( "best", "google-analytics-for-wordpress" ), |
|
936 | + __( "life", "google-analytics-for-wordpress" ), |
|
937 | + __( "one", "google-analytics-for-wordpress" ), |
|
938 | + __( "want", "google-analytics-for-wordpress" ), |
|
939 | + __( "better", "google-analytics-for-wordpress" ), |
|
940 | + __( "little", "google-analytics-for-wordpress" ), |
|
941 | + __( "out", "google-analytics-for-wordpress" ), |
|
942 | + __( "watch", "google-analytics-for-wordpress" ), |
|
943 | + __( "boy", "google-analytics-for-wordpress" ), |
|
944 | + __( "look", "google-analytics-for-wordpress" ), |
|
945 | + __( "people", "google-analytics-for-wordpress" ), |
|
946 | + __( "way", "google-analytics-for-wordpress" ), |
|
947 | + __( "dog", "google-analytics-for-wordpress" ), |
|
948 | + __( "love", "google-analytics-for-wordpress" ), |
|
949 | + __( "photos", "google-analytics-for-wordpress" ), |
|
950 | + __( "ways", "google-analytics-for-wordpress" ), |
|
951 | + __( "down", "google-analytics-for-wordpress" ), |
|
952 | + __( "made", "google-analytics-for-wordpress" ), |
|
953 | + __( "really", "google-analytics-for-wordpress" ), |
|
954 | + __( "world", "google-analytics-for-wordpress" ), |
|
955 | + __( "facebook", "google-analytics-for-wordpress" ), |
|
956 | + __( "make", "google-analytics-for-wordpress" ), |
|
957 | + __( "reasons", "google-analytics-for-wordpress" ), |
|
958 | + __( "year", "google-analytics-for-wordpress" ), |
|
959 | + __( "first", "google-analytics-for-wordpress" ), |
|
960 | + __( "makes", "google-analytics-for-wordpress" ), |
|
961 | + __( "right", "google-analytics-for-wordpress" ), |
|
962 | + __( "years", "google-analytics-for-wordpress" ), |
|
963 | + __( "found", "google-analytics-for-wordpress" ), |
|
964 | + __( "man", "google-analytics-for-wordpress" ), |
|
965 | + __( "see", "google-analytics-for-wordpress" ), |
|
966 | + __( "you’ll", "google-analytics-for-wordpress" ), |
|
967 | + __( "girl", "google-analytics-for-wordpress" ), |
|
968 | + __( "media", "google-analytics-for-wordpress" ), |
|
969 | + __( "seen", "google-analytics-for-wordpress" ), |
|
970 | + __( "good", "google-analytics-for-wordpress" ), |
|
971 | + __( "mind", "google-analytics-for-wordpress" ), |
|
972 | + __( "social", "google-analytics-for-wordpress" ), |
|
973 | + __( "guy", "google-analytics-for-wordpress" ), |
|
974 | + __( "more", "google-analytics-for-wordpress" ), |
|
975 | + __( "something", "google-analytics-for-wordpress" ), |
|
976 | 976 | ); |
977 | 977 | } |
978 | 978 | } |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * @since 0.1 |
12 | 12 | * @author Debjit Saha |
13 | 13 | */ |
14 | -class MonsterInsightsHeadlineToolPlugin{ |
|
14 | +class MonsterInsightsHeadlineToolPlugin { |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Class Variables. |
@@ -154,21 +154,13 @@ discard block |
||
154 | 154 | $result->length = strlen( str_replace( ' ', '', $input ) ); |
155 | 155 | $scoret = $scoret + 3; |
156 | 156 | |
157 | - if ( $result->length <= 19 ) { $scoret += 5; } |
|
158 | - elseif ( $result->length >= 20 && $result->length <= 34 ) { $scoret += 8; } |
|
159 | - elseif ( $result->length >= 35 && $result->length <= 66 ) { $scoret += 11; } |
|
160 | - elseif ( $result->length >= 67 && $result->length <= 79 ) { $scoret += 8; } |
|
161 | - elseif ( $result->length >= 80 ) { $scoret += 5; } |
|
157 | + if ( $result->length <= 19 ) { $scoret += 5; } elseif ( $result->length >= 20 && $result->length <= 34 ) { $scoret += 8; } elseif ( $result->length >= 35 && $result->length <= 66 ) { $scoret += 11; } elseif ( $result->length >= 67 && $result->length <= 79 ) { $scoret += 8; } elseif ( $result->length >= 80 ) { $scoret += 5; } |
|
162 | 158 | |
163 | 159 | // Count - typically 6-7 words |
164 | 160 | $result->word_count = count( $input_array ); |
165 | 161 | $scoret = $scoret + 3; |
166 | 162 | |
167 | - if ( $result->word_count == 0 ) { $scoret = 0; } |
|
168 | - else if ( $result->word_count >= 2 && $result->word_count <= 4 ) { $scoret += 5; } |
|
169 | - elseif ( $result->word_count >= 5 && $result->word_count <= 9 ) { $scoret += 11; } |
|
170 | - elseif ( $result->word_count >= 10 && $result->word_count <= 11 ) { $scoret += 8; } |
|
171 | - elseif ( $result->word_count >= 12 ) { $scoret += 5; } |
|
163 | + if ( $result->word_count == 0 ) { $scoret = 0; } else if ( $result->word_count >= 2 && $result->word_count <= 4 ) { $scoret += 5; } elseif ( $result->word_count >= 5 && $result->word_count <= 9 ) { $scoret += 11; } elseif ( $result->word_count >= 10 && $result->word_count <= 11 ) { $scoret += 8; } elseif ( $result->word_count >= 12 ) { $scoret += 5; } |
|
172 | 164 | |
173 | 165 | // Calculate word match counts |
174 | 166 | $result->power_words = $this->match_words( $result->input, $result->input_array, $this->power_words ); |
@@ -196,8 +188,9 @@ discard block |
||
196 | 188 | |
197 | 189 | if ( $result->uncommon_words_per < 0.1 ) { |
198 | 190 | $result->word_balance_use[] = __('uncommon', 'google-analytics-for-wordpress'); |
199 | - } else |
|
200 | - $scoret = $scoret + 15; |
|
191 | + } else { |
|
192 | + $scoret = $scoret + 15; |
|
193 | + } |
|
201 | 194 | |
202 | 195 | if ( count( $result->power_words ) < 1 ) { |
203 | 196 | $result->word_balance_use[] = __('power', 'google-analytics-for-wordpress'); |
@@ -13,9 +13,9 @@ discard block |
||
13 | 13 | */ |
14 | 14 | public function __construct($baseDirectory = __DIR__) |
15 | 15 | { |
16 | - $this->directory = $baseDirectory; |
|
17 | - $this->prefix = __NAMESPACE__ . '\\'; |
|
18 | - $this->prefixLength = strlen($this->prefix); |
|
16 | + $this->directory = $baseDirectory; |
|
17 | + $this->prefix = __NAMESPACE__ . '\\'; |
|
18 | + $this->prefixLength = strlen($this->prefix); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | /** |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | */ |
26 | 26 | public static function register($prepend = false) |
27 | 27 | { |
28 | - spl_autoload_register(array(new self, 'autoload'), true, $prepend); |
|
28 | + spl_autoload_register(array(new self, 'autoload'), true, $prepend); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -35,13 +35,13 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public function autoload($className) |
37 | 37 | { |
38 | - if (0 === strpos($className, $this->prefix)) { |
|
39 | - $parts = explode('\\', substr($className, $this->prefixLength)); |
|
40 | - $filepath = $this->directory.DIRECTORY_SEPARATOR.implode(DIRECTORY_SEPARATOR, $parts).'.php'; |
|
38 | + if (0 === strpos($className, $this->prefix)) { |
|
39 | + $parts = explode('\\', substr($className, $this->prefixLength)); |
|
40 | + $filepath = $this->directory.DIRECTORY_SEPARATOR.implode(DIRECTORY_SEPARATOR, $parts).'.php'; |
|
41 | 41 | |
42 | - if (is_file($filepath)) { |
|
43 | - require($filepath); |
|
44 | - } |
|
45 | - } |
|
42 | + if (is_file($filepath)) { |
|
43 | + require($filepath); |
|
44 | + } |
|
45 | + } |
|
46 | 46 | } |
47 | 47 | } |
@@ -11,11 +11,11 @@ discard block |
||
11 | 11 | /** |
12 | 12 | * @param string $baseDirectory Base directory where the source files are located. |
13 | 13 | */ |
14 | - public function __construct($baseDirectory = __DIR__) |
|
14 | + public function __construct( $baseDirectory = __DIR__ ) |
|
15 | 15 | { |
16 | 16 | $this->directory = $baseDirectory; |
17 | 17 | $this->prefix = __NAMESPACE__ . '\\'; |
18 | - $this->prefixLength = strlen($this->prefix); |
|
18 | + $this->prefixLength = strlen( $this->prefix ); |
|
19 | 19 | } |
20 | 20 | |
21 | 21 | /** |
@@ -23,9 +23,9 @@ discard block |
||
23 | 23 | * |
24 | 24 | * @param bool $prepend Prepend the autoloader on the stack instead of appending it. |
25 | 25 | */ |
26 | - public static function register($prepend = false) |
|
26 | + public static function register( $prepend = false ) |
|
27 | 27 | { |
28 | - spl_autoload_register(array(new self, 'autoload'), true, $prepend); |
|
28 | + spl_autoload_register( array( new self, 'autoload' ), true, $prepend ); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | /** |
@@ -33,14 +33,14 @@ discard block |
||
33 | 33 | * |
34 | 34 | * @param string $className Fully qualified name of a class. |
35 | 35 | */ |
36 | - public function autoload($className) |
|
36 | + public function autoload( $className ) |
|
37 | 37 | { |
38 | - if (0 === strpos($className, $this->prefix)) { |
|
39 | - $parts = explode('\\', substr($className, $this->prefixLength)); |
|
40 | - $filepath = $this->directory.DIRECTORY_SEPARATOR.implode(DIRECTORY_SEPARATOR, $parts).'.php'; |
|
38 | + if ( 0 === strpos( $className, $this->prefix ) ) { |
|
39 | + $parts = explode( '\\', substr( $className, $this->prefixLength ) ); |
|
40 | + $filepath = $this->directory . DIRECTORY_SEPARATOR . implode( DIRECTORY_SEPARATOR, $parts ) . '.php'; |
|
41 | 41 | |
42 | - if (is_file($filepath)) { |
|
43 | - require($filepath); |
|
42 | + if ( is_file( $filepath ) ) { |
|
43 | + require( $filepath ); |
|
44 | 44 | } |
45 | 45 | } |
46 | 46 | } |
@@ -2,8 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace PHPInsight; |
4 | 4 | |
5 | -class Autoloader |
|
6 | -{ |
|
5 | +class Autoloader { |
|
7 | 6 | private $directory; |
8 | 7 | private $prefix; |
9 | 8 | private $prefixLength; |
@@ -11,8 +10,7 @@ discard block |
||
11 | 10 | /** |
12 | 11 | * @param string $baseDirectory Base directory where the source files are located. |
13 | 12 | */ |
14 | - public function __construct($baseDirectory = __DIR__) |
|
15 | - { |
|
13 | + public function __construct($baseDirectory = __DIR__) { |
|
16 | 14 | $this->directory = $baseDirectory; |
17 | 15 | $this->prefix = __NAMESPACE__ . '\\'; |
18 | 16 | $this->prefixLength = strlen($this->prefix); |
@@ -23,8 +21,7 @@ discard block |
||
23 | 21 | * |
24 | 22 | * @param bool $prepend Prepend the autoloader on the stack instead of appending it. |
25 | 23 | */ |
26 | - public static function register($prepend = false) |
|
27 | - { |
|
24 | + public static function register($prepend = false) { |
|
28 | 25 | spl_autoload_register(array(new self, 'autoload'), true, $prepend); |
29 | 26 | } |
30 | 27 | |
@@ -33,8 +30,7 @@ discard block |
||
33 | 30 | * |
34 | 31 | * @param string $className Fully qualified name of a class. |
35 | 32 | */ |
36 | - public function autoload($className) |
|
37 | - { |
|
33 | + public function autoload($className) { |
|
38 | 34 | if (0 === strpos($className, $this->prefix)) { |
39 | 35 | $parts = explode('\\', substr($className, $this->prefixLength)); |
40 | 36 | $filepath = $this->directory.DIRECTORY_SEPARATOR.implode(DIRECTORY_SEPARATOR, $parts).'.php'; |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | * Classification of opinions |
66 | 66 | * @var array |
67 | 67 | */ |
68 | - private $classes = array('pos', 'neg', 'neu'); |
|
68 | + private $classes = array( 'pos', 'neg', 'neu' ); |
|
69 | 69 | |
70 | 70 | /** |
71 | 71 | * Token score per class |
@@ -114,10 +114,10 @@ discard block |
||
114 | 114 | * @param str $dataFolder base folder |
115 | 115 | * Sets defaults and loads/caches dictionaries |
116 | 116 | */ |
117 | - public function __construct($dataFolder = false) { |
|
117 | + public function __construct( $dataFolder = false ) { |
|
118 | 118 | |
119 | 119 | //set the base folder for the data models |
120 | - $this->setDataFolder($dataFolder); |
|
120 | + $this->setDataFolder( $dataFolder ); |
|
121 | 121 | |
122 | 122 | //load and cache directories, get ignore and prefix lists |
123 | 123 | $this->loadDefaults(); |
@@ -129,20 +129,20 @@ discard block |
||
129 | 129 | * @param str $sentence Text to analyze |
130 | 130 | * @return int Score |
131 | 131 | */ |
132 | - public function score($sentence) { |
|
132 | + public function score( $sentence ) { |
|
133 | 133 | |
134 | 134 | //For each negative prefix in the list |
135 | - foreach ($this->negPrefixList as $negPrefix) { |
|
135 | + foreach ( $this->negPrefixList as $negPrefix ) { |
|
136 | 136 | |
137 | 137 | //Search if that prefix is in the document |
138 | - if (strpos($sentence, $negPrefix) !== false) { |
|
138 | + if ( strpos( $sentence, $negPrefix ) !== false ) { |
|
139 | 139 | //Reove the white space after the negative prefix |
140 | - $sentence = str_replace($negPrefix . ' ', $negPrefix, $sentence); |
|
140 | + $sentence = str_replace( $negPrefix . ' ', $negPrefix, $sentence ); |
|
141 | 141 | } |
142 | 142 | } |
143 | 143 | |
144 | 144 | //Tokenise Document |
145 | - $tokens = $this->_getTokens($sentence); |
|
145 | + $tokens = $this->_getTokens( $sentence ); |
|
146 | 146 | // calculate the score in each category |
147 | 147 | |
148 | 148 | $total_score = 0; |
@@ -151,18 +151,18 @@ discard block |
||
151 | 151 | $scores = array(); |
152 | 152 | |
153 | 153 | //Loop through all of the different classes set in the $classes variable |
154 | - foreach ($this->classes as $class) { |
|
154 | + foreach ( $this->classes as $class ) { |
|
155 | 155 | |
156 | 156 | //In the scores array add another dimention for the class and set it's value to 1. EG $scores->neg->1 |
157 | 157 | $scores[$class] = 1; |
158 | 158 | |
159 | 159 | //For each of the individual words used loop through to see if they match anything in the $dictionary |
160 | - foreach ($tokens as $token) { |
|
160 | + foreach ( $tokens as $token ) { |
|
161 | 161 | |
162 | 162 | //If statement so to ignore tokens which are either too long or too short or in the $ignoreList |
163 | - if (strlen($token) > $this->minTokenLength && strlen($token) < $this->maxTokenLength && !in_array($token, $this->ignoreList)) { |
|
163 | + if ( strlen( $token ) > $this->minTokenLength && strlen( $token ) < $this->maxTokenLength && ! in_array( $token, $this->ignoreList ) ) { |
|
164 | 164 | //If dictionary[token][class] is set |
165 | - if (isset($this->dictionary[$token][$class])) { |
|
165 | + if ( isset( $this->dictionary[$token][$class] ) ) { |
|
166 | 166 | //Set count equal to it |
167 | 167 | $count = $this->dictionary[$token][$class]; |
168 | 168 | } else { |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | } |
171 | 171 | |
172 | 172 | //Score[class] is calcumeted by $scores[class] x $count +1 divided by the $classTokCounts[class] + $tokCount |
173 | - $scores[$class] *= ($count + 1); |
|
173 | + $scores[$class] *= ( $count + 1 ); |
|
174 | 174 | } |
175 | 175 | } |
176 | 176 | |
@@ -179,16 +179,16 @@ discard block |
||
179 | 179 | } |
180 | 180 | |
181 | 181 | //Makes the scores relative percents |
182 | - foreach ($this->classes as $class) { |
|
182 | + foreach ( $this->classes as $class ) { |
|
183 | 183 | $total_score += $scores[$class]; |
184 | 184 | } |
185 | 185 | |
186 | - foreach ($this->classes as $class) { |
|
187 | - $scores[$class] = round($scores[$class] / $total_score, 3); |
|
186 | + foreach ( $this->classes as $class ) { |
|
187 | + $scores[$class] = round( $scores[$class] / $total_score, 3 ); |
|
188 | 188 | } |
189 | 189 | |
190 | 190 | //Sort array in reverse order |
191 | - arsort($scores); |
|
191 | + arsort( $scores ); |
|
192 | 192 | |
193 | 193 | return $scores; |
194 | 194 | } |
@@ -199,12 +199,12 @@ discard block |
||
199 | 199 | * @param str $sentence |
200 | 200 | * @return str pos|neu|neg |
201 | 201 | */ |
202 | - public function categorise($sentence) { |
|
202 | + public function categorise( $sentence ) { |
|
203 | 203 | |
204 | - $scores = $this->score($sentence); |
|
204 | + $scores = $this->score( $sentence ); |
|
205 | 205 | |
206 | 206 | //Classification is the key to the scores array |
207 | - $classification = key($scores); |
|
207 | + $classification = key( $scores ); |
|
208 | 208 | |
209 | 209 | return $classification; |
210 | 210 | } |
@@ -215,30 +215,30 @@ discard block |
||
215 | 215 | * @param str $class |
216 | 216 | * @return boolean |
217 | 217 | */ |
218 | - public function setDictionary($class) { |
|
218 | + public function setDictionary( $class ) { |
|
219 | 219 | /** |
220 | 220 | * For some people this file extention causes some problems! |
221 | 221 | */ |
222 | 222 | $fn = "{$this->dataFolder}data.{$class}.php"; |
223 | 223 | |
224 | - if (file_exists($fn)) { |
|
225 | - $temp = file_get_contents($fn); |
|
226 | - $words = unserialize($temp); |
|
224 | + if ( file_exists( $fn ) ) { |
|
225 | + $temp = file_get_contents( $fn ); |
|
226 | + $words = unserialize( $temp ); |
|
227 | 227 | } else { |
228 | 228 | echo 'File does not exist: ' . $fn; |
229 | 229 | } |
230 | 230 | |
231 | 231 | //Loop through all of the entries |
232 | - foreach ($words as $word) { |
|
232 | + foreach ( $words as $word ) { |
|
233 | 233 | |
234 | 234 | $this->docCount++; |
235 | 235 | $this->classDocCounts[$class]++; |
236 | 236 | |
237 | 237 | //Trim word |
238 | - $word = trim($word); |
|
238 | + $word = trim( $word ); |
|
239 | 239 | |
240 | 240 | //If this word isn't already in the dictionary with this class |
241 | - if (!isset($this->dictionary[$word][$class])) { |
|
241 | + if ( ! isset( $this->dictionary[$word][$class] ) ) { |
|
242 | 242 | |
243 | 243 | //Add to this word to the dictionary and set counter value as one. This function ensures that if a word is in the text file more than once it still is only accounted for one in the array |
244 | 244 | $this->dictionary[$word][$class] = 1; |
@@ -256,22 +256,22 @@ discard block |
||
256 | 256 | * @param str $dataFolder base folder |
257 | 257 | * @param bool $loadDefaults true - load everything by default | false - just change the directory |
258 | 258 | */ |
259 | - public function setDataFolder($dataFolder = false, $loadDefaults = false){ |
|
259 | + public function setDataFolder( $dataFolder = false, $loadDefaults = false ) { |
|
260 | 260 | //if $dataFolder not provided, load default, else set the provided one |
261 | - if($dataFolder == false){ |
|
261 | + if ( $dataFolder == false ) { |
|
262 | 262 | $this->dataFolder = __DIR__ . '/data/'; |
263 | 263 | } |
264 | - else{ |
|
265 | - if(file_exists($dataFolder)){ |
|
264 | + else { |
|
265 | + if ( file_exists( $dataFolder ) ) { |
|
266 | 266 | $this->dataFolder = $dataFolder; |
267 | 267 | } |
268 | - else{ |
|
269 | - echo 'Error: could not find the directory - '.$dataFolder; |
|
268 | + else { |
|
269 | + echo 'Error: could not find the directory - ' . $dataFolder; |
|
270 | 270 | } |
271 | 271 | } |
272 | 272 | |
273 | 273 | //load default directories, ignore and prefixe lists |
274 | - if($loadDefaults !== false){ |
|
274 | + if ( $loadDefaults !== false ) { |
|
275 | 275 | $this->loadDefaults(); |
276 | 276 | } |
277 | 277 | } |
@@ -279,29 +279,29 @@ discard block |
||
279 | 279 | /** |
280 | 280 | * Load and cache directories, get ignore and prefix lists |
281 | 281 | */ |
282 | - private function loadDefaults(){ |
|
282 | + private function loadDefaults() { |
|
283 | 283 | // Load and cache dictionaries |
284 | - foreach ($this->classes as $class) { |
|
285 | - if (!$this->setDictionary($class)) { |
|
284 | + foreach ( $this->classes as $class ) { |
|
285 | + if ( ! $this->setDictionary( $class ) ) { |
|
286 | 286 | echo "Error: Dictionary for class '$class' could not be loaded"; |
287 | 287 | } |
288 | 288 | } |
289 | 289 | |
290 | - if (!isset($this->dictionary) || empty($this->dictionary)) |
|
290 | + if ( ! isset( $this->dictionary ) || empty( $this->dictionary ) ) |
|
291 | 291 | echo 'Error: Dictionaries not set'; |
292 | 292 | |
293 | 293 | //Run function to get ignore list |
294 | - $this->ignoreList = $this->getList('ign'); |
|
294 | + $this->ignoreList = $this->getList( 'ign' ); |
|
295 | 295 | |
296 | 296 | //If ingnoreList not get give error message |
297 | - if (!isset($this->ignoreList)) |
|
297 | + if ( ! isset( $this->ignoreList ) ) |
|
298 | 298 | echo 'Error: Ignore List not set'; |
299 | 299 | |
300 | 300 | //Get the list of negative prefixes |
301 | - $this->negPrefixList = $this->getList('prefix'); |
|
301 | + $this->negPrefixList = $this->getList( 'prefix' ); |
|
302 | 302 | |
303 | 303 | //If neg prefix list not set give error |
304 | - if (!isset($this->negPrefixList)) |
|
304 | + if ( ! isset( $this->negPrefixList ) ) |
|
305 | 305 | echo 'Error: Ignore List not set'; |
306 | 306 | } |
307 | 307 | |
@@ -311,20 +311,20 @@ discard block |
||
311 | 311 | * @param str $string String being broken up |
312 | 312 | * @return array An array of tokens |
313 | 313 | */ |
314 | - private function _getTokens($string) { |
|
314 | + private function _getTokens( $string ) { |
|
315 | 315 | |
316 | 316 | // Replace line endings with spaces |
317 | - $string = str_replace("\r\n", " ", $string); |
|
317 | + $string = str_replace( "\r\n", " ", $string ); |
|
318 | 318 | |
319 | 319 | //Clean the string so is free from accents |
320 | - $string = $this->_cleanString($string); |
|
320 | + $string = $this->_cleanString( $string ); |
|
321 | 321 | |
322 | 322 | //Make all texts lowercase as the database of words in in lowercase |
323 | - $string = strtolower($string); |
|
324 | - $string = preg_replace('/[[:punct:]]+/', '', $string); |
|
323 | + $string = strtolower( $string ); |
|
324 | + $string = preg_replace( '/[[:punct:]]+/', '', $string ); |
|
325 | 325 | |
326 | 326 | //Break string into individual words using explode putting them into an array |
327 | - $matches = explode(' ', $string); |
|
327 | + $matches = explode( ' ', $string ); |
|
328 | 328 | |
329 | 329 | //Return array with each individual token |
330 | 330 | return $matches; |
@@ -336,28 +336,28 @@ discard block |
||
336 | 336 | * @param str $type |
337 | 337 | * @return array |
338 | 338 | */ |
339 | - public function getList($type) { |
|
339 | + public function getList( $type ) { |
|
340 | 340 | //Set up empty word list array |
341 | 341 | $wordList = array(); |
342 | 342 | |
343 | 343 | $fn = "{$this->dataFolder}data.{$type}.php"; |
344 | 344 | ; |
345 | - if (file_exists($fn)) { |
|
346 | - $temp = file_get_contents($fn); |
|
347 | - $words = unserialize($temp); |
|
345 | + if ( file_exists( $fn ) ) { |
|
346 | + $temp = file_get_contents( $fn ); |
|
347 | + $words = unserialize( $temp ); |
|
348 | 348 | } else { |
349 | 349 | return 'File does not exist: ' . $fn; |
350 | 350 | } |
351 | 351 | |
352 | 352 | //Loop through results |
353 | - foreach ($words as $word) { |
|
353 | + foreach ( $words as $word ) { |
|
354 | 354 | //remove any slashes |
355 | - $word = stripcslashes($word); |
|
355 | + $word = stripcslashes( $word ); |
|
356 | 356 | //Trim word |
357 | - $trimmed = trim($word); |
|
357 | + $trimmed = trim( $word ); |
|
358 | 358 | |
359 | 359 | //Push results into $wordList array |
360 | - array_push($wordList, $trimmed); |
|
360 | + array_push( $wordList, $trimmed ); |
|
361 | 361 | } |
362 | 362 | //Return $wordList |
363 | 363 | return $wordList; |
@@ -369,49 +369,49 @@ discard block |
||
369 | 369 | * @param str $string |
370 | 370 | * @return str |
371 | 371 | */ |
372 | - private function _cleanString($string) { |
|
372 | + private function _cleanString( $string ) { |
|
373 | 373 | |
374 | 374 | $diac = |
375 | - /* A */ chr(192) . chr(193) . chr(194) . chr(195) . chr(196) . chr(197) . |
|
376 | - /* a */ chr(224) . chr(225) . chr(226) . chr(227) . chr(228) . chr(229) . |
|
377 | - /* O */ chr(210) . chr(211) . chr(212) . chr(213) . chr(214) . chr(216) . |
|
378 | - /* o */ chr(242) . chr(243) . chr(244) . chr(245) . chr(246) . chr(248) . |
|
379 | - /* E */ chr(200) . chr(201) . chr(202) . chr(203) . |
|
380 | - /* e */ chr(232) . chr(233) . chr(234) . chr(235) . |
|
381 | - /* Cc */ chr(199) . chr(231) . |
|
382 | - /* I */ chr(204) . chr(205) . chr(206) . chr(207) . |
|
383 | - /* i */ chr(236) . chr(237) . chr(238) . chr(239) . |
|
384 | - /* U */ chr(217) . chr(218) . chr(219) . chr(220) . |
|
385 | - /* u */ chr(249) . chr(250) . chr(251) . chr(252) . |
|
386 | - /* yNn */ chr(255) . chr(209) . chr(241); |
|
387 | - |
|
388 | - return strtolower(strtr($string, $diac, 'AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn')); |
|
375 | + /* A */ chr( 192 ) . chr( 193 ) . chr( 194 ) . chr( 195 ) . chr( 196 ) . chr( 197 ) . |
|
376 | + /* a */ chr( 224 ) . chr( 225 ) . chr( 226 ) . chr( 227 ) . chr( 228 ) . chr( 229 ) . |
|
377 | + /* O */ chr( 210 ) . chr( 211 ) . chr( 212 ) . chr( 213 ) . chr( 214 ) . chr( 216 ) . |
|
378 | + /* o */ chr( 242 ) . chr( 243 ) . chr( 244 ) . chr( 245 ) . chr( 246 ) . chr( 248 ) . |
|
379 | + /* E */ chr( 200 ) . chr( 201 ) . chr( 202 ) . chr( 203 ) . |
|
380 | + /* e */ chr( 232 ) . chr( 233 ) . chr( 234 ) . chr( 235 ) . |
|
381 | + /* Cc */ chr( 199 ) . chr( 231 ) . |
|
382 | + /* I */ chr( 204 ) . chr( 205 ) . chr( 206 ) . chr( 207 ) . |
|
383 | + /* i */ chr( 236 ) . chr( 237 ) . chr( 238 ) . chr( 239 ) . |
|
384 | + /* U */ chr( 217 ) . chr( 218 ) . chr( 219 ) . chr( 220 ) . |
|
385 | + /* u */ chr( 249 ) . chr( 250 ) . chr( 251 ) . chr( 252 ) . |
|
386 | + /* yNn */ chr( 255 ) . chr( 209 ) . chr( 241 ); |
|
387 | + |
|
388 | + return strtolower( strtr( $string, $diac, 'AAAAAAaaaaaaOOOOOOooooooEEEEeeeeCcIIIIiiiiUUUUuuuuyNn' ) ); |
|
389 | 389 | } |
390 | 390 | |
391 | 391 | /** |
392 | 392 | * Deletes old data/data.* files |
393 | 393 | * Creates new files from updated source fi |
394 | 394 | */ |
395 | - public function reloadDictionaries(){ |
|
395 | + public function reloadDictionaries() { |
|
396 | 396 | |
397 | - foreach($this->classes as $class){ |
|
397 | + foreach ( $this->classes as $class ) { |
|
398 | 398 | $fn = "{$this->dataFolder}data.{$class}.php"; |
399 | - if (file_exists($fn)) { |
|
400 | - unlink($fn); |
|
399 | + if ( file_exists( $fn ) ) { |
|
400 | + unlink( $fn ); |
|
401 | 401 | } |
402 | 402 | } |
403 | 403 | |
404 | 404 | $dictionaries = __DIR__ . '/dictionaries/'; |
405 | 405 | |
406 | - foreach($this->classes as $class){ |
|
406 | + foreach ( $this->classes as $class ) { |
|
407 | 407 | $dict = "{$dictionaries}source.{$class}.php"; |
408 | 408 | |
409 | - require_once($dict); |
|
409 | + require_once( $dict ); |
|
410 | 410 | |
411 | 411 | $data = $class; |
412 | 412 | |
413 | 413 | $fn = "{$this->dataFolder}data.{$class}.php"; |
414 | - file_put_contents($fn, serialize($$data)); |
|
414 | + file_put_contents( $fn, serialize( $$data ) ); |
|
415 | 415 | } |
416 | 416 | |
417 | 417 |
@@ -256,22 +256,20 @@ discard block |
||
256 | 256 | * @param str $dataFolder base folder |
257 | 257 | * @param bool $loadDefaults true - load everything by default | false - just change the directory |
258 | 258 | */ |
259 | - public function setDataFolder($dataFolder = false, $loadDefaults = false){ |
|
259 | + public function setDataFolder($dataFolder = false, $loadDefaults = false) { |
|
260 | 260 | //if $dataFolder not provided, load default, else set the provided one |
261 | - if($dataFolder == false){ |
|
261 | + if($dataFolder == false) { |
|
262 | 262 | $this->dataFolder = __DIR__ . '/data/'; |
263 | - } |
|
264 | - else{ |
|
265 | - if(file_exists($dataFolder)){ |
|
263 | + } else { |
|
264 | + if(file_exists($dataFolder)) { |
|
266 | 265 | $this->dataFolder = $dataFolder; |
267 | - } |
|
268 | - else{ |
|
266 | + } else { |
|
269 | 267 | echo 'Error: could not find the directory - '.$dataFolder; |
270 | 268 | } |
271 | 269 | } |
272 | 270 | |
273 | 271 | //load default directories, ignore and prefixe lists |
274 | - if($loadDefaults !== false){ |
|
272 | + if($loadDefaults !== false) { |
|
275 | 273 | $this->loadDefaults(); |
276 | 274 | } |
277 | 275 | } |
@@ -279,7 +277,7 @@ discard block |
||
279 | 277 | /** |
280 | 278 | * Load and cache directories, get ignore and prefix lists |
281 | 279 | */ |
282 | - private function loadDefaults(){ |
|
280 | + private function loadDefaults() { |
|
283 | 281 | // Load and cache dictionaries |
284 | 282 | foreach ($this->classes as $class) { |
285 | 283 | if (!$this->setDictionary($class)) { |
@@ -287,22 +285,25 @@ discard block |
||
287 | 285 | } |
288 | 286 | } |
289 | 287 | |
290 | - if (!isset($this->dictionary) || empty($this->dictionary)) |
|
291 | - echo 'Error: Dictionaries not set'; |
|
288 | + if (!isset($this->dictionary) || empty($this->dictionary)) { |
|
289 | + echo 'Error: Dictionaries not set'; |
|
290 | + } |
|
292 | 291 | |
293 | 292 | //Run function to get ignore list |
294 | 293 | $this->ignoreList = $this->getList('ign'); |
295 | 294 | |
296 | 295 | //If ingnoreList not get give error message |
297 | - if (!isset($this->ignoreList)) |
|
298 | - echo 'Error: Ignore List not set'; |
|
296 | + if (!isset($this->ignoreList)) { |
|
297 | + echo 'Error: Ignore List not set'; |
|
298 | + } |
|
299 | 299 | |
300 | 300 | //Get the list of negative prefixes |
301 | 301 | $this->negPrefixList = $this->getList('prefix'); |
302 | 302 | |
303 | 303 | //If neg prefix list not set give error |
304 | - if (!isset($this->negPrefixList)) |
|
305 | - echo 'Error: Ignore List not set'; |
|
304 | + if (!isset($this->negPrefixList)) { |
|
305 | + echo 'Error: Ignore List not set'; |
|
306 | + } |
|
306 | 307 | } |
307 | 308 | |
308 | 309 | /** |
@@ -392,9 +393,9 @@ discard block |
||
392 | 393 | * Deletes old data/data.* files |
393 | 394 | * Creates new files from updated source fi |
394 | 395 | */ |
395 | - public function reloadDictionaries(){ |
|
396 | + public function reloadDictionaries() { |
|
396 | 397 | |
397 | - foreach($this->classes as $class){ |
|
398 | + foreach($this->classes as $class) { |
|
398 | 399 | $fn = "{$this->dataFolder}data.{$class}.php"; |
399 | 400 | if (file_exists($fn)) { |
400 | 401 | unlink($fn); |
@@ -403,7 +404,7 @@ discard block |
||
403 | 404 | |
404 | 405 | $dictionaries = __DIR__ . '/dictionaries/'; |
405 | 406 | |
406 | - foreach($this->classes as $class){ |
|
407 | + foreach($this->classes as $class) { |
|
407 | 408 | $dict = "{$dictionaries}source.{$class}.php"; |
408 | 409 | |
409 | 410 | require_once($dict); |
@@ -7,6 +7,6 @@ |
||
7 | 7 | * file that was distributed with this source code. |
8 | 8 | */ |
9 | 9 | |
10 | -require __DIR__.'/lib/PHPInsight/Autoloader.php'; |
|
10 | +require __DIR__ . '/lib/PHPInsight/Autoloader.php'; |
|
11 | 11 | |
12 | 12 | PHPInsight\Autoloader::register(); |
@@ -1,5 +1,5 @@ discard block |
||
1 | 1 | <?php |
2 | -if (PHP_SAPI != 'cli') { |
|
2 | +if ( PHP_SAPI != 'cli' ) { |
|
3 | 3 | echo "<pre>"; |
4 | 4 | } |
5 | 5 | |
@@ -18,15 +18,15 @@ discard block |
||
18 | 18 | |
19 | 19 | require_once __DIR__ . '/../autoload.php'; |
20 | 20 | $sentiment = new \PHPInsight\Sentiment(); |
21 | -foreach ($strings as $string) { |
|
21 | +foreach ( $strings as $string ) { |
|
22 | 22 | |
23 | 23 | // calculations: |
24 | - $scores = $sentiment->score($string); |
|
25 | - $class = $sentiment->categorise($string); |
|
24 | + $scores = $sentiment->score( $string ); |
|
25 | + $class = $sentiment->categorise( $string ); |
|
26 | 26 | |
27 | 27 | // output: |
28 | 28 | echo "String: $string\n"; |
29 | 29 | echo "Dominant: $class, scores: "; |
30 | - print_r($scores); |
|
30 | + print_r( $scores ); |
|
31 | 31 | echo "\n"; |
32 | 32 | } |
@@ -1389,13 +1389,13 @@ |
||
1389 | 1389 | } |
1390 | 1390 | |
1391 | 1391 | /** Decode special characters, both alpha- (<) and numeric-based ('). |
1392 | - * |
|
1393 | - * @since 7.10.5 |
|
1394 | - * |
|
1395 | - * @param string $string Raw string to decode. |
|
1396 | - * |
|
1397 | - * @return string |
|
1398 | - */ |
|
1392 | + * |
|
1393 | + * @since 7.10.5 |
|
1394 | + * |
|
1395 | + * @param string $string Raw string to decode. |
|
1396 | + * |
|
1397 | + * @return string |
|
1398 | + */ |
|
1399 | 1399 | function monsterinsights_decode_string( $string ) { |
1400 | 1400 | |
1401 | 1401 | if ( ! is_string( $string ) ) { |
@@ -32,8 +32,8 @@ discard block |
||
32 | 32 | $user = new WP_User( $user_id ); |
33 | 33 | } |
34 | 34 | |
35 | - $track_user = true; |
|
36 | - $roles = monsterinsights_get_option( 'ignore_users', array() ); |
|
35 | + $track_user = true; |
|
36 | + $roles = monsterinsights_get_option( 'ignore_users', array() ); |
|
37 | 37 | |
38 | 38 | if ( ! empty( $roles ) && is_array( $roles ) ) { |
39 | 39 | foreach ( $roles as $role ) { |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | |
183 | 183 | |
184 | 184 | function monsterinsights_generate_ga_client_id() { |
185 | - return rand(100000000,999999999) . '.' . time(); |
|
185 | + return rand( 100000000, 999999999 ) . '.' . time(); |
|
186 | 186 | } |
187 | 187 | |
188 | 188 | |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | $stop = time(); |
203 | 203 | } |
204 | 204 | |
205 | - $diff = (int) abs( $stop - $start ); |
|
205 | + $diff = (int) abs( $stop - $start ); |
|
206 | 206 | $hours = round( $diff / HOUR_IN_SECONDS ); |
207 | 207 | return $hours; |
208 | 208 | } |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | $editable_roles = apply_filters( 'editable_roles', $all_roles ); |
261 | 261 | |
262 | 262 | foreach ( $editable_roles as $id => $name ) { |
263 | - $roles[ $id ] = translate_user_role( $name['name'] ); |
|
263 | + $roles[$id] = translate_user_role( $name['name'] ); |
|
264 | 264 | } |
265 | 265 | |
266 | 266 | return $roles; |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | |
287 | 287 | foreach ( $editable_roles as $id => $role ) { |
288 | 288 | if ( isset( $role['capabilities']['manage_options'] ) && $role['capabilities']['manage_options'] ) { |
289 | - $roles[ $id ] = translate_user_role( $role['name'] ); |
|
289 | + $roles[$id] = translate_user_role( $role['name'] ); |
|
290 | 290 | } |
291 | 291 | } |
292 | 292 | |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | |
333 | 333 | } |
334 | 334 | if ( substr_count( $host, '.' ) > 1 ) { |
335 | - $subdomains_to_check = array( 'dev.', '*.staging.', 'beta.', 'test.' ); |
|
335 | + $subdomains_to_check = array( 'dev.', '*.staging.', 'beta.', 'test.' ); |
|
336 | 336 | foreach ( $subdomains_to_check as $subdomain ) { |
337 | 337 | $subdomain = str_replace( '.', '(.)', $subdomain ); |
338 | 338 | $subdomain = str_replace( array( '*', '(.)' ), '(.*)', $subdomain ); |
@@ -348,16 +348,16 @@ discard block |
||
348 | 348 | |
349 | 349 | // Set cookie to expire in 2 years |
350 | 350 | function monsterinsights_get_cookie_expiration_date( $time ) { |
351 | - return date('D, j F Y H:i:s', time() + $time ); |
|
351 | + return date( 'D, j F Y H:i:s', time() + $time ); |
|
352 | 352 | } |
353 | 353 | |
354 | 354 | function monsterinsights_string_ends_with( $string, $ending ) { |
355 | - $strlen = strlen($string); |
|
356 | - $endinglen = strlen($ending); |
|
355 | + $strlen = strlen( $string ); |
|
356 | + $endinglen = strlen( $ending ); |
|
357 | 357 | if ( $endinglen > $strlen ) { |
358 | 358 | return false; |
359 | 359 | } |
360 | - return substr_compare( $string, $ending, $strlen - $endinglen, $endinglen) === 0; |
|
360 | + return substr_compare( $string, $ending, $strlen - $endinglen, $endinglen ) === 0; |
|
361 | 361 | } |
362 | 362 | |
363 | 363 | function monsterinsights_string_starts_with( $string, $start ) { |
@@ -887,11 +887,11 @@ discard block |
||
887 | 887 | return $countries; |
888 | 888 | } |
889 | 889 | |
890 | -function monsterinsights_get_api_url(){ |
|
890 | +function monsterinsights_get_api_url() { |
|
891 | 891 | return apply_filters( 'monsterinsights_get_api_url', 'api.monsterinsights.com/v2/' ); |
892 | 892 | } |
893 | 893 | |
894 | -function monsterinsights_get_licensing_url(){ |
|
894 | +function monsterinsights_get_licensing_url() { |
|
895 | 895 | return apply_filters( 'monsterinsights_get_licensing_url', 'https://www.monsterinsights.com' ); |
896 | 896 | } |
897 | 897 | |
@@ -935,7 +935,7 @@ discard block |
||
935 | 935 | } |
936 | 936 | } |
937 | 937 | |
938 | -if ( ! function_exists ( 'remove_class_filter' ) ) { |
|
938 | +if ( ! function_exists( 'remove_class_filter' ) ) { |
|
939 | 939 | /** |
940 | 940 | * Remove Class Filter Without Access to Class Object |
941 | 941 | * |
@@ -956,7 +956,7 @@ discard block |
||
956 | 956 | function remove_class_filter( $tag, $class_name = '', $method_name = '', $priority = 10 ) { |
957 | 957 | global $wp_filter; |
958 | 958 | // Check that filter actually exists first |
959 | - if ( ! isset( $wp_filter[ $tag ] ) ) return FALSE; |
|
959 | + if ( ! isset( $wp_filter[$tag] ) ) return FALSE; |
|
960 | 960 | /** |
961 | 961 | * If filter config is an object, means we're using WordPress 4.7+ and the config is no longer |
962 | 962 | * a simple array, rather it is an object that implements the ArrayAccess interface. |
@@ -965,33 +965,33 @@ discard block |
||
965 | 965 | * |
966 | 966 | * @see https://make.wordpress.org/core/2016/09/08/wp_hook-next-generation-actions-and-filters/ |
967 | 967 | */ |
968 | - if ( is_object( $wp_filter[ $tag ] ) && isset( $wp_filter[ $tag ]->callbacks ) ) { |
|
969 | - $callbacks = &$wp_filter[ $tag ]->callbacks; |
|
968 | + if ( is_object( $wp_filter[$tag] ) && isset( $wp_filter[$tag]->callbacks ) ) { |
|
969 | + $callbacks = &$wp_filter[$tag]->callbacks; |
|
970 | 970 | } else { |
971 | - $callbacks = &$wp_filter[ $tag ]; |
|
971 | + $callbacks = &$wp_filter[$tag]; |
|
972 | 972 | } |
973 | 973 | // Exit if there aren't any callbacks for specified priority |
974 | - if ( ! isset( $callbacks[ $priority ] ) || empty( $callbacks[ $priority ] ) ) return FALSE; |
|
974 | + if ( ! isset( $callbacks[$priority] ) || empty( $callbacks[$priority] ) ) return FALSE; |
|
975 | 975 | // Loop through each filter for the specified priority, looking for our class & method |
976 | - foreach( (array) $callbacks[ $priority ] as $filter_id => $filter ) { |
|
976 | + foreach ( (array) $callbacks[$priority] as $filter_id => $filter ) { |
|
977 | 977 | // Filter should always be an array - array( $this, 'method' ), if not goto next |
978 | - if ( ! isset( $filter[ 'function' ] ) || ! is_array( $filter[ 'function' ] ) ) continue; |
|
978 | + if ( ! isset( $filter['function'] ) || ! is_array( $filter['function'] ) ) continue; |
|
979 | 979 | // If first value in array is not an object, it can't be a class |
980 | - if ( ! is_object( $filter[ 'function' ][ 0 ] ) ) continue; |
|
980 | + if ( ! is_object( $filter['function'][0] ) ) continue; |
|
981 | 981 | // Method doesn't match the one we're looking for, goto next |
982 | - if ( $filter[ 'function' ][ 1 ] !== $method_name ) continue; |
|
982 | + if ( $filter['function'][1] !== $method_name ) continue; |
|
983 | 983 | // Method matched, now let's check the Class |
984 | - if ( get_class( $filter[ 'function' ][ 0 ] ) === $class_name ) { |
|
984 | + if ( get_class( $filter['function'][0] ) === $class_name ) { |
|
985 | 985 | // Now let's remove it from the array |
986 | - unset( $callbacks[ $priority ][ $filter_id ] ); |
|
986 | + unset( $callbacks[$priority][$filter_id] ); |
|
987 | 987 | // and if it was the only filter in that priority, unset that priority |
988 | - if ( empty( $callbacks[ $priority ] ) ) unset( $callbacks[ $priority ] ); |
|
988 | + if ( empty( $callbacks[$priority] ) ) unset( $callbacks[$priority] ); |
|
989 | 989 | // and if the only filter for that tag, set the tag to an empty array |
990 | 990 | if ( empty( $callbacks ) ) $callbacks = array(); |
991 | 991 | // If using WordPress older than 4.7 |
992 | - if ( ! is_object( $wp_filter[ $tag ] ) ) { |
|
992 | + if ( ! is_object( $wp_filter[$tag] ) ) { |
|
993 | 993 | // Remove this filter from merged_filters, which specifies if filters have been sorted |
994 | - unset( $GLOBALS[ 'merged_filters' ][ $tag ] ); |
|
994 | + unset( $GLOBALS['merged_filters'][$tag] ); |
|
995 | 995 | } |
996 | 996 | return TRUE; |
997 | 997 | } |
@@ -1000,7 +1000,7 @@ discard block |
||
1000 | 1000 | } |
1001 | 1001 | } // End function exists |
1002 | 1002 | |
1003 | -if ( ! function_exists ( 'remove_class_action' ) ) { |
|
1003 | +if ( ! function_exists( 'remove_class_action' ) ) { |
|
1004 | 1004 | /** |
1005 | 1005 | * Remove Class Action Without Access to Class Object |
1006 | 1006 | * |
@@ -1070,7 +1070,7 @@ discard block |
||
1070 | 1070 | } |
1071 | 1071 | |
1072 | 1072 | foreach ( $translations->entries as $msgid => $entry ) { |
1073 | - $locale[ $msgid ] = $entry->translations; |
|
1073 | + $locale[$msgid] = $entry->translations; |
|
1074 | 1074 | } |
1075 | 1075 | |
1076 | 1076 | return $locale; |
@@ -1213,7 +1213,7 @@ discard block |
||
1213 | 1213 | |
1214 | 1214 | $pattern = '/UA-[0-9-]+/'; |
1215 | 1215 | if ( isset( $options['ga-UID'] ) && preg_match( $pattern, $options['ga-UID'] ) ) { |
1216 | - ++ $count; |
|
1216 | + ++$count; |
|
1217 | 1217 | } |
1218 | 1218 | } |
1219 | 1219 | |
@@ -1224,7 +1224,7 @@ discard block |
||
1224 | 1224 | |
1225 | 1225 | $pattern = '/UA-[0-9-]+/'; |
1226 | 1226 | if ( ! empty( $code ) && preg_match( $pattern, $code ) ) { |
1227 | - ++ $count; |
|
1227 | + ++$count; |
|
1228 | 1228 | } |
1229 | 1229 | } |
1230 | 1230 | |
@@ -1443,22 +1443,22 @@ discard block |
||
1443 | 1443 | * |
1444 | 1444 | * @return trimed sentence |
1445 | 1445 | */ |
1446 | -function monsterinsights_trim_text( $text, $count ){ |
|
1447 | - $text = str_replace(" ", " ", $text); |
|
1448 | - $string = explode(" ", $text); |
|
1446 | +function monsterinsights_trim_text( $text, $count ) { |
|
1447 | + $text = str_replace( " ", " ", $text ); |
|
1448 | + $string = explode( " ", $text ); |
|
1449 | 1449 | $trimed = ""; |
1450 | 1450 | |
1451 | 1451 | for ( $wordCounter = 0; $wordCounter <= $count; $wordCounter++ ) { |
1452 | 1452 | $trimed .= isset( $string[$wordCounter] ) ? $string[$wordCounter] : ''; |
1453 | 1453 | |
1454 | - if ( $wordCounter < $count ){ |
|
1454 | + if ( $wordCounter < $count ) { |
|
1455 | 1455 | $trimed .= " "; |
1456 | 1456 | } else { |
1457 | 1457 | $trimed .= "..."; |
1458 | 1458 | } |
1459 | 1459 | } |
1460 | 1460 | |
1461 | - $trimed = trim($trimed); |
|
1461 | + $trimed = trim( $trimed ); |
|
1462 | 1462 | |
1463 | 1463 | return $trimed; |
1464 | 1464 | } |
@@ -1534,7 +1534,7 @@ discard block |
||
1534 | 1534 | $monsterinsights_reference = isset( $_GET['monsterinsights_reference'] ) ? $_GET['monsterinsights_reference'] : ''; |
1535 | 1535 | |
1536 | 1536 | if ( 'post-new.php' === $pagenow && 'pretty-link' === $post_type && 'url_builder' === $monsterinsights_reference ) { |
1537 | - $onboard = get_option( 'prli_onboard' ); |
|
1537 | + $onboard = get_option( 'prli_onboard' ); |
|
1538 | 1538 | |
1539 | 1539 | if ( $onboard == 'welcome' || $onboard == 'update' ) { |
1540 | 1540 | update_option( 'monsterinsights_backup_prli_onboard_value', $onboard ); |
@@ -1554,7 +1554,7 @@ discard block |
||
1554 | 1554 | $post_type = isset( $_GET['post_type'] ) ? $_GET['post_type'] : ''; |
1555 | 1555 | |
1556 | 1556 | if ( 'edit.php' === $pagenow && 'pretty-link' === $post_type ) { |
1557 | - $onboard = get_option( 'monsterinsights_backup_prli_onboard_value' ); |
|
1557 | + $onboard = get_option( 'monsterinsights_backup_prli_onboard_value' ); |
|
1558 | 1558 | |
1559 | 1559 | if ( class_exists( 'PrliBaseController' ) && ( $onboard == 'welcome' || $onboard == 'update' ) ) { |
1560 | 1560 | update_option( 'prli_onboard', $onboard ); |
@@ -887,11 +887,11 @@ discard block |
||
887 | 887 | return $countries; |
888 | 888 | } |
889 | 889 | |
890 | -function monsterinsights_get_api_url(){ |
|
890 | +function monsterinsights_get_api_url() { |
|
891 | 891 | return apply_filters( 'monsterinsights_get_api_url', 'api.monsterinsights.com/v2/' ); |
892 | 892 | } |
893 | 893 | |
894 | -function monsterinsights_get_licensing_url(){ |
|
894 | +function monsterinsights_get_licensing_url() { |
|
895 | 895 | return apply_filters( 'monsterinsights_get_licensing_url', 'https://www.monsterinsights.com' ); |
896 | 896 | } |
897 | 897 | |
@@ -956,7 +956,9 @@ discard block |
||
956 | 956 | function remove_class_filter( $tag, $class_name = '', $method_name = '', $priority = 10 ) { |
957 | 957 | global $wp_filter; |
958 | 958 | // Check that filter actually exists first |
959 | - if ( ! isset( $wp_filter[ $tag ] ) ) return FALSE; |
|
959 | + if ( ! isset( $wp_filter[ $tag ] ) ) { |
|
960 | + return FALSE; |
|
961 | + } |
|
960 | 962 | /** |
961 | 963 | * If filter config is an object, means we're using WordPress 4.7+ and the config is no longer |
962 | 964 | * a simple array, rather it is an object that implements the ArrayAccess interface. |
@@ -971,23 +973,35 @@ discard block |
||
971 | 973 | $callbacks = &$wp_filter[ $tag ]; |
972 | 974 | } |
973 | 975 | // Exit if there aren't any callbacks for specified priority |
974 | - if ( ! isset( $callbacks[ $priority ] ) || empty( $callbacks[ $priority ] ) ) return FALSE; |
|
976 | + if ( ! isset( $callbacks[ $priority ] ) || empty( $callbacks[ $priority ] ) ) { |
|
977 | + return FALSE; |
|
978 | + } |
|
975 | 979 | // Loop through each filter for the specified priority, looking for our class & method |
976 | 980 | foreach( (array) $callbacks[ $priority ] as $filter_id => $filter ) { |
977 | 981 | // Filter should always be an array - array( $this, 'method' ), if not goto next |
978 | - if ( ! isset( $filter[ 'function' ] ) || ! is_array( $filter[ 'function' ] ) ) continue; |
|
982 | + if ( ! isset( $filter[ 'function' ] ) || ! is_array( $filter[ 'function' ] ) ) { |
|
983 | + continue; |
|
984 | + } |
|
979 | 985 | // If first value in array is not an object, it can't be a class |
980 | - if ( ! is_object( $filter[ 'function' ][ 0 ] ) ) continue; |
|
986 | + if ( ! is_object( $filter[ 'function' ][ 0 ] ) ) { |
|
987 | + continue; |
|
988 | + } |
|
981 | 989 | // Method doesn't match the one we're looking for, goto next |
982 | - if ( $filter[ 'function' ][ 1 ] !== $method_name ) continue; |
|
990 | + if ( $filter[ 'function' ][ 1 ] !== $method_name ) { |
|
991 | + continue; |
|
992 | + } |
|
983 | 993 | // Method matched, now let's check the Class |
984 | 994 | if ( get_class( $filter[ 'function' ][ 0 ] ) === $class_name ) { |
985 | 995 | // Now let's remove it from the array |
986 | 996 | unset( $callbacks[ $priority ][ $filter_id ] ); |
987 | 997 | // and if it was the only filter in that priority, unset that priority |
988 | - if ( empty( $callbacks[ $priority ] ) ) unset( $callbacks[ $priority ] ); |
|
998 | + if ( empty( $callbacks[ $priority ] ) ) { |
|
999 | + unset( $callbacks[ $priority ] ); |
|
1000 | + } |
|
989 | 1001 | // and if the only filter for that tag, set the tag to an empty array |
990 | - if ( empty( $callbacks ) ) $callbacks = array(); |
|
1002 | + if ( empty( $callbacks ) ) { |
|
1003 | + $callbacks = array(); |
|
1004 | + } |
|
991 | 1005 | // If using WordPress older than 4.7 |
992 | 1006 | if ( ! is_object( $wp_filter[ $tag ] ) ) { |
993 | 1007 | // Remove this filter from merged_filters, which specifies if filters have been sorted |
@@ -1443,7 +1457,7 @@ discard block |
||
1443 | 1457 | * |
1444 | 1458 | * @return trimed sentence |
1445 | 1459 | */ |
1446 | -function monsterinsights_trim_text( $text, $count ){ |
|
1460 | +function monsterinsights_trim_text( $text, $count ) { |
|
1447 | 1461 | $text = str_replace(" ", " ", $text); |
1448 | 1462 | $string = explode(" ", $text); |
1449 | 1463 | $trimed = ""; |
@@ -1451,7 +1465,7 @@ discard block |
||
1451 | 1465 | for ( $wordCounter = 0; $wordCounter <= $count; $wordCounter++ ) { |
1452 | 1466 | $trimed .= isset( $string[$wordCounter] ) ? $string[$wordCounter] : ''; |
1453 | 1467 | |
1454 | - if ( $wordCounter < $count ){ |
|
1468 | + if ( $wordCounter < $count ) { |
|
1455 | 1469 | $trimed .= " "; |
1456 | 1470 | } else { |
1457 | 1471 | $trimed .= "..."; |
@@ -27,22 +27,22 @@ discard block |
||
27 | 27 | $menu_icon_inline = monsterinsights_get_inline_menu_icon(); |
28 | 28 | |
29 | 29 | if ( $hook === 'monsterinsights_settings' ) { |
30 | - // If dashboards disabled, first settings page |
|
31 | - add_menu_page( __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page', $menu_icon_inline, '100.00013467543' ); |
|
32 | - $hook = 'monsterinsights_settings'; |
|
30 | + // If dashboards disabled, first settings page |
|
31 | + add_menu_page( __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page', $menu_icon_inline, '100.00013467543' ); |
|
32 | + $hook = 'monsterinsights_settings'; |
|
33 | 33 | |
34 | - add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings' ); |
|
34 | + add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings' ); |
|
35 | 35 | } else { |
36 | - // if dashboards enabled, first dashboard |
|
37 | - add_menu_page( __( 'General:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page', $menu_icon_inline, '100.00013467543' ); |
|
36 | + // if dashboards enabled, first dashboard |
|
37 | + add_menu_page( __( 'General:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page', $menu_icon_inline, '100.00013467543' ); |
|
38 | 38 | |
39 | - add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Reports', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page' ); |
|
39 | + add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Reports', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page' ); |
|
40 | 40 | |
41 | - // then settings page |
|
42 | - add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page' ); |
|
41 | + // then settings page |
|
42 | + add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page' ); |
|
43 | 43 | |
44 | - // Add dashboard submenu. |
|
45 | - add_submenu_page( 'index.php', __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'admin.php?page=monsterinsights_reports' ); |
|
44 | + // Add dashboard submenu. |
|
45 | + add_submenu_page( 'index.php', __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'admin.php?page=monsterinsights_reports' ); |
|
46 | 46 | } |
47 | 47 | |
48 | 48 | $submenu_base = add_query_arg( 'page', 'monsterinsights_settings', admin_url( 'admin.php' ) ); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | // then addons |
54 | 54 | $network_key = monsterinsights_is_pro_version() ? MonsterInsights()->license->get_network_license_key() : ''; |
55 | 55 | if ( ! monsterinsights_is_network_active() || ( monsterinsights_is_network_active() && empty( $network_key ) ) ) { |
56 | - add_submenu_page( $hook, __( 'Addons:', 'google-analytics-for-wordpress' ), '<span style="color:' . monsterinsights_menu_highlight_color() . '"> ' . __( 'Addons', 'google-analytics-for-wordpress' ) . '</span>', 'monsterinsights_save_settings', $submenu_base . '#/addons' ); |
|
56 | + add_submenu_page( $hook, __( 'Addons:', 'google-analytics-for-wordpress' ), '<span style="color:' . monsterinsights_menu_highlight_color() . '"> ' . __( 'Addons', 'google-analytics-for-wordpress' ) . '</span>', 'monsterinsights_save_settings', $submenu_base . '#/addons' ); |
|
57 | 57 | } |
58 | 58 | |
59 | 59 | // Add About us page. |
@@ -64,9 +64,9 @@ discard block |
||
64 | 64 | function monsterinsights_get_menu_hook() { |
65 | 65 | $dashboards_disabled = monsterinsights_get_option( 'dashboards_disabled', false ); |
66 | 66 | if ( $dashboards_disabled || ( current_user_can( 'monsterinsights_save_settings' ) && ! current_user_can( 'monsterinsights_view_dashboard' ) ) ) { |
67 | - return 'monsterinsights_settings'; |
|
67 | + return 'monsterinsights_settings'; |
|
68 | 68 | } else { |
69 | - return 'monsterinsights_reports'; |
|
69 | + return 'monsterinsights_reports'; |
|
70 | 70 | } |
71 | 71 | } |
72 | 72 | |
@@ -77,12 +77,12 @@ discard block |
||
77 | 77 | // First, let's see if this is an MS network enabled plugin. If it is, we should load the license |
78 | 78 | // menu page and the updater on the network panel |
79 | 79 | if ( ! function_exists( 'is_plugin_active_for_network' ) ) { |
80 | - require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); |
|
80 | + require_once( ABSPATH . '/wp-admin/includes/plugin.php' ); |
|
81 | 81 | } |
82 | 82 | |
83 | 83 | $plugin = plugin_basename( MONSTERINSIGHTS_PLUGIN_FILE ); |
84 | 84 | if ( ! is_plugin_active_for_network( $plugin ) ) { |
85 | - return; |
|
85 | + return; |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | $menu_icon_inline = monsterinsights_get_inline_menu_icon(); |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | function monsterinsights_add_admin_body_class( $classes ) { |
114 | 114 | $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false; |
115 | 115 | if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights' ) === false ) { |
116 | - return $classes; |
|
116 | + return $classes; |
|
117 | 117 | } |
118 | 118 | |
119 | 119 | return "$classes monsterinsights_page "; |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false; |
131 | 131 | |
132 | 132 | if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_tools' ) === false || 'insights_page_monsterinsights_tools' === $screen->id ) { |
133 | - return $classes; |
|
133 | + return $classes; |
|
134 | 134 | } |
135 | 135 | |
136 | 136 | return "$classes insights_page_monsterinsights_tools "; |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | function monsterinsights_add_admin_body_class_addons_page( $classes ) { |
147 | 147 | $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false; |
148 | 148 | if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_addons' ) === false || 'insights_page_monsterinsights_addons' === $screen->id ) { |
149 | - return $classes; |
|
149 | + return $classes; |
|
150 | 150 | } |
151 | 151 | |
152 | 152 | return "$classes insights_page_monsterinsights_addons "; |
@@ -166,17 +166,17 @@ discard block |
||
166 | 166 | |
167 | 167 | // If lite, show a link where they can get pro from |
168 | 168 | if ( ! monsterinsights_is_pro_version() ) { |
169 | - $get_pro = '<a title="' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) .'" href="'. monsterinsights_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.monsterinsights.com/docs/" ) .'">' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '</a>'; |
|
170 | - array_unshift( $links, $get_pro ); |
|
169 | + $get_pro = '<a title="' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) .'" href="'. monsterinsights_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.monsterinsights.com/docs/" ) .'">' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '</a>'; |
|
170 | + array_unshift( $links, $get_pro ); |
|
171 | 171 | } |
172 | 172 | |
173 | 173 | // If Lite, support goes to forum. If pro, it goes to our website |
174 | 174 | if ( monsterinsights_is_pro_version() ) { |
175 | - $support = '<a title="MonsterInsights Pro Support" href="'. monsterinsights_get_url( 'all-plugins', 'pro-support-link', "https://www.monsterinsights.com/my-account/support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
176 | - array_unshift( $links, $support ); |
|
175 | + $support = '<a title="MonsterInsights Pro Support" href="'. monsterinsights_get_url( 'all-plugins', 'pro-support-link', "https://www.monsterinsights.com/my-account/support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
176 | + array_unshift( $links, $support ); |
|
177 | 177 | } else { |
178 | - $support = '<a title="MonsterInsights Lite Support" href="'. monsterinsights_get_url( 'all-plugins', 'lite-support-link', "https://www.monsterinsights.com/lite-support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
179 | - array_unshift( $links, $support ); |
|
178 | + $support = '<a title="MonsterInsights Lite Support" href="'. monsterinsights_get_url( 'all-plugins', 'lite-support-link', "https://www.monsterinsights.com/lite-support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
179 | + array_unshift( $links, $support ); |
|
180 | 180 | } |
181 | 181 | |
182 | 182 | if ( is_network_admin() ) { |
@@ -205,26 +205,26 @@ discard block |
||
205 | 205 | function monsterinsights_load_admin_partial( $template, $data = array() ) { |
206 | 206 | |
207 | 207 | if ( monsterinsights_is_pro_version() ) { |
208 | - $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'pro/includes/admin/partials' ); |
|
208 | + $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'pro/includes/admin/partials' ); |
|
209 | 209 | |
210 | - if ( file_exists( $dir . $template . '.php' ) ) { |
|
211 | - require_once( $dir . $template . '.php' ); |
|
212 | - return true; |
|
213 | - } |
|
210 | + if ( file_exists( $dir . $template . '.php' ) ) { |
|
211 | + require_once( $dir . $template . '.php' ); |
|
212 | + return true; |
|
213 | + } |
|
214 | 214 | } else { |
215 | - $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'lite/includes/admin/partials' ); |
|
215 | + $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'lite/includes/admin/partials' ); |
|
216 | 216 | |
217 | - if ( file_exists( $dir . $template . '.php' ) ) { |
|
218 | - require_once( $dir . $template . '.php' ); |
|
219 | - return true; |
|
220 | - } |
|
217 | + if ( file_exists( $dir . $template . '.php' ) ) { |
|
218 | + require_once( $dir . $template . '.php' ); |
|
219 | + return true; |
|
220 | + } |
|
221 | 221 | } |
222 | 222 | |
223 | 223 | $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'includes/admin/partials' ); |
224 | 224 | |
225 | 225 | if ( file_exists( $dir . $template . '.php' ) ) { |
226 | - require_once( $dir . $template . '.php' ); |
|
227 | - return true; |
|
226 | + require_once( $dir . $template . '.php' ); |
|
227 | + return true; |
|
228 | 228 | } |
229 | 229 | |
230 | 230 | return false; |
@@ -241,9 +241,9 @@ discard block |
||
241 | 241 | function monsterinsights_admin_footer( $text ) { |
242 | 242 | global $current_screen; |
243 | 243 | if ( ! empty( $current_screen->id ) && strpos( $current_screen->id, 'monsterinsights' ) !== false ) { |
244 | - $url = 'https://wordpress.org/support/view/plugin-reviews/google-analytics-for-wordpress?filter=5'; |
|
245 | - // Translators: Placeholders add a link to the wordpress.org repository. |
|
246 | - $text = sprintf( esc_html__( 'Please rate %1$sMonsterInsights%2$s on %3$s %4$sWordPress.org%5$s to help us spread the word. Thank you from the MonsterInsights team!', 'google-analytics-for-wordpress' ), '<strong>', '</strong>', '<a class="monsterinsights-no-text-decoration" href="' . $url . '" target="_blank" rel="noopener noreferrer"><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i></a>', '<a href="' . $url . '" target="_blank" rel="noopener noreferrer">', '</a>' ); |
|
244 | + $url = 'https://wordpress.org/support/view/plugin-reviews/google-analytics-for-wordpress?filter=5'; |
|
245 | + // Translators: Placeholders add a link to the wordpress.org repository. |
|
246 | + $text = sprintf( esc_html__( 'Please rate %1$sMonsterInsights%2$s on %3$s %4$sWordPress.org%5$s to help us spread the word. Thank you from the MonsterInsights team!', 'google-analytics-for-wordpress' ), '<strong>', '</strong>', '<a class="monsterinsights-no-text-decoration" href="' . $url . '" target="_blank" rel="noopener noreferrer"><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i></a>', '<a href="' . $url . '" target="_blank" rel="noopener noreferrer">', '</a>' ); |
|
247 | 247 | } |
248 | 248 | return $text; |
249 | 249 | } |
@@ -254,12 +254,12 @@ discard block |
||
254 | 254 | // Don't show on MonsterInsights pages |
255 | 255 | $screen = get_current_screen(); |
256 | 256 | if ( empty( $screen->id ) || strpos( $screen->id, 'monsterinsights' ) !== false ) { |
257 | - return; |
|
257 | + return; |
|
258 | 258 | } |
259 | 259 | |
260 | 260 | // Make sure they have the permissions to do something |
261 | 261 | if ( ! current_user_can( 'monsterinsights_save_settings' ) ) { |
262 | - return; |
|
262 | + return; |
|
263 | 263 | } |
264 | 264 | |
265 | 265 | // Priority: |
@@ -277,89 +277,89 @@ discard block |
||
277 | 277 | // 1. Google Analytics not authenticated |
278 | 278 | if ( ! is_network_admin() && ! monsterinsights_get_ua() && ! defined( 'MONSTERINSIGHTS_DISABLE_TRACKING' ) ) { |
279 | 279 | |
280 | - $submenu_base = is_network_admin() ? add_query_arg( 'page', 'monsterinsights_network', network_admin_url( 'admin.php' ) ) : add_query_arg( 'page', 'monsterinsights_settings', admin_url( 'admin.php' ) ); |
|
281 | - $title = esc_html__( 'Please Setup Website Analytics to See Audience Insights', 'google-analytics-for-wordpress' ); |
|
282 | - $primary = esc_html__( 'Connect MonsterInsights and Setup Website Analytics', 'google-analytics-for-wordpress' ); |
|
283 | - $urlone = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights-onboarding' ) : admin_url( 'admin.php?page=monsterinsights-onboarding' ); |
|
284 | - $secondary = esc_html__( 'Learn More', 'google-analytics-for-wordpress' ); |
|
285 | - $urltwo = $submenu_base . '#/about/getting-started'; |
|
286 | - $message = esc_html__( 'MonsterInsights, WordPress analytics plugin, helps you connect your website with Google Analytics, so you can see how people find and use your website. Over 2 million website owners use MonsterInsights to see the stats that matter and grow their business.', 'google-analytics-for-wordpress' ); |
|
287 | - echo '<div class="notice notice-info"><p style="font-weight:700">'. $title .'</p><p>'. $message.'</p><p><a href="'. $urlone .'" class="button-primary">'. $primary .'</a> <a href="'. $urltwo .'" class="button-secondary">'. $secondary .'</a></p></div>'; |
|
288 | - return; |
|
280 | + $submenu_base = is_network_admin() ? add_query_arg( 'page', 'monsterinsights_network', network_admin_url( 'admin.php' ) ) : add_query_arg( 'page', 'monsterinsights_settings', admin_url( 'admin.php' ) ); |
|
281 | + $title = esc_html__( 'Please Setup Website Analytics to See Audience Insights', 'google-analytics-for-wordpress' ); |
|
282 | + $primary = esc_html__( 'Connect MonsterInsights and Setup Website Analytics', 'google-analytics-for-wordpress' ); |
|
283 | + $urlone = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights-onboarding' ) : admin_url( 'admin.php?page=monsterinsights-onboarding' ); |
|
284 | + $secondary = esc_html__( 'Learn More', 'google-analytics-for-wordpress' ); |
|
285 | + $urltwo = $submenu_base . '#/about/getting-started'; |
|
286 | + $message = esc_html__( 'MonsterInsights, WordPress analytics plugin, helps you connect your website with Google Analytics, so you can see how people find and use your website. Over 2 million website owners use MonsterInsights to see the stats that matter and grow their business.', 'google-analytics-for-wordpress' ); |
|
287 | + echo '<div class="notice notice-info"><p style="font-weight:700">'. $title .'</p><p>'. $message.'</p><p><a href="'. $urlone .'" class="button-primary">'. $primary .'</a> <a href="'. $urltwo .'" class="button-secondary">'. $secondary .'</a></p></div>'; |
|
288 | + return; |
|
289 | 289 | } |
290 | 290 | |
291 | 291 | // 2. License key not entered for pro |
292 | 292 | $key = monsterinsights_is_pro_version() ? MonsterInsights()->license->get_license_key() : ''; |
293 | 293 | if ( monsterinsights_is_pro_version() && empty( $key ) ) { |
294 | - $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ); |
|
295 | - // Translators: Adds a link to retrieve the license. |
|
296 | - $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for MonsterInsights. You are currently not getting updates, and are not able to view reports. %1$sPlease click here to enter your license key and begin receiving updates and reports.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' ); |
|
297 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
298 | - return; |
|
294 | + $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ); |
|
295 | + // Translators: Adds a link to retrieve the license. |
|
296 | + $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for MonsterInsights. You are currently not getting updates, and are not able to view reports. %1$sPlease click here to enter your license key and begin receiving updates and reports.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' ); |
|
297 | + echo '<div class="error"><p>'. $message.'</p></div>'; |
|
298 | + return; |
|
299 | 299 | } |
300 | 300 | |
301 | 301 | // 3. License key not valid/okay for pro |
302 | 302 | if ( monsterinsights_is_pro_version() ) { |
303 | - $message = ''; |
|
304 | - if ( MonsterInsights()->license->get_site_license_key() ){ |
|
305 | - if ( MonsterInsights()->license->site_license_expired() ) { |
|
306 | - // Translators: Adds a link to the license renewal. |
|
307 | - $message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
308 | - } else if ( MonsterInsights()->license->site_license_disabled() ) { |
|
309 | - $message = esc_html__( 'Your license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
310 | - } else if ( MonsterInsights()->license->site_license_invalid() ) { |
|
311 | - $message = esc_html__( 'Your license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
312 | - } |
|
313 | - } else if ( MonsterInsights()->license->get_network_license_key() ) { |
|
314 | - if ( MonsterInsights()->license->network_license_expired() ) { |
|
315 | - // Translators: Adds a link to renew license. |
|
316 | - $message = sprintf( esc_html__( 'Your network license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
317 | - } else if ( MonsterInsights()->license->network_license_disabled() ) { |
|
318 | - $message = esc_html__( 'Your network license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
319 | - } else if ( MonsterInsights()->license->network_license_invalid() ) { |
|
320 | - $message = esc_html__( 'Your network license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
321 | - } |
|
322 | - } |
|
323 | - if ( ! empty( $message ) ) { |
|
324 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
325 | - return; |
|
326 | - } |
|
303 | + $message = ''; |
|
304 | + if ( MonsterInsights()->license->get_site_license_key() ){ |
|
305 | + if ( MonsterInsights()->license->site_license_expired() ) { |
|
306 | + // Translators: Adds a link to the license renewal. |
|
307 | + $message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
308 | + } else if ( MonsterInsights()->license->site_license_disabled() ) { |
|
309 | + $message = esc_html__( 'Your license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
310 | + } else if ( MonsterInsights()->license->site_license_invalid() ) { |
|
311 | + $message = esc_html__( 'Your license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
312 | + } |
|
313 | + } else if ( MonsterInsights()->license->get_network_license_key() ) { |
|
314 | + if ( MonsterInsights()->license->network_license_expired() ) { |
|
315 | + // Translators: Adds a link to renew license. |
|
316 | + $message = sprintf( esc_html__( 'Your network license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
317 | + } else if ( MonsterInsights()->license->network_license_disabled() ) { |
|
318 | + $message = esc_html__( 'Your network license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
319 | + } else if ( MonsterInsights()->license->network_license_invalid() ) { |
|
320 | + $message = esc_html__( 'Your network license key for MonsterInsights is invalid. The key no longer exists or the user associated with the key has been deleted. Please use a different key.', 'google-analytics-for-wordpress' ); |
|
321 | + } |
|
322 | + } |
|
323 | + if ( ! empty( $message ) ) { |
|
324 | + echo '<div class="error"><p>'. $message.'</p></div>'; |
|
325 | + return; |
|
326 | + } |
|
327 | 327 | } |
328 | 328 | |
329 | 329 | // 4. Notices for PHP/WP version deprecations |
330 | 330 | if ( current_user_can( 'update_core' ) ) { |
331 | - global $wp_version; |
|
332 | - |
|
333 | - // PHP 5.2-5.5 |
|
334 | - if ( version_compare( phpversion(), '5.6', '<' ) ) { |
|
335 | - $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' ); |
|
336 | - // Translators: Placeholders add the PHP version, a link to the MonsterInsights blog and a line break. |
|
337 | - $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress stopped supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' ); |
|
338 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
339 | - return; |
|
340 | - } |
|
341 | - // WordPress 3.0 - 4.5 |
|
342 | - else if ( version_compare( $wp_version, '4.9', '<' ) ) { |
|
343 | - $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' ); |
|
344 | - // Translators: Placeholders add the current WordPress version and links to the MonsterInsights blog |
|
345 | - $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 4.9 in 2020.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' ); |
|
346 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
347 | - return; |
|
348 | - } |
|
349 | - // PHP 5.4/5.5 |
|
350 | - // else if ( version_compare( phpversion(), '5.6', '<' ) ) { |
|
351 | - // $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' ); |
|
352 | - // $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress will stop supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' ); |
|
353 | - // echo '<div class="error"><p>'. $message.'</p></div>'; |
|
354 | - // return; |
|
355 | - // } |
|
356 | - // // WordPress 4.6 - 4.8 |
|
357 | - // else if ( version_compare( $wp_version, '4.9', '<' ) ) { |
|
358 | - // $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' ); |
|
359 | - // $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 4.9 in October, 2019.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' ); |
|
360 | - // echo '<div class="error"><p>'. $message.'</p></div>'; |
|
361 | - // return; |
|
362 | - // } |
|
331 | + global $wp_version; |
|
332 | + |
|
333 | + // PHP 5.2-5.5 |
|
334 | + if ( version_compare( phpversion(), '5.6', '<' ) ) { |
|
335 | + $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' ); |
|
336 | + // Translators: Placeholders add the PHP version, a link to the MonsterInsights blog and a line break. |
|
337 | + $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress stopped supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' ); |
|
338 | + echo '<div class="error"><p>'. $message.'</p></div>'; |
|
339 | + return; |
|
340 | + } |
|
341 | + // WordPress 3.0 - 4.5 |
|
342 | + else if ( version_compare( $wp_version, '4.9', '<' ) ) { |
|
343 | + $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' ); |
|
344 | + // Translators: Placeholders add the current WordPress version and links to the MonsterInsights blog |
|
345 | + $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 4.9 in 2020.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' ); |
|
346 | + echo '<div class="error"><p>'. $message.'</p></div>'; |
|
347 | + return; |
|
348 | + } |
|
349 | + // PHP 5.4/5.5 |
|
350 | + // else if ( version_compare( phpversion(), '5.6', '<' ) ) { |
|
351 | + // $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' ); |
|
352 | + // $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress will stop supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' ); |
|
353 | + // echo '<div class="error"><p>'. $message.'</p></div>'; |
|
354 | + // return; |
|
355 | + // } |
|
356 | + // // WordPress 4.6 - 4.8 |
|
357 | + // else if ( version_compare( $wp_version, '4.9', '<' ) ) { |
|
358 | + // $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' ); |
|
359 | + // $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 4.9 in October, 2019.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' ); |
|
360 | + // echo '<div class="error"><p>'. $message.'</p></div>'; |
|
361 | + // return; |
|
362 | + // } |
|
363 | 363 | } |
364 | 364 | |
365 | 365 | // 5. Optin setting not configured |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | |
390 | 390 | $notices = get_option( 'monsterinsights_notices' ); |
391 | 391 | if ( ! is_array( $notices ) ) { |
392 | - $notices = array(); |
|
392 | + $notices = array(); |
|
393 | 393 | } |
394 | 394 | |
395 | 395 | // 6. Authenticate, not manual |
@@ -433,74 +433,74 @@ discard block |
||
433 | 433 | |
434 | 434 | // 8. WooUpsell |
435 | 435 | if ( ! monsterinsights_is_pro_version() && class_exists( 'WooCommerce' ) ) { |
436 | - if ( ! isset( $notices['monsterinsights_woocommerce_tracking_available' ] ) ) { |
|
437 | - echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_woocommerce_tracking_available">'; |
|
438 | - echo '<div class="monsterinsights-wooedd-upsell-left">'; |
|
439 | - echo '<p><strong>'; |
|
440 | - echo esc_html( 'Enhanced Ecommerce Analytics for Your WooCommerce Store', 'google-analytics-for-wordpress' ); |
|
441 | - echo '</strong></p>'; |
|
442 | - echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
443 | - echo '<p>'; |
|
444 | - echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' ); |
|
445 | - echo '</p>'; |
|
446 | - echo '<p>'; |
|
447 | - echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' ); |
|
448 | - echo '</p>'; |
|
449 | - echo '<p>'; |
|
450 | - echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' ); |
|
451 | - echo '</p>'; |
|
452 | - echo '<p>'; |
|
453 | - echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' ); |
|
454 | - echo '</p>'; |
|
455 | - // Translators: Placeholders add a link to the MonsterInsights website. |
|
456 | - echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'woocommerce-upgrade' ) .'">', ' »</a>' ); |
|
457 | - echo '</p>'; |
|
458 | - echo '</div><div class="monsterinsights-wooedd-upsell-right">'; |
|
459 | - echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
460 | - echo '</div>'; |
|
461 | - echo '</div>'; |
|
462 | - return; |
|
463 | - } |
|
436 | + if ( ! isset( $notices['monsterinsights_woocommerce_tracking_available' ] ) ) { |
|
437 | + echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_woocommerce_tracking_available">'; |
|
438 | + echo '<div class="monsterinsights-wooedd-upsell-left">'; |
|
439 | + echo '<p><strong>'; |
|
440 | + echo esc_html( 'Enhanced Ecommerce Analytics for Your WooCommerce Store', 'google-analytics-for-wordpress' ); |
|
441 | + echo '</strong></p>'; |
|
442 | + echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
443 | + echo '<p>'; |
|
444 | + echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' ); |
|
445 | + echo '</p>'; |
|
446 | + echo '<p>'; |
|
447 | + echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' ); |
|
448 | + echo '</p>'; |
|
449 | + echo '<p>'; |
|
450 | + echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' ); |
|
451 | + echo '</p>'; |
|
452 | + echo '<p>'; |
|
453 | + echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' ); |
|
454 | + echo '</p>'; |
|
455 | + // Translators: Placeholders add a link to the MonsterInsights website. |
|
456 | + echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'woocommerce-upgrade' ) .'">', ' »</a>' ); |
|
457 | + echo '</p>'; |
|
458 | + echo '</div><div class="monsterinsights-wooedd-upsell-right">'; |
|
459 | + echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
460 | + echo '</div>'; |
|
461 | + echo '</div>'; |
|
462 | + return; |
|
463 | + } |
|
464 | 464 | } |
465 | 465 | |
466 | 466 | // 9. EDDUpsell |
467 | 467 | if ( ! monsterinsights_is_pro_version() && class_exists( 'Easy_Digital_Downloads' ) ) { |
468 | - if ( ! isset( $notices['monsterinsights_edd_tracking_available' ] ) ) { |
|
469 | - echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_edd_tracking_available">'; |
|
470 | - echo '<div class="monsterinsights-wooedd-upsell-left">'; |
|
471 | - echo '<p><strong>'; |
|
472 | - echo esc_html( 'Enhanced Ecommerce Analytics for Your Easy Digital Downloads Store', 'google-analytics-for-wordpress' ); |
|
473 | - echo '</strong></p>'; |
|
474 | - echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
475 | - echo '<p>'; |
|
476 | - echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' ); |
|
477 | - echo '</p>'; |
|
478 | - echo '<p>'; |
|
479 | - echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' ); |
|
480 | - echo '</p>'; |
|
481 | - echo '<p>'; |
|
482 | - echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' ); |
|
483 | - echo '</p>'; |
|
484 | - echo '<p>'; |
|
485 | - echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' ); |
|
486 | - echo '</p>'; |
|
487 | - echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'edd-upgrade' ) .'">', ' »</a>' ); |
|
488 | - echo '</p>'; |
|
489 | - echo '</div><div class="monsterinsights-wooedd-upsell-right">'; |
|
490 | - echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
491 | - echo '</div>'; |
|
492 | - echo '</div>'; |
|
493 | - return; |
|
494 | - } |
|
468 | + if ( ! isset( $notices['monsterinsights_edd_tracking_available' ] ) ) { |
|
469 | + echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_edd_tracking_available">'; |
|
470 | + echo '<div class="monsterinsights-wooedd-upsell-left">'; |
|
471 | + echo '<p><strong>'; |
|
472 | + echo esc_html( 'Enhanced Ecommerce Analytics for Your Easy Digital Downloads Store', 'google-analytics-for-wordpress' ); |
|
473 | + echo '</strong></p>'; |
|
474 | + echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-small" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
475 | + echo '<p>'; |
|
476 | + echo esc_html( 'MonsterInsights Pro gives you detailed stats and insights about your customers.', 'google-analytics-for-wordpress' ); |
|
477 | + echo '</p>'; |
|
478 | + echo '<p>'; |
|
479 | + echo esc_html( 'This helps you make data-driven decisions about your content, and marketing strategy so you can increase your website traffic, leads, and sales.', 'google-analytics-for-wordpress' ); |
|
480 | + echo '</p>'; |
|
481 | + echo '<p>'; |
|
482 | + echo esc_html( 'Pro customers also get Form Tracking, Custom Dimensions Tracking, UserID Tracking and much more.', 'google-analytics-for-wordpress' ); |
|
483 | + echo '</p>'; |
|
484 | + echo '<p>'; |
|
485 | + echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' ); |
|
486 | + echo '</p>'; |
|
487 | + echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'edd-upgrade' ) .'">', ' »</a>' ); |
|
488 | + echo '</p>'; |
|
489 | + echo '</div><div class="monsterinsights-wooedd-upsell-right">'; |
|
490 | + echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
|
491 | + echo '</div>'; |
|
492 | + echo '</div>'; |
|
493 | + return; |
|
494 | + } |
|
495 | 495 | } |
496 | 496 | |
497 | 497 | if ( isset( $notices['monsterinsights_cross_domains_extracted'] ) && false === $notices['monsterinsights_cross_domains_extracted'] ) { |
498 | - $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ); |
|
499 | - $page = $page . '#/advanced'; |
|
500 | - // Translators: Adds a link to the settings panel. |
|
501 | - $message = sprintf( esc_html__( 'Warning: MonsterInsights found cross-domain settings in the custom code field and converted them to the new settings structure. %1$sPlease click here to review and remove the code no longer needed.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' ); |
|
502 | - echo '<div class="notice notice-success is-dismissible monsterinsights-notice" data-notice="monsterinsights_cross_domains_extracted"><p>'. $message.'</p></div>'; |
|
503 | - return; |
|
498 | + $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ); |
|
499 | + $page = $page . '#/advanced'; |
|
500 | + // Translators: Adds a link to the settings panel. |
|
501 | + $message = sprintf( esc_html__( 'Warning: MonsterInsights found cross-domain settings in the custom code field and converted them to the new settings structure. %1$sPlease click here to review and remove the code no longer needed.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' ); |
|
502 | + echo '<div class="notice notice-success is-dismissible monsterinsights-notice" data-notice="monsterinsights_cross_domains_extracted"><p>'. $message.'</p></div>'; |
|
503 | + return; |
|
504 | 504 | } |
505 | 505 | } |
506 | 506 | add_action( 'admin_notices', 'monsterinsights_admin_setup_notices' ); |
@@ -510,7 +510,7 @@ discard block |
||
510 | 510 | // AM Notices |
511 | 511 | function monsterinsights_am_notice_optout( $super_admin ) { |
512 | 512 | if ( monsterinsights_get_option( 'hide_am_notices', false ) || monsterinsights_get_option( 'network_hide_am_notices', false ) ) { |
513 | - return false; |
|
513 | + return false; |
|
514 | 514 | } |
515 | 515 | return $super_admin; |
516 | 516 | } |
@@ -28,13 +28,13 @@ discard block |
||
28 | 28 | |
29 | 29 | if ( $hook === 'monsterinsights_settings' ) { |
30 | 30 | // If dashboards disabled, first settings page |
31 | - add_menu_page( __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page', $menu_icon_inline, '100.00013467543' ); |
|
31 | + add_menu_page( __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_settings', 'monsterinsights_settings_page', $menu_icon_inline, '100.00013467543' ); |
|
32 | 32 | $hook = 'monsterinsights_settings'; |
33 | 33 | |
34 | 34 | add_submenu_page( $hook, __( 'MonsterInsights', 'google-analytics-for-wordpress' ), __( 'Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_settings' ); |
35 | 35 | } else { |
36 | 36 | // if dashboards enabled, first dashboard |
37 | - add_menu_page( __( 'General:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page', $menu_icon_inline, '100.00013467543' ); |
|
37 | + add_menu_page( __( 'General:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page', $menu_icon_inline, '100.00013467543' ); |
|
38 | 38 | |
39 | 39 | add_submenu_page( $hook, __( 'General Reports:', 'google-analytics-for-wordpress' ), __( 'Reports', 'google-analytics-for-wordpress' ), 'monsterinsights_view_dashboard', 'monsterinsights_reports', 'monsterinsights_reports_page' ); |
40 | 40 | |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $menu_icon_inline = monsterinsights_get_inline_menu_icon(); |
89 | 89 | $hook = 'monsterinsights_network'; |
90 | 90 | $submenu_base = add_query_arg( 'page', 'monsterinsights_network', network_admin_url( 'admin.php' ) ); |
91 | - add_menu_page( __( 'Network Settings:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_network', 'monsterinsights_network_page', $menu_icon_inline, '100.00013467543' ); |
|
91 | + add_menu_page( __( 'Network Settings:', 'google-analytics-for-wordpress' ), __( 'Insights', 'google-analytics-for-wordpress' ) . MonsterInsights()->notifications->get_menu_count(), 'monsterinsights_save_settings', 'monsterinsights_network', 'monsterinsights_network_page', $menu_icon_inline, '100.00013467543' ); |
|
92 | 92 | |
93 | 93 | add_submenu_page( $hook, __( 'Network Settings:', 'google-analytics-for-wordpress' ), __( 'Network Settings', 'google-analytics-for-wordpress' ), 'monsterinsights_save_settings', 'monsterinsights_network', 'monsterinsights_network_page' ); |
94 | 94 | |
@@ -129,7 +129,7 @@ discard block |
||
129 | 129 | function monsterinsights_add_admin_body_class_tools_page( $classes ) { |
130 | 130 | $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false; |
131 | 131 | |
132 | - if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_tools' ) === false || 'insights_page_monsterinsights_tools' === $screen->id ) { |
|
132 | + if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_tools' ) === false || 'insights_page_monsterinsights_tools' === $screen->id ) { |
|
133 | 133 | return $classes; |
134 | 134 | } |
135 | 135 | |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | */ |
146 | 146 | function monsterinsights_add_admin_body_class_addons_page( $classes ) { |
147 | 147 | $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false; |
148 | - if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_addons' ) === false || 'insights_page_monsterinsights_addons' === $screen->id ) { |
|
148 | + if ( empty( $screen ) || empty( $screen->id ) || strpos( $screen->id, 'monsterinsights_addons' ) === false || 'insights_page_monsterinsights_addons' === $screen->id ) { |
|
149 | 149 | return $classes; |
150 | 150 | } |
151 | 151 | |
@@ -161,21 +161,21 @@ discard block |
||
161 | 161 | * @return array $links |
162 | 162 | */ |
163 | 163 | function monsterinsights_add_action_links( $links ) { |
164 | - $docs = '<a title="' . esc_html__( 'MonsterInsights Knowledge Base', 'google-analytics-for-wordpress' ) . '" href="'. monsterinsights_get_url( 'all-plugins', 'kb-link', "https://www.monsterinsights.com/docs/" ) .'">' . esc_html__( 'Documentation', 'google-analytics-for-wordpress' ) . '</a>'; |
|
164 | + $docs = '<a title="' . esc_html__( 'MonsterInsights Knowledge Base', 'google-analytics-for-wordpress' ) . '" href="' . monsterinsights_get_url( 'all-plugins', 'kb-link', "https://www.monsterinsights.com/docs/" ) . '">' . esc_html__( 'Documentation', 'google-analytics-for-wordpress' ) . '</a>'; |
|
165 | 165 | array_unshift( $links, $docs ); |
166 | 166 | |
167 | 167 | // If lite, show a link where they can get pro from |
168 | 168 | if ( ! monsterinsights_is_pro_version() ) { |
169 | - $get_pro = '<a title="' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) .'" href="'. monsterinsights_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.monsterinsights.com/docs/" ) .'">' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '</a>'; |
|
169 | + $get_pro = '<a title="' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '" href="' . monsterinsights_get_upgrade_link( 'all-plugins', 'upgrade-link', "https://www.monsterinsights.com/docs/" ) . '">' . esc_html__( 'Get MonsterInsights Pro', 'google-analytics-for-wordpress' ) . '</a>'; |
|
170 | 170 | array_unshift( $links, $get_pro ); |
171 | 171 | } |
172 | 172 | |
173 | 173 | // If Lite, support goes to forum. If pro, it goes to our website |
174 | 174 | if ( monsterinsights_is_pro_version() ) { |
175 | - $support = '<a title="MonsterInsights Pro Support" href="'. monsterinsights_get_url( 'all-plugins', 'pro-support-link', "https://www.monsterinsights.com/my-account/support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
175 | + $support = '<a title="MonsterInsights Pro Support" href="' . monsterinsights_get_url( 'all-plugins', 'pro-support-link', "https://www.monsterinsights.com/my-account/support/" ) . '">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
176 | 176 | array_unshift( $links, $support ); |
177 | 177 | } else { |
178 | - $support = '<a title="MonsterInsights Lite Support" href="'. monsterinsights_get_url( 'all-plugins', 'lite-support-link', "https://www.monsterinsights.com/lite-support/" ) .'">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
178 | + $support = '<a title="MonsterInsights Lite Support" href="' . monsterinsights_get_url( 'all-plugins', 'lite-support-link', "https://www.monsterinsights.com/lite-support/" ) . '">' . esc_html__( 'Support', 'google-analytics-for-wordpress' ) . '</a>'; |
|
179 | 179 | array_unshift( $links, $support ); |
180 | 180 | } |
181 | 181 | |
@@ -208,14 +208,14 @@ discard block |
||
208 | 208 | $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'pro/includes/admin/partials' ); |
209 | 209 | |
210 | 210 | if ( file_exists( $dir . $template . '.php' ) ) { |
211 | - require_once( $dir . $template . '.php' ); |
|
211 | + require_once( $dir . $template . '.php' ); |
|
212 | 212 | return true; |
213 | 213 | } |
214 | 214 | } else { |
215 | 215 | $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'lite/includes/admin/partials' ); |
216 | 216 | |
217 | 217 | if ( file_exists( $dir . $template . '.php' ) ) { |
218 | - require_once( $dir . $template . '.php' ); |
|
218 | + require_once( $dir . $template . '.php' ); |
|
219 | 219 | return true; |
220 | 220 | } |
221 | 221 | } |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | $dir = trailingslashit( plugin_dir_path( MonsterInsights()->file ) . 'includes/admin/partials' ); |
224 | 224 | |
225 | 225 | if ( file_exists( $dir . $template . '.php' ) ) { |
226 | - require_once( $dir . $template . '.php' ); |
|
226 | + require_once( $dir . $template . '.php' ); |
|
227 | 227 | return true; |
228 | 228 | } |
229 | 229 | |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | if ( ! empty( $current_screen->id ) && strpos( $current_screen->id, 'monsterinsights' ) !== false ) { |
244 | 244 | $url = 'https://wordpress.org/support/view/plugin-reviews/google-analytics-for-wordpress?filter=5'; |
245 | 245 | // Translators: Placeholders add a link to the wordpress.org repository. |
246 | - $text = sprintf( esc_html__( 'Please rate %1$sMonsterInsights%2$s on %3$s %4$sWordPress.org%5$s to help us spread the word. Thank you from the MonsterInsights team!', 'google-analytics-for-wordpress' ), '<strong>', '</strong>', '<a class="monsterinsights-no-text-decoration" href="' . $url . '" target="_blank" rel="noopener noreferrer"><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i></a>', '<a href="' . $url . '" target="_blank" rel="noopener noreferrer">', '</a>' ); |
|
246 | + $text = sprintf( esc_html__( 'Please rate %1$sMonsterInsights%2$s on %3$s %4$sWordPress.org%5$s to help us spread the word. Thank you from the MonsterInsights team!', 'google-analytics-for-wordpress' ), '<strong>', '</strong>', '<a class="monsterinsights-no-text-decoration" href="' . $url . '" target="_blank" rel="noopener noreferrer"><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i><i class="monstericon-star"></i></a>', '<a href="' . $url . '" target="_blank" rel="noopener noreferrer">', '</a>' ); |
|
247 | 247 | } |
248 | 248 | return $text; |
249 | 249 | } |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | $secondary = esc_html__( 'Learn More', 'google-analytics-for-wordpress' ); |
285 | 285 | $urltwo = $submenu_base . '#/about/getting-started'; |
286 | 286 | $message = esc_html__( 'MonsterInsights, WordPress analytics plugin, helps you connect your website with Google Analytics, so you can see how people find and use your website. Over 2 million website owners use MonsterInsights to see the stats that matter and grow their business.', 'google-analytics-for-wordpress' ); |
287 | - echo '<div class="notice notice-info"><p style="font-weight:700">'. $title .'</p><p>'. $message.'</p><p><a href="'. $urlone .'" class="button-primary">'. $primary .'</a> <a href="'. $urltwo .'" class="button-secondary">'. $secondary .'</a></p></div>'; |
|
287 | + echo '<div class="notice notice-info"><p style="font-weight:700">' . $title . '</p><p>' . $message . '</p><p><a href="' . $urlone . '" class="button-primary">' . $primary . '</a> <a href="' . $urltwo . '" class="button-secondary">' . $secondary . '</a></p></div>'; |
|
288 | 288 | return; |
289 | 289 | } |
290 | 290 | |
@@ -293,18 +293,18 @@ discard block |
||
293 | 293 | if ( monsterinsights_is_pro_version() && empty( $key ) ) { |
294 | 294 | $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ); |
295 | 295 | // Translators: Adds a link to retrieve the license. |
296 | - $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for MonsterInsights. You are currently not getting updates, and are not able to view reports. %1$sPlease click here to enter your license key and begin receiving updates and reports.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' ); |
|
297 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
296 | + $message = sprintf( esc_html__( 'Warning: No valid license key has been entered for MonsterInsights. You are currently not getting updates, and are not able to view reports. %1$sPlease click here to enter your license key and begin receiving updates and reports.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . esc_url( $page ) . '">', '</a>' ); |
|
297 | + echo '<div class="error"><p>' . $message . '</p></div>'; |
|
298 | 298 | return; |
299 | 299 | } |
300 | 300 | |
301 | 301 | // 3. License key not valid/okay for pro |
302 | 302 | if ( monsterinsights_is_pro_version() ) { |
303 | 303 | $message = ''; |
304 | - if ( MonsterInsights()->license->get_site_license_key() ){ |
|
304 | + if ( MonsterInsights()->license->get_site_license_key() ) { |
|
305 | 305 | if ( MonsterInsights()->license->site_license_expired() ) { |
306 | 306 | // Translators: Adds a link to the license renewal. |
307 | - $message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
307 | + $message = sprintf( esc_html__( 'Your license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
308 | 308 | } else if ( MonsterInsights()->license->site_license_disabled() ) { |
309 | 309 | $message = esc_html__( 'Your license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' ); |
310 | 310 | } else if ( MonsterInsights()->license->site_license_invalid() ) { |
@@ -313,7 +313,7 @@ discard block |
||
313 | 313 | } else if ( MonsterInsights()->license->get_network_license_key() ) { |
314 | 314 | if ( MonsterInsights()->license->network_license_expired() ) { |
315 | 315 | // Translators: Adds a link to renew license. |
316 | - $message = sprintf( esc_html__( 'Your network license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) .'" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
316 | + $message = sprintf( esc_html__( 'Your network license key for MonsterInsights has expired. %1$sPlease click here to renew your license key.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . monsterinsights_get_url( 'admin-notices', 'expired-license', "https://www.monsterinsights.com/login/" ) . '" target="_blank" rel="noopener noreferrer" referrer="no-referrer">', '</a>' ); |
|
317 | 317 | } else if ( MonsterInsights()->license->network_license_disabled() ) { |
318 | 318 | $message = esc_html__( 'Your network license key for MonsterInsights has been disabled. Please use a different key.', 'google-analytics-for-wordpress' ); |
319 | 319 | } else if ( MonsterInsights()->license->network_license_invalid() ) { |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | } |
322 | 322 | } |
323 | 323 | if ( ! empty( $message ) ) { |
324 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
324 | + echo '<div class="error"><p>' . $message . '</p></div>'; |
|
325 | 325 | return; |
326 | 326 | } |
327 | 327 | } |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-php/' ); |
336 | 336 | // Translators: Placeholders add the PHP version, a link to the MonsterInsights blog and a line break. |
337 | 337 | $message = sprintf( esc_html__( 'Your site is running an outdated, insecure version of PHP (%1$s), which could be putting your site at risk for being hacked.%4$sWordPress stopped supporting your PHP version in April, 2019.%4$sUpdating PHP only takes a few minutes and will make your website significantly faster and more secure.%4$s%2$sLearn more about updating PHP%3$s', 'google-analytics-for-wordpress' ), phpversion(), '<a href="' . $url . '" target="_blank">', '</a>', '<br>' ); |
338 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
338 | + echo '<div class="error"><p>' . $message . '</p></div>'; |
|
339 | 339 | return; |
340 | 340 | } |
341 | 341 | // WordPress 3.0 - 4.5 |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | $url = monsterinsights_get_url( 'global-notice', 'settings-page', 'https://www.monsterinsights.com/docs/update-wordpress/' ); |
344 | 344 | // Translators: Placeholders add the current WordPress version and links to the MonsterInsights blog |
345 | 345 | $message = sprintf( esc_html__( 'Your site is running an outdated version of WordPress (%1$s).%4$sMonsterInsights will stop supporting WordPress versions lower than 4.9 in 2020.%4$sUpdating WordPress takes just a few minutes and will also solve many bugs that exist in your WordPress install.%4$s%2$sLearn more about updating WordPress%3$s', 'google-analytics-for-wordpress' ), $wp_version, '<a href="' . $url . '" target="_blank">', '</a>', '<br>' ); |
346 | - echo '<div class="error"><p>'. $message.'</p></div>'; |
|
346 | + echo '<div class="error"><p>' . $message . '</p></div>'; |
|
347 | 347 | return; |
348 | 348 | } |
349 | 349 | // PHP 5.4/5.5 |
@@ -387,7 +387,7 @@ discard block |
||
387 | 387 | // } |
388 | 388 | // } |
389 | 389 | |
390 | - $notices = get_option( 'monsterinsights_notices' ); |
|
390 | + $notices = get_option( 'monsterinsights_notices' ); |
|
391 | 391 | if ( ! is_array( $notices ) ) { |
392 | 392 | $notices = array(); |
393 | 393 | } |
@@ -433,7 +433,7 @@ discard block |
||
433 | 433 | |
434 | 434 | // 8. WooUpsell |
435 | 435 | if ( ! monsterinsights_is_pro_version() && class_exists( 'WooCommerce' ) ) { |
436 | - if ( ! isset( $notices['monsterinsights_woocommerce_tracking_available' ] ) ) { |
|
436 | + if ( ! isset( $notices['monsterinsights_woocommerce_tracking_available'] ) ) { |
|
437 | 437 | echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_woocommerce_tracking_available">'; |
438 | 438 | echo '<div class="monsterinsights-wooedd-upsell-left">'; |
439 | 439 | echo '<p><strong>'; |
@@ -453,7 +453,7 @@ discard block |
||
453 | 453 | echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' ); |
454 | 454 | echo '</p>'; |
455 | 455 | // Translators: Placeholders add a link to the MonsterInsights website. |
456 | - echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'woocommerce-upgrade' ) .'">', ' »</a>' ); |
|
456 | + echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="' . monsterinsights_get_upgrade_link( 'admin-notices', 'woocommerce-upgrade' ) . '">', ' »</a>' ); |
|
457 | 457 | echo '</p>'; |
458 | 458 | echo '</div><div class="monsterinsights-wooedd-upsell-right">'; |
459 | 459 | echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | |
466 | 466 | // 9. EDDUpsell |
467 | 467 | if ( ! monsterinsights_is_pro_version() && class_exists( 'Easy_Digital_Downloads' ) ) { |
468 | - if ( ! isset( $notices['monsterinsights_edd_tracking_available' ] ) ) { |
|
468 | + if ( ! isset( $notices['monsterinsights_edd_tracking_available'] ) ) { |
|
469 | 469 | echo '<div class="notice notice-success is-dismissible monsterinsights-notice monsterinsights-wooedd-upsell-row" data-notice="monsterinsights_edd_tracking_available">'; |
470 | 470 | echo '<div class="monsterinsights-wooedd-upsell-left">'; |
471 | 471 | echo '<p><strong>'; |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | echo '<p>'; |
485 | 485 | echo esc_html( 'Start making data-driven decisions to grow your business.', 'google-analytics-for-wordpress' ); |
486 | 486 | echo '</p>'; |
487 | - echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="'. monsterinsights_get_upgrade_link( 'admin-notices', 'edd-upgrade' ) .'">', ' »</a>' ); |
|
487 | + echo sprintf( esc_html__( '%1$sGet MonsterInsights Pro%2$s', 'google-analytics-for-wordpress' ), '<a class="button button-primary button-hero" href="' . monsterinsights_get_upgrade_link( 'admin-notices', 'edd-upgrade' ) . '">', ' »</a>' ); |
|
488 | 488 | echo '</p>'; |
489 | 489 | echo '</div><div class="monsterinsights-wooedd-upsell-right">'; |
490 | 490 | echo '<img class="monsterinsights-wooedd-upsell-image monsterinsights-wooedd-upsell-image-large" src="' . trailingslashit( MONSTERINSIGHTS_PLUGIN_URL ) . 'assets/images/upsell/woo-edd-upsell.png">'; |
@@ -498,8 +498,8 @@ discard block |
||
498 | 498 | $page = is_network_admin() ? network_admin_url( 'admin.php?page=monsterinsights_network' ) : admin_url( 'admin.php?page=monsterinsights_settings' ); |
499 | 499 | $page = $page . '#/advanced'; |
500 | 500 | // Translators: Adds a link to the settings panel. |
501 | - $message = sprintf( esc_html__( 'Warning: MonsterInsights found cross-domain settings in the custom code field and converted them to the new settings structure. %1$sPlease click here to review and remove the code no longer needed.%2$s', 'google-analytics-for-wordpress' ), '<a href="'. esc_url( $page ) . '">', '</a>' ); |
|
502 | - echo '<div class="notice notice-success is-dismissible monsterinsights-notice" data-notice="monsterinsights_cross_domains_extracted"><p>'. $message.'</p></div>'; |
|
501 | + $message = sprintf( esc_html__( 'Warning: MonsterInsights found cross-domain settings in the custom code field and converted them to the new settings structure. %1$sPlease click here to review and remove the code no longer needed.%2$s', 'google-analytics-for-wordpress' ), '<a href="' . esc_url( $page ) . '">', '</a>' ); |
|
502 | + echo '<div class="notice notice-success is-dismissible monsterinsights-notice" data-notice="monsterinsights_cross_domains_extracted"><p>' . $message . '</p></div>'; |
|
503 | 503 | return; |
504 | 504 | } |
505 | 505 | } |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | ); |
56 | 56 | add_filter( "monsterinsights_is_autoupdate_setting_html_filtered_${plugin_file}", '__return_true' ); |
57 | 57 | } elseif ( $has_permission && |
58 | - ( $is_main_free || $is_main_pro || ( $is_addon && $is_pro ) ) |
|
58 | + ( $is_main_free || $is_main_pro || ( $is_addon && $is_pro ) ) |
|
59 | 59 | ) { |
60 | 60 | $text = __( 'Manage auto-updates', 'google-analytics-for-wordpress' ); |
61 | 61 | $html .= '<br>' . sprintf( '<a href="%s"">%s</a>', admin_url( 'admin.php?page=monsterinsights_settings#/advanced' ), $text ); |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | |
125 | 125 | // If this is multisite and is not on the main site, return early. |
126 | 126 | if ( is_multisite() && ! is_main_site() ) { |
127 | - return $update; |
|
127 | + return $update; |
|
128 | 128 | } |
129 | 129 | |
130 | 130 | // When used in the context of automatic plugin update routine, the $item |
@@ -132,12 +132,12 @@ discard block |
||
132 | 132 | |
133 | 133 | // If we don't have everything we need, return early. |
134 | 134 | if ( ! isset( $item['new_version'] ) || ! isset( $item['slug'] ) ) { |
135 | - return $update; |
|
135 | + return $update; |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | // If the plugin isn't ours, return early. |
139 | 139 | if ( ( ! $is_free && ! $is_paid ) || ( $is_free && ! defined( 'MONSTERINSIGHTS_LITE_VERSION' ) ) ) { |
140 | - return $update; |
|
140 | + return $update; |
|
141 | 141 | } |
142 | 142 | |
143 | 143 | $version = $is_free ? MONSTERINSIGHTS_LITE_VERSION : $item['old_version']; |
@@ -146,20 +146,20 @@ discard block |
||
146 | 146 | |
147 | 147 | // If the opt in update allows major updates but there is no major version update, return early. |
148 | 148 | if ( $current_major < $new_major ) { |
149 | - if ( $automatic_updates === 'all' ) { |
|
150 | - return true; |
|
151 | - } else { |
|
152 | - return $update; |
|
153 | - } |
|
149 | + if ( $automatic_updates === 'all' ) { |
|
150 | + return true; |
|
151 | + } else { |
|
152 | + return $update; |
|
153 | + } |
|
154 | 154 | } |
155 | 155 | |
156 | 156 | // If the opt in update allows minor updates but there is no minor version update, return early. |
157 | 157 | if ( $current_major == $new_major ) { |
158 | - if ( $automatic_updates === 'all' || $automatic_updates === 'minor' ) { |
|
159 | - return true; |
|
160 | - } else { |
|
161 | - return $update; |
|
162 | - } |
|
158 | + if ( $automatic_updates === 'all' || $automatic_updates === 'minor' ) { |
|
159 | + return true; |
|
160 | + } else { |
|
161 | + return $update; |
|
162 | + } |
|
163 | 163 | } |
164 | 164 | |
165 | 165 | // All our checks have passed - this plugin can be updated! |
@@ -197,8 +197,8 @@ discard block |
||
197 | 197 | function monsterinsights_get_major_version( $version ) { |
198 | 198 | $exploded_version = explode( '.', $version ); |
199 | 199 | if ( isset( $exploded_version[2] ) ) { |
200 | - return $exploded_version[0] . '.' . $exploded_version[1] . '.' . $exploded_version[2]; |
|
200 | + return $exploded_version[0] . '.' . $exploded_version[1] . '.' . $exploded_version[2]; |
|
201 | 201 | } else { |
202 | - return $exploded_version[0] . '.' . $exploded_version[1] . '.0'; |
|
202 | + return $exploded_version[0] . '.' . $exploded_version[1] . '.0'; |
|
203 | 203 | } |
204 | 204 | } |