@@ -123,27 +123,27 @@ discard block |
||
| 123 | 123 | <tbody> |
| 124 | 124 | <tr> |
| 125 | 125 | <td>PHP Version</td> |
| 126 | - <td><code><?php echo esc_attr( $data['phpVer'] ); ?></code></td> |
|
| 126 | + <td><code><?php echo esc_attr( $data[ 'phpVer' ] ); ?></code></td> |
|
| 127 | 127 | </tr> |
| 128 | 128 | <tr> |
| 129 | 129 | <td>ID</td> |
| 130 | - <td><code><?php echo esc_attr( $data['siteID'] ); ?></code></td> |
|
| 130 | + <td><code><?php echo esc_attr( $data[ 'siteID' ] ); ?></code></td> |
|
| 131 | 131 | </tr> |
| 132 | 132 | <tr> |
| 133 | 133 | <td>Theme Name</td> |
| 134 | - <td><code><?php echo esc_attr( $data['themeName'] ); ?></code></td> |
|
| 134 | + <td><code><?php echo esc_attr( $data[ 'themeName' ] ); ?></code></td> |
|
| 135 | 135 | </tr> |
| 136 | 136 | <tr> |
| 137 | 137 | <td>Theme Author</td> |
| 138 | - <td><code><?php echo esc_attr( $data['themeAuthor'] ); ?></code></td> |
|
| 138 | + <td><code><?php echo esc_attr( $data[ 'themeAuthor' ] ); ?></code></td> |
|
| 139 | 139 | </tr> |
| 140 | 140 | <tr> |
| 141 | 141 | <td>Theme URI</td> |
| 142 | - <td><code><?php echo esc_attr( $data['themeURI'] ); ?></code></td> |
|
| 142 | + <td><code><?php echo esc_attr( $data[ 'themeURI' ] ); ?></code></td> |
|
| 143 | 143 | </tr> |
| 144 | 144 | <tr> |
| 145 | 145 | <td>Theme Version</td> |
| 146 | - <td><code><?php echo esc_attr( $data['themeVersion'] ); ?></code></td> |
|
| 146 | + <td><code><?php echo esc_attr( $data[ 'themeVersion' ] ); ?></code></td> |
|
| 147 | 147 | </tr> |
| 148 | 148 | </tbody> |
| 149 | 149 | </table> |
@@ -201,10 +201,10 @@ discard block |
||
| 201 | 201 | private function dismiss_notice() { |
| 202 | 202 | |
| 203 | 203 | // Check if this is the request we want. |
| 204 | - if ( isset( $_GET['_wpnonce'] ) && isset( $_GET['kirki-hide-notice'] ) ) { |
|
| 205 | - if ( 'telemetry' === sanitize_text_field( wp_unslash( $_GET['kirki-hide-notice'] ) ) ) { |
|
| 204 | + if ( isset( $_GET[ '_wpnonce' ] ) && isset( $_GET[ 'kirki-hide-notice' ] ) ) { |
|
| 205 | + if ( 'telemetry' === sanitize_text_field( wp_unslash( $_GET[ 'kirki-hide-notice' ] ) ) ) { |
|
| 206 | 206 | // Check the wp-nonce. |
| 207 | - if ( wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ) ) ) { |
|
| 207 | + if ( wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET[ '_wpnonce' ] ) ) ) ) { |
|
| 208 | 208 | // All good, we can save the option to dismiss this notice. |
| 209 | 209 | update_option( 'kirki_telemetry_no_consent', true ); |
| 210 | 210 | } |
@@ -222,10 +222,10 @@ discard block |
||
| 222 | 222 | private function consent() { |
| 223 | 223 | |
| 224 | 224 | // Check if this is the request we want. |
| 225 | - if ( isset( $_GET['_wpnonce'] ) && isset( $_GET['kirki-consent-notice'] ) ) { |
|
| 226 | - if ( 'telemetry' === sanitize_text_field( wp_unslash( $_GET['kirki-consent-notice'] ) ) ) { |
|
| 225 | + if ( isset( $_GET[ '_wpnonce' ] ) && isset( $_GET[ 'kirki-consent-notice' ] ) ) { |
|
| 226 | + if ( 'telemetry' === sanitize_text_field( wp_unslash( $_GET[ 'kirki-consent-notice' ] ) ) ) { |
|
| 227 | 227 | // Check the wp-nonce. |
| 228 | - if ( wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET['_wpnonce'] ) ) ) ) { |
|
| 228 | + if ( wp_verify_nonce( sanitize_text_field( wp_unslash( $_GET[ '_wpnonce' ] ) ) ) ) { |
|
| 229 | 229 | // All good, we can save the option to dismiss this notice. |
| 230 | 230 | update_option( 'kirki_telemetry_optin', true ); |
| 231 | 231 | } |