66 * @package Bsf_Custom_Fonts
77 */
88
9- defined ( 'ABSPATH ' ) or exit;
9+ defined ( 'ABSPATH ' ) || exit;
1010
1111if ( ! class_exists ( 'Custom_Typekit_Fonts_Admin ' ) ) :
1212
@@ -21,7 +21,7 @@ class Custom_Typekit_Fonts_Admin {
2121 * @since 1.0.0
2222 * @var (Object) Custom_Typekit_Fonts_Admin
2323 */
24- private static $ _instance = null ;
24+ private static $ instance = null ;
2525
2626 /**
2727 * Parent Menu Slug
@@ -39,11 +39,11 @@ class Custom_Typekit_Fonts_Admin {
3939 * @return object Class object.
4040 */
4141 public static function get_instance () {
42- if ( ! isset ( self ::$ _instance ) ) {
43- self ::$ _instance = new self ;
42+ if ( ! isset ( self ::$ instance ) ) {
43+ self ::$ instance = new self () ;
4444 }
4545
46- return self ::$ _instance ;
46+ return self ::$ instance ;
4747 }
4848
4949 /**
@@ -65,7 +65,7 @@ public function __construct() {
6565 */
6666 public function set_custom_typekit_fonts_notice () {
6767
68- // Notice for Custom Typekit Fonts action.
68+ // Notice for the Custom Typekit Fonts action.
6969 if ( isset ( $ _POST ['custom-typekit-fonts-nonce ' ] ) && wp_verify_nonce ( $ _POST ['custom-typekit-fonts-nonce ' ], 'custom-typekit-fonts ' ) ) {
7070
7171 if ( isset ( $ _POST ['custom-typekit-fonts-submitted ' ] ) ) {
@@ -77,17 +77,17 @@ public function set_custom_typekit_fonts_notice() {
7777 if ( isset ( $ _POST ['custom-typekit-id-notice ' ] ) && $ _POST ['custom-typekit-id-notice ' ] ) {
7878 ?>
7979 <div class="notice notice-error is-dismissible">
80- <p><?php _e ( 'Please Enter the Valid Kit ID to get the kit details. ' , 'custom-typekit-fonts ' ); ?> </p>
80+ <p><?php esc_html_e ( 'Please Enter the Valid Kit ID to get the kit details. ' , 'custom-typekit-fonts ' ); ?> </p>
8181 </div>
8282 <?php
8383 } elseif ( isset ( $ _POST ['custom-typekit-empty-notice ' ] ) && $ _POST ['custom-typekit-empty-notice ' ] ) {
8484 ?>
8585 <div class="notice notice-warning is-dismissible">
86- <p><?php _e ( 'This Kit is empty. Please add some fonts in it. ' , 'custom-typekit-fonts ' ); ?> </p>
86+ <p><?php esc_html_e ( 'This Kit is empty. Please add some fonts in it. ' , 'custom-typekit-fonts ' ); ?> </p>
8787 </div>
8888 <?php } else { ?>
8989 <div class="notice notice-success is-dismissible">
90- <p><?php _e ( 'Custom Typekit Fonts settings have been successfully saved. ' , 'custom-typekit-fonts ' ); ?> </p>
90+ <p><?php esc_html_e ( 'Custom Typekit Fonts settings have been successfully saved. ' , 'custom-typekit-fonts ' ); ?> </p>
9191 </div>
9292 <?php
9393 }
@@ -138,7 +138,7 @@ public function enqueue_scripts() {
138138
139139 wp_enqueue_style ( 'custom-typekit-fonts-css ' , CUSTOM_TYPEKIT_FONTS_URI . 'assets/css/custom-typekit-fonts.css ' , array (), CUSTOM_TYPEKIT_FONTS_VER );
140140
141- wp_enqueue_script ( 'custom-typekit-fonts-js ' , CUSTOM_TYPEKIT_FONTS_URI . 'assets/js/custom-typekit-fonts.js ' , array ( 'jquery-ui-tooltip ' ), CUSTOM_TYPEKIT_FONTS_VER );
141+ wp_enqueue_script ( 'custom-typekit-fonts-js ' , CUSTOM_TYPEKIT_FONTS_URI . 'assets/js/custom-typekit-fonts.js ' , array ( 'jquery-ui-tooltip ' ), CUSTOM_TYPEKIT_FONTS_VER , false );
142142
143143 }
144144
0 commit comments