From c0d1d861038ebeffa8c671181a214b0da96de56d Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sat, 18 Aug 2018 15:47:25 -0700 Subject: [PATCH] PHPCS --- camo-image-proxy.php | 2 +- inc/class-options-page.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/camo-image-proxy.php b/camo-image-proxy.php index 2403a19..9ed3d6e 100755 --- a/camo-image-proxy.php +++ b/camo-image-proxy.php @@ -14,7 +14,7 @@ namespace Camo_Image_Proxy; -define( __NAMESPACE__ . '\PLUGIN_PATH', dirname( __FILE__ ) ); +const PLUGIN_PATH = __DIR__; /** * Trait for singletons diff --git a/inc/class-options-page.php b/inc/class-options-page.php index 0ed5cdb..2e95406 100644 --- a/inc/class-options-page.php +++ b/inc/class-options-page.php @@ -76,7 +76,7 @@ class Options_Page { ?> <input type="<?php echo esc_attr( $input_type ); ?>" - name="<?php echo esc_html( $name ); ?>" + name="<?php echo esc_attr( $name ); ?>" class="regular-text" id="<?php echo esc_attr( $html_id ); ?>" value="<?php echo esc_attr( $value ); ?>" -- GitLab