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