|
166 | 166 | <input type="radio" value="get_request" id="purge_method_get_request" name="purge_method" <?php checked( $nginx_helper_settings['purge_method'], 'get_request' ); ?>> |
167 | 167 | |
168 | 168 | <?php |
169 | | - echo wp_kses( |
170 | | - sprintf( |
171 | | - '%1$s <strong>PURGE/url</strong> %2$s', |
172 | | - esc_html__( 'Using a GET request to', 'nginx-helper' ), |
173 | | - esc_html__( '(Default option)', 'nginx-helper' ) |
174 | | - ), |
175 | | - array( 'strong' => array() ) |
176 | | - ); |
| 169 | + echo wp_kses( |
| 170 | + sprintf( |
| 171 | + '%1$s <strong>PURGE/url</strong> %2$s', |
| 172 | + esc_html__( 'Using a GET request to', 'nginx-helper' ), |
| 173 | + esc_html__( '(Default option)', 'nginx-helper' ) |
| 174 | + ), |
| 175 | + array( 'strong' => array() ) |
| 176 | + ); |
177 | 177 | ?> |
178 | 178 | <br /> |
179 | 179 | <small> |
180 | 180 | <?php |
181 | | - echo wp_kses( |
182 | | - sprintf( |
183 | | - // translators: %s Nginx cache purge module link. |
184 | | - __( 'Uses the %s module.', 'nginx-helper' ), |
185 | | - '<strong><a href="https://github.com/FRiCKLE/ngx_cache_purge">ngx_cache_purge</a></strong>' |
186 | | - ), |
187 | | - array( |
188 | | - 'strong' => array(), |
189 | | - 'a' => array( |
190 | | - 'href' => array(), |
191 | | - ), |
192 | | - ) |
193 | | - ); |
| 181 | + echo wp_kses( |
| 182 | + sprintf( |
| 183 | + // translators: %s Nginx cache purge module link. |
| 184 | + __( 'Uses the %s module.', 'nginx-helper' ), |
| 185 | + '<strong><a href="https://github.com/FRiCKLE/ngx_cache_purge">ngx_cache_purge</a></strong>' |
| 186 | + ), |
| 187 | + array( |
| 188 | + 'strong' => array(), |
| 189 | + 'a' => array( |
| 190 | + 'href' => array(), |
| 191 | + ), |
| 192 | + ) |
| 193 | + ); |
194 | 194 | ?> |
195 | 195 | </small> |
196 | 196 | </label> |
|
199 | 199 | <input type="radio" value="unlink_files" id="purge_method_unlink_files" name="purge_method" <?php checked( $nginx_helper_settings['purge_method'], 'unlink_files' ); ?>> |
200 | 200 | |
201 | 201 | <?php |
202 | | - esc_html_e( 'Delete local server cache files', 'nginx-helper' ); |
| 202 | + esc_html_e( 'Delete local server cache files', 'nginx-helper' ); |
203 | 203 | ?> |
204 | 204 | <br /> |
205 | 205 | <small> |
206 | 206 | <?php |
207 | | - echo wp_kses( |
208 | | - __( 'Checks for matching cache file in <strong>RT_WP_NGINX_HELPER_CACHE_PATH</strong>. Does not require any other modules. Requires that the cache be stored on the same server as WordPress. You must also be using the default nginx cache options (levels=1:2) and (fastcgi_cache_key "$scheme$request_method$host$request_uri").', 'nginx-helper' ), |
209 | | - array( 'strong' => array() ) |
210 | | - ); |
| 207 | + echo wp_kses( |
| 208 | + __( 'Checks for matching cache file in <strong>RT_WP_NGINX_HELPER_CACHE_PATH</strong>. Does not require any other modules. Requires that the cache be stored on the same server as WordPress. You must also be using the default nginx cache options (levels=1:2) and (fastcgi_cache_key "$scheme$request_method$host$request_uri").', 'nginx-helper' ), |
| 209 | + array( 'strong' => array() ) |
| 210 | + ); |
211 | 211 | ?> |
212 | 212 | </small> |
213 | 213 | </label> |
|
287 | 287 | <span> |
288 | 288 | |
289 | 289 | <?php |
290 | | - esc_html_e( 'when a post/page/custom post is modified or added.', 'nginx-helper' ); |
| 290 | + esc_html_e( 'when a post/page/custom post is modified or added.', 'nginx-helper' ); |
291 | 291 | ?> |
292 | 292 | </span> |
293 | 293 | </legend> |
294 | 294 | <label for="purge_homepage_on_edit"> |
295 | 295 | <input type="checkbox" value="1" id="purge_homepage_on_edit" name="purge_homepage_on_edit" <?php checked( $nginx_helper_settings['purge_homepage_on_edit'], 1 ); ?> /> |
296 | 296 | |
297 | 297 | <?php |
298 | | - echo wp_kses( |
299 | | - __( 'when a <strong>post</strong> (or page/custom post) is <strong>modified</strong> or <strong>added</strong>.', 'nginx-helper' ), |
300 | | - array( 'strong' => array() ) |
301 | | - ); |
| 298 | + echo wp_kses( |
| 299 | + __( 'when a <strong>post</strong> (or page/custom post) is <strong>modified</strong> or <strong>added</strong>.', 'nginx-helper' ), |
| 300 | + array( 'strong' => array() ) |
| 301 | + ); |
302 | 302 | ?> |
303 | 303 | </label> |
304 | 304 | <br /> |
|
308 | 308 | <span> |
309 | 309 | |
310 | 310 | <?php |
311 | | - esc_html_e( 'when an existing post/page/custom post is modified.', 'nginx-helper' ); |
| 311 | + esc_html_e( 'when an existing post/page/custom post is modified.', 'nginx-helper' ); |
312 | 312 | ?> |
313 | 313 | </span> |
314 | 314 | </legend> |
315 | 315 | <label for="purge_homepage_on_del"> |
316 | 316 | <input type="checkbox" value="1" id="purge_homepage_on_del" name="purge_homepage_on_del" <?php checked( $nginx_helper_settings['purge_homepage_on_del'], 1 ); ?> /> |
317 | 317 | |
318 | 318 | <?php |
319 | | - echo wp_kses( |
320 | | - __( 'when a <strong>published post</strong> (or page/custom post) is <strong>trashed</strong>', 'nginx-helper' ), |
321 | | - array( 'strong' => array() ) |
322 | | - ); |
| 319 | + echo wp_kses( |
| 320 | + __( 'when a <strong>published post</strong> (or page/custom post) is <strong>trashed</strong>', 'nginx-helper' ), |
| 321 | + array( 'strong' => array() ) |
| 322 | + ); |
323 | 323 | ?> |
324 | 324 | </label> |
325 | 325 | <br /> |
|
339 | 339 | <legend class="screen-reader-text"> |
340 | 340 | <span> |
341 | 341 | <?php |
342 | | - esc_html_e( 'when a post/page/custom post is published.', 'nginx-helper' ); |
| 342 | + esc_html_e( 'when a post/page/custom post is published.', 'nginx-helper' ); |
343 | 343 | ?> |
344 | 344 | </span> |
345 | 345 | </legend> |
346 | 346 | <label for="purge_page_on_mod"> |
347 | 347 | <input type="checkbox" value="1" id="purge_page_on_mod" name="purge_page_on_mod" <?php checked( $nginx_helper_settings['purge_page_on_mod'], 1 ); ?>> |
348 | 348 | |
349 | 349 | <?php |
350 | | - echo wp_kses( |
351 | | - __( 'when a <strong>post</strong> is <strong>published</strong>.', 'nginx-helper' ), |
352 | | - array( 'strong' => array() ) |
353 | | - ); |
| 350 | + echo wp_kses( |
| 351 | + __( 'when a <strong>post</strong> is <strong>published</strong>.', 'nginx-helper' ), |
| 352 | + array( 'strong' => array() ) |
| 353 | + ); |
354 | 354 | ?> |
355 | 355 | </label> |
356 | 356 | <br /> |
|
360 | 360 | <span> |
361 | 361 | |
362 | 362 | <?php |
363 | | - esc_html_e( 'when a comment is approved/published.', 'nginx-helper' ); |
| 363 | + esc_html_e( 'when a comment is approved/published.', 'nginx-helper' ); |
364 | 364 | ?> |
365 | 365 | </span> |
366 | 366 | </legend> |
367 | 367 | <label for="purge_page_on_new_comment"> |
368 | 368 | <input type="checkbox" value="1" id="purge_page_on_new_comment" name="purge_page_on_new_comment" <?php checked( $nginx_helper_settings['purge_page_on_new_comment'], 1 ); ?>> |
369 | 369 | |
370 | 370 | <?php |
371 | | - echo wp_kses( |
372 | | - __( 'when a <strong>comment</strong> is <strong>approved/published</strong>.', 'nginx-helper' ), |
373 | | - array( 'strong' => array() ) |
374 | | - ); |
| 371 | + echo wp_kses( |
| 372 | + __( 'when a <strong>comment</strong> is <strong>approved/published</strong>.', 'nginx-helper' ), |
| 373 | + array( 'strong' => array() ) |
| 374 | + ); |
375 | 375 | ?> |
376 | 376 | </label> |
377 | 377 | <br /> |
|
381 | 381 | <span> |
382 | 382 | |
383 | 383 | <?php |
384 | | - esc_html_e( 'when a comment is unapproved/deleted.', 'nginx-helper' ); |
| 384 | + esc_html_e( 'when a comment is unapproved/deleted.', 'nginx-helper' ); |
385 | 385 | ?> |
386 | 386 | </span> |
387 | 387 | </legend> |
388 | 388 | <label for="purge_page_on_deleted_comment"> |
389 | 389 | <input type="checkbox" value="1" id="purge_page_on_deleted_comment" name="purge_page_on_deleted_comment" <?php checked( $nginx_helper_settings['purge_page_on_deleted_comment'], 1 ); ?>> |
390 | 390 | |
391 | 391 | <?php |
392 | | - echo wp_kses( |
393 | | - __( 'when a <strong>comment</strong> is <strong>unapproved/deleted</strong>.', 'nginx-helper' ), |
394 | | - array( 'strong' => array() ) |
395 | | - ); |
| 392 | + echo wp_kses( |
| 393 | + __( 'when a <strong>comment</strong> is <strong>unapproved/deleted</strong>.', 'nginx-helper' ), |
| 394 | + array( 'strong' => array() ) |
| 395 | + ); |
396 | 396 | ?> |
397 | 397 | </label> |
398 | 398 | <br /> |
|
510 | 510 | <span> |
511 | 511 | |
512 | 512 | <?php |
513 | | - esc_html_e( 'purge feeds', 'nginx-helper' ); |
| 513 | + esc_html_e( 'purge feeds', 'nginx-helper' ); |
514 | 514 | ?> |
515 | 515 | </span> |
516 | 516 | </legend> |
517 | 517 | <label for="purge_feeds"> |
518 | 518 | <input type="checkbox" value="1" id="purge_feeds" name="purge_feeds" <?php checked( $nginx_helper_settings['purge_feeds'], 1 ); ?> /> |
519 | 519 | |
520 | 520 | <?php |
521 | | - echo wp_kses( |
522 | | - __( 'purge <strong>feeds</strong> along with <strong>posts</strong> & <strong>pages</strong>.', 'nginx-helper' ), |
523 | | - array( 'strong' => array() ) |
524 | | - ); |
| 521 | + echo wp_kses( |
| 522 | + __( 'purge <strong>feeds</strong> along with <strong>posts</strong> & <strong>pages</strong>.', 'nginx-helper' ), |
| 523 | + array( 'strong' => array() ) |
| 524 | + ); |
525 | 525 | ?> |
526 | 526 | </label> |
527 | 527 | <br /> |
|
0 commit comments