| @@ -8,10 +8,10 @@ | ||
| 8 | 8 | 'fastcgi-enabled' => __( 'Page Caching has been enabled.', 'flywp' ), |
| 9 | 9 | 'fastcgi-disabled' => __( 'Page Caching has been disabled.', 'flywp' ), |
| 10 | 10 | ]; |
| 11 | 11 | |
| 12 | -if ( isset( $_GET['fly-notice'] ) && isset( $cache_messages[ $_GET['fly-notice'] ] ) ) { | |
| 13 | - $notice = $cache_messages[ $_GET['fly-notice'] ]; | |
| 12 | +if ( isset( $_GET['fly-notice'] ) && isset( $cache_messages[$_GET['fly-notice']] ) ) { | |
| 13 | + $notice = $cache_messages[$_GET['fly-notice']]; | |
| 14 | 14 | } |
| 15 | 15 | ?> |
| 16 | 16 | |
| 17 | 17 | <div class="fw-bg-white fw-shadow fw-rounded fw-sm:rounded-lg fw-mb-6"> |
| @@ -35,9 +35,9 @@ | ||
| 35 | 35 | <?php } ?> |
| 36 | 36 | </div> |
| 37 | 37 | |
| 38 | 38 | <?php if ( $notice ) { ?> |
| 39 | - <div class="fw-bg-green-200 fw-text-green-800 fw-px-4 fw-py-1 fly-form-notice"> | |
| 39 | + <div class="fw-bg-green-200 fw-text-green-800 fw-px-4 fw-py-1" id="fly-page-cache-notice"> | |
| 40 | 40 | <p><?php echo esc_html( $notice ); ?></p> |
| 41 | 41 | </div> |
| 42 | 42 | <?php } ?> |
| 43 | 43 | |