From 04190addc3c15652a9a0b2c7f183a22b344f3614 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Mon, 21 Mar 2022 18:51:18 -0600 Subject: [PATCH] more phpcs cleanup --- includes/coming-soon.php | 2 +- includes/template/index.php | 20 +++++++++----------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/includes/coming-soon.php b/includes/coming-soon.php index a5e4690..884ffed 100644 --- a/includes/coming-soon.php +++ b/includes/coming-soon.php @@ -107,7 +107,7 @@ public function add_tool_bar_item( \WP_Admin_Bar $admin_bar ) { * Load the coming soon page, if necessary. */ public function maybe_load_template() { - if ( ! is_user_logged_in() || 'coming_soon' === $_GET['preview'] ) { + if ( ! is_user_logged_in() || 'preview=coming_soon' === $_SERVER['QUERY_STRING'] ) { $coming_soon = get_option( esc_attr( $this->args['option_name'] ), 'false' ); if ( 'true' === $coming_soon ) { $this->coming_soon_content( $this->args ); diff --git a/includes/template/index.php b/includes/template/index.php index 4a4b568..ed149c5 100644 --- a/includes/template/index.php +++ b/includes/template/index.php @@ -11,13 +11,11 @@ - <?php esc_html_e( $args['template_page_title'] ); ?> + <?php echo esc_html( $args['template_page_title'] ); ?> - + - + @@ -31,23 +29,23 @@

-

+

- +
- +
- +