@@ -20,7 +20,10 @@ |
||
20 | 20 | <div class="col-sm-12"> |
21 | 21 | <?php lsx_footer_top(); ?> |
22 | 22 | |
23 | - <p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) echo 'credit-float'; ?>"> |
|
23 | + <p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) { |
|
24 | + echo 'credit-float'; |
|
25 | +} |
|
26 | +?>"> |
|
24 | 27 | <?php |
25 | 28 | printf( |
26 | 29 | /* Translators: 1: current year, 2: blog name */ |
@@ -20,21 +20,21 @@ discard block |
||
20 | 20 | <div class="col-sm-12"> |
21 | 21 | <?php lsx_footer_top(); ?> |
22 | 22 | |
23 | - <p class="credit <?php if ( has_nav_menu( 'social' ) || has_nav_menu( 'footer' ) ) echo 'credit-float'; ?>"> |
|
23 | + <p class="credit <?php if (has_nav_menu('social') || has_nav_menu('footer')) echo 'credit-float'; ?>"> |
|
24 | 24 | <?php |
25 | 25 | printf( |
26 | 26 | /* Translators: 1: current year, 2: blog name */ |
27 | - esc_html__( '© %1$s %2$s All Rights Reserved', 'lsx' ), |
|
28 | - esc_html( date_i18n( 'Y' ) ), |
|
29 | - esc_html( get_bloginfo( 'name' ) ) |
|
27 | + esc_html__('© %1$s %2$s All Rights Reserved', 'lsx'), |
|
28 | + esc_html(date_i18n('Y')), |
|
29 | + esc_html(get_bloginfo('name')) |
|
30 | 30 | ); |
31 | 31 | ?> |
32 | 32 | |
33 | - <?php if ( apply_filters( 'lsx_credit_link', true ) ) : ?> |
|
33 | + <?php if (apply_filters('lsx_credit_link', true)) : ?> |
|
34 | 34 | <?php |
35 | 35 | printf( |
36 | 36 | /* Translators: 1: theme name, 2: author name and link */ |
37 | - esc_html__( ' | %1$s is a WordPress theme developed by %2$s.', 'lsx' ), |
|
37 | + esc_html__(' | %1$s is a WordPress theme developed by %2$s.', 'lsx'), |
|
38 | 38 | 'LSX', |
39 | 39 | '<a href="https://www.lsdev.biz/" rel="nofollow noreferrer noopener" title="LightSpeed WordPress Development - Unlocking the full value of your business, online" rel="author nofollow noopener noreferrer" >LightSpeed</a>' |
40 | 40 | ); |
@@ -42,24 +42,24 @@ discard block |
||
42 | 42 | <?php endif; ?> |
43 | 43 | </p> |
44 | 44 | |
45 | - <?php if ( has_nav_menu( 'social' ) ) : ?> |
|
45 | + <?php if (has_nav_menu('social')) : ?> |
|
46 | 46 | <nav id="social-navigation" class="social-navigation"> |
47 | 47 | <?php |
48 | - wp_nav_menu( array( |
|
48 | + wp_nav_menu(array( |
|
49 | 49 | 'theme_location' => 'social', |
50 | 50 | 'depth' => 1, |
51 | - ) ); |
|
51 | + )); |
|
52 | 52 | ?> |
53 | 53 | </nav><!-- .social-navigation --> |
54 | 54 | <?php endif; ?> |
55 | 55 | |
56 | - <?php if ( has_nav_menu( 'footer' ) ) : ?> |
|
56 | + <?php if (has_nav_menu('footer')) : ?> |
|
57 | 57 | <nav id="footer-navigation" class="footer-navigation"> |
58 | 58 | <?php |
59 | - wp_nav_menu( array( |
|
59 | + wp_nav_menu(array( |
|
60 | 60 | 'theme_location' => 'footer', |
61 | 61 | 'depth' => 1, |
62 | - ) ); |
|
62 | + )); |
|
63 | 63 | ?> |
64 | 64 | </nav><!-- .footer-navigation --> |
65 | 65 | <?php endif; ?> |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | |
10 | 10 | <?php lsx_content_wrap_before(); ?> |
11 | 11 | |
12 | -<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
12 | +<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
13 | 13 | |
14 | 14 | <?php lsx_content_before(); ?> |
15 | 15 | |
@@ -17,13 +17,13 @@ discard block |
||
17 | 17 | |
18 | 18 | <?php lsx_content_top(); ?> |
19 | 19 | |
20 | - <?php if ( have_posts() ) : ?> |
|
20 | + <?php if (have_posts()) : ?> |
|
21 | 21 | |
22 | 22 | <div class="post-wrapper"> |
23 | 23 | |
24 | - <?php while ( have_posts() ) : the_post(); ?> |
|
24 | + <?php while (have_posts()) : the_post(); ?> |
|
25 | 25 | |
26 | - <?php get_template_part( 'partials/content', get_post_format() ); ?> |
|
26 | + <?php get_template_part('partials/content', get_post_format()); ?> |
|
27 | 27 | |
28 | 28 | <?php endwhile; ?> |
29 | 29 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | <?php else : ?> |
35 | 35 | |
36 | - <?php get_template_part( 'partials/content', 'none' ); ?> |
|
36 | + <?php get_template_part('partials/content', 'none'); ?> |
|
37 | 37 | |
38 | 38 | <?php endif; ?> |
39 | 39 | |
@@ -47,6 +47,6 @@ discard block |
||
47 | 47 | |
48 | 48 | <?php lsx_content_wrap_after(); ?> |
49 | 49 | |
50 | -<?php get_sidebar( 'sidebar' ); ?> |
|
50 | +<?php get_sidebar('sidebar'); ?> |
|
51 | 51 | |
52 | 52 | <?php get_footer(); |
@@ -31,9 +31,12 @@ |
||
31 | 31 | |
32 | 32 | <?php lsx_paging_nav(); ?> |
33 | 33 | |
34 | - <?php else : ?> |
|
34 | + <?php else { |
|
35 | + : ?> |
|
35 | 36 | |
36 | - <?php get_template_part( 'partials/content', 'none' ); ?> |
|
37 | + <?php get_template_part( 'partials/content', 'none' ); |
|
38 | +} |
|
39 | +?> |
|
37 | 40 | |
38 | 41 | <?php endif; ?> |
39 | 42 |
@@ -5,25 +5,25 @@ discard block |
||
5 | 5 | * @package lsx |
6 | 6 | */ |
7 | 7 | |
8 | -if ( isset( $GLOBALS['comment_depth'] ) ) { |
|
9 | - $depth = intval( $GLOBALS['comment_depth'] ); |
|
8 | +if (isset($GLOBALS['comment_depth'])) { |
|
9 | + $depth = intval($GLOBALS['comment_depth']); |
|
10 | 10 | } else { |
11 | 11 | $depth = 1; |
12 | 12 | } |
13 | 13 | |
14 | -$max_depth = intval( get_option( 'thread_comments_depth' ) ); |
|
14 | +$max_depth = intval(get_option('thread_comments_depth')); |
|
15 | 15 | |
16 | -echo get_avatar( $comment, '128' ); |
|
16 | +echo get_avatar($comment, '128'); |
|
17 | 17 | ?> |
18 | 18 | <div class="media-body"> |
19 | 19 | <h4 class="media-heading"><?php echo get_comment_author_link(); ?></h4> |
20 | 20 | |
21 | - <time datetime="<?php echo comment_date( 'c' ); ?>"> |
|
22 | - <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"> |
|
21 | + <time datetime="<?php echo comment_date('c'); ?>"> |
|
22 | + <a href="<?php echo esc_url(get_comment_link($comment->comment_ID)); ?>"> |
|
23 | 23 | <?php |
24 | 24 | printf( |
25 | 25 | /* Translators: 1: post date, 2: post time */ |
26 | - esc_html__( '%1$s on %2$s', 'lsx' ), |
|
26 | + esc_html__('%1$s on %2$s', 'lsx'), |
|
27 | 27 | get_comment_date(), |
28 | 28 | get_comment_time() |
29 | 29 | ); |
@@ -31,18 +31,18 @@ discard block |
||
31 | 31 | </a> |
32 | 32 | </time> |
33 | 33 | |
34 | - <?php edit_comment_link( esc_html__( '(Edit)', 'lsx' ), '', '' ); ?> |
|
34 | + <?php edit_comment_link(esc_html__('(Edit)', 'lsx'), '', ''); ?> |
|
35 | 35 | |
36 | - <?php if ( ! $comment->comment_approved ) : ?> |
|
36 | + <?php if ( ! $comment->comment_approved) : ?> |
|
37 | 37 | <div class="alert alert-info"> |
38 | - <?php esc_html_e( 'Your comment is awaiting moderation.', 'lsx' ); ?> |
|
38 | + <?php esc_html_e('Your comment is awaiting moderation.', 'lsx'); ?> |
|
39 | 39 | </div> |
40 | 40 | <?php endif; ?> |
41 | 41 | |
42 | 42 | <?php |
43 | 43 | comment_text(); |
44 | 44 | |
45 | -comment_reply_link( array( |
|
45 | +comment_reply_link(array( |
|
46 | 46 | 'depth' => $depth, |
47 | 47 | 'max_depth' => $max_depth, |
48 | -) ); |
|
48 | +)); |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | |
10 | 10 | <?php lsx_content_wrap_before(); ?> |
11 | 11 | |
12 | -<div id="primary" class="content-area <?php echo esc_attr( lsx_main_class() ); ?>"> |
|
12 | +<div id="primary" class="content-area <?php echo esc_attr(lsx_main_class()); ?>"> |
|
13 | 13 | |
14 | 14 | <?php lsx_content_before(); ?> |
15 | 15 | |
@@ -17,13 +17,13 @@ discard block |
||
17 | 17 | |
18 | 18 | <?php lsx_content_top(); ?> |
19 | 19 | |
20 | - <?php if ( have_posts() ) : ?> |
|
20 | + <?php if (have_posts()) : ?> |
|
21 | 21 | |
22 | 22 | <div class="post-wrapper"> |
23 | 23 | |
24 | - <?php while ( have_posts() ) : the_post(); ?> |
|
24 | + <?php while (have_posts()) : the_post(); ?> |
|
25 | 25 | |
26 | - <?php get_template_part( 'partials/content', get_post_format() ); ?> |
|
26 | + <?php get_template_part('partials/content', get_post_format()); ?> |
|
27 | 27 | |
28 | 28 | <?php endwhile; ?> |
29 | 29 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | <?php else : ?> |
35 | 35 | |
36 | - <?php get_template_part( 'partials/content', 'none' ); ?> |
|
36 | + <?php get_template_part('partials/content', 'none'); ?> |
|
37 | 37 | |
38 | 38 | <?php endif; ?> |
39 | 39 |
@@ -31,9 +31,12 @@ |
||
31 | 31 | |
32 | 32 | <?php lsx_paging_nav(); ?> |
33 | 33 | |
34 | - <?php else : ?> |
|
34 | + <?php else { |
|
35 | + : ?> |
|
35 | 36 | |
36 | - <?php get_template_part( 'partials/content', 'none' ); ?> |
|
37 | + <?php get_template_part( 'partials/content', 'none' ); |
|
38 | +} |
|
39 | +?> |
|
37 | 40 | |
38 | 41 | <?php endif; ?> |
39 | 42 |
@@ -7,28 +7,28 @@ |
||
7 | 7 | |
8 | 8 | $style = 'body #searchform { display: block; }'; |
9 | 9 | |
10 | -if ( is_customize_preview() ) { |
|
11 | - $search_form = get_theme_mod( 'lsx_header_search', false ); |
|
10 | +if (is_customize_preview()) { |
|
11 | + $search_form = get_theme_mod('lsx_header_search', false); |
|
12 | 12 | |
13 | - if ( false === $search_form ) { |
|
13 | + if (false === $search_form) { |
|
14 | 14 | $style = 'body #searchform { display: none; }'; |
15 | 15 | } |
16 | 16 | } |
17 | 17 | ?> |
18 | 18 | |
19 | -<form role="search" method="get" class="search-form form-inline" id="searchform" action="<?php echo esc_url( home_url( '/' ) ); ?>"> |
|
19 | +<form role="search" method="get" class="search-form form-inline" id="searchform" action="<?php echo esc_url(home_url('/')); ?>"> |
|
20 | 20 | <div class="input-group"> |
21 | - <input type="search" value="<?php if ( is_search() ) { echo get_search_query(); } ?>" name="s" class="search-field form-control" placeholder="<?php esc_attr_e( 'Search', 'lsx' ); ?> <?php echo esc_attr( get_bloginfo( 'name' ) ); ?>"> |
|
22 | - <label class="hide"><?php esc_attr_e( 'Search for:', 'lsx' ); ?></label> |
|
21 | + <input type="search" value="<?php if (is_search()) { echo get_search_query(); } ?>" name="s" class="search-field form-control" placeholder="<?php esc_attr_e('Search', 'lsx'); ?> <?php echo esc_attr(get_bloginfo('name')); ?>"> |
|
22 | + <label class="hide"><?php esc_attr_e('Search for:', 'lsx'); ?></label> |
|
23 | 23 | |
24 | 24 | <span class="input-group-btn"> |
25 | 25 | <button type="submit" class="search-submit btn btn-default"><span class="fa fa-search"></span></button> |
26 | 26 | </span> |
27 | 27 | </div> |
28 | 28 | |
29 | - <?php if ( is_customize_preview() ) : ?> |
|
29 | + <?php if (is_customize_preview()) : ?> |
|
30 | 30 | <style id="lsx-header-search-css"> |
31 | - <?php echo esc_attr( $style ); ?> |
|
31 | + <?php echo esc_attr($style); ?> |
|
32 | 32 | </style> |
33 | 33 | <?php endif; ?> |
34 | 34 | </form> |
@@ -20,11 +20,11 @@ discard block |
||
20 | 20 | |
21 | 21 | <?php lsx_content_top(); ?> |
22 | 22 | |
23 | - <?php if ( have_posts() ) : ?> |
|
23 | + <?php if (have_posts()) : ?> |
|
24 | 24 | |
25 | - <?php while ( have_posts() ) : the_post(); ?> |
|
25 | + <?php while (have_posts()) : the_post(); ?> |
|
26 | 26 | |
27 | - <?php get_template_part( 'partials/content', 'page' ); ?> |
|
27 | + <?php get_template_part('partials/content', 'page'); ?> |
|
28 | 28 | |
29 | 29 | <?php endwhile; ?> |
30 | 30 | |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | <?php lsx_content_bottom(); ?> |
34 | 34 | |
35 | 35 | <?php |
36 | - if ( comments_open() ) { |
|
36 | + if (comments_open()) { |
|
37 | 37 | comments_template(); |
38 | 38 | } |
39 | 39 | ?> |
@@ -11,14 +11,14 @@ |
||
11 | 11 | <html <?php language_attributes(); ?>> |
12 | 12 | <head> |
13 | 13 | <?php lsx_head_top(); ?> |
14 | - <meta charset="<?php bloginfo( 'charset' ); ?>"> |
|
14 | + <meta charset="<?php bloginfo('charset'); ?>"> |
|
15 | 15 | <link rel="profile" href="http://gmpg.org/xfn/11"> |
16 | - <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>"> |
|
16 | + <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>"> |
|
17 | 17 | <?php lsx_head_bottom(); ?> |
18 | 18 | <?php wp_head(); ?> |
19 | 19 | </head> |
20 | 20 | |
21 | - <body <?php body_class( 'lsx' ); ?>> |
|
21 | + <body <?php body_class('lsx'); ?>> |
|
22 | 22 | <?php lsx_body_top(); ?> |
23 | 23 | |
24 | 24 | <div class="header-wrap"> |
@@ -7,11 +7,11 @@ discard block |
||
7 | 7 | * @category bootstrap-navigation-walker |
8 | 8 | */ |
9 | 9 | |
10 | -if ( ! defined( 'ABSPATH' ) ) { |
|
10 | +if ( ! defined('ABSPATH')) { |
|
11 | 11 | exit; |
12 | 12 | } |
13 | 13 | |
14 | -if ( ! function_exists( 'lsx_wpml_nav_language_switcher_fix' ) ) : |
|
14 | +if ( ! function_exists('lsx_wpml_nav_language_switcher_fix')) : |
|
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Add in our custom classes to the menus. |
@@ -20,12 +20,12 @@ discard block |
||
20 | 20 | * @subpackage navigation |
21 | 21 | * @category bootstrap-navigation-walker |
22 | 22 | */ |
23 | - function lsx_wpml_nav_language_switcher_fix( $items, $args ) { |
|
24 | - $items = str_replace( 'menu-item-language-current','menu-item-language-current dropdown', $items ); |
|
25 | - $items = str_replace( 'submenu-languages','submenu-languages dropdown-menu', $items ); |
|
23 | + function lsx_wpml_nav_language_switcher_fix($items, $args) { |
|
24 | + $items = str_replace('menu-item-language-current', 'menu-item-language-current dropdown', $items); |
|
25 | + $items = str_replace('submenu-languages', 'submenu-languages dropdown-menu', $items); |
|
26 | 26 | return $items; |
27 | 27 | } |
28 | 28 | |
29 | 29 | endif; |
30 | 30 | |
31 | -add_filter( 'wp_nav_menu_items', 'lsx_wpml_nav_language_switcher_fix', 10, 2 ); |
|
31 | +add_filter('wp_nav_menu_items', 'lsx_wpml_nav_language_switcher_fix', 10, 2); |
@@ -21,7 +21,7 @@ |
||
21 | 21 | * @param mixed $value The value to sanitize. |
22 | 22 | * @param mixed $setting The setting for which the sanitizing is occurring. |
23 | 23 | * @return mixed The sanitized value. |
24 | - */ |
|
24 | + */ |
|
25 | 25 | function lsx_sanitize_choices( $value, $setting ) { |
26 | 26 | if ( is_object( $setting ) ) { |
27 | 27 | $setting = $setting->id; |
@@ -6,11 +6,11 @@ discard block |
||
6 | 6 | * @subpackage sanitize |
7 | 7 | */ |
8 | 8 | |
9 | -if ( ! defined( 'ABSPATH' ) ) { |
|
9 | +if ( ! defined('ABSPATH')) { |
|
10 | 10 | exit; |
11 | 11 | } |
12 | 12 | |
13 | -if ( ! function_exists( 'lsx_sanitize_choices' ) ) : |
|
13 | +if ( ! function_exists('lsx_sanitize_choices')) : |
|
14 | 14 | |
15 | 15 | /** |
16 | 16 | * Sanitize a value from a list of allowed values. |
@@ -22,18 +22,18 @@ discard block |
||
22 | 22 | * @param mixed $setting The setting for which the sanitizing is occurring. |
23 | 23 | * @return mixed The sanitized value. |
24 | 24 | */ |
25 | - function lsx_sanitize_choices( $value, $setting ) { |
|
26 | - if ( is_object( $setting ) ) { |
|
25 | + function lsx_sanitize_choices($value, $setting) { |
|
26 | + if (is_object($setting)) { |
|
27 | 27 | $setting = $setting->id; |
28 | 28 | } |
29 | 29 | |
30 | - $choices = lsx_customizer_sanitize_get_choices( $setting ); |
|
30 | + $choices = lsx_customizer_sanitize_get_choices($setting); |
|
31 | 31 | |
32 | - if ( ! is_wp_error( $choices ) && ! empty( $choices ) ) { |
|
33 | - $allowed_choices = array_keys( $choices ); |
|
32 | + if ( ! is_wp_error($choices) && ! empty($choices)) { |
|
33 | + $allowed_choices = array_keys($choices); |
|
34 | 34 | |
35 | - if ( ! in_array( $value, $allowed_choices ) ) { |
|
36 | - $value = lsx_customizer_sanitize_get_default( $setting ); |
|
35 | + if ( ! in_array($value, $allowed_choices)) { |
|
36 | + $value = lsx_customizer_sanitize_get_default($setting); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | return $value; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | |
45 | 45 | endif; |
46 | 46 | |
47 | -if ( ! function_exists( 'lsx_customizer_sanitize_get_choices' ) ) : |
|
47 | +if ( ! function_exists('lsx_customizer_sanitize_get_choices')) : |
|
48 | 48 | |
49 | 49 | /** |
50 | 50 | * Helper function to return the choices for a field. |
@@ -55,14 +55,14 @@ discard block |
||
55 | 55 | * @param string |
56 | 56 | * @return mixed $field |
57 | 57 | */ |
58 | - function lsx_customizer_sanitize_get_choices( $id ) { |
|
58 | + function lsx_customizer_sanitize_get_choices($id) { |
|
59 | 59 | global $lsx_customizer; |
60 | 60 | |
61 | - $can_validate = method_exists( 'WP_Customize_Setting', 'validate' ); |
|
62 | - $field = $lsx_customizer->get_control( $id ); |
|
61 | + $can_validate = method_exists('WP_Customize_Setting', 'validate'); |
|
62 | + $field = $lsx_customizer->get_control($id); |
|
63 | 63 | |
64 | - if ( ! isset( $field['choices'] ) ) { |
|
65 | - return $can_validate ? new WP_Error( 'notexists', esc_html__( 'Choice doesn\'t exist', 'lsx' ) ) : false; |
|
64 | + if ( ! isset($field['choices'])) { |
|
65 | + return $can_validate ? new WP_Error('notexists', esc_html__('Choice doesn\'t exist', 'lsx')) : false; |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | return $field['choices']; |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | |
71 | 71 | endif; |
72 | 72 | |
73 | -if ( ! function_exists( 'lsx_customizer_sanitize_get_default' ) ) : |
|
73 | +if ( ! function_exists('lsx_customizer_sanitize_get_default')) : |
|
74 | 74 | |
75 | 75 | /** |
76 | 76 | * Helper function to return defaults. |
@@ -81,11 +81,11 @@ discard block |
||
81 | 81 | * @param string |
82 | 82 | * @return mixed $default |
83 | 83 | */ |
84 | - function lsx_customizer_sanitize_get_default( $id ) { |
|
84 | + function lsx_customizer_sanitize_get_default($id) { |
|
85 | 85 | global $lsx_customizer; |
86 | - $setting = $lsx_customizer->get_setting( $id ); |
|
86 | + $setting = $lsx_customizer->get_setting($id); |
|
87 | 87 | |
88 | - if ( isset( $setting['default'] ) ) { |
|
88 | + if (isset($setting['default'])) { |
|
89 | 89 | return $setting['default']; |
90 | 90 | } |
91 | 91 | |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | |
95 | 95 | endif; |
96 | 96 | |
97 | -if ( ! function_exists( 'lsx_sanitize_checkbox' ) ) : |
|
97 | +if ( ! function_exists('lsx_sanitize_checkbox')) : |
|
98 | 98 | |
99 | 99 | /** |
100 | 100 | * Sanitizes an single or multiple checkbox input. |
@@ -105,11 +105,11 @@ discard block |
||
105 | 105 | * @param array $input |
106 | 106 | * @return array $output |
107 | 107 | */ |
108 | - function lsx_sanitize_checkbox( $input ) { |
|
109 | - $can_validate = method_exists( 'WP_Customize_Setting', 'validate' ); |
|
108 | + function lsx_sanitize_checkbox($input) { |
|
109 | + $can_validate = method_exists('WP_Customize_Setting', 'validate'); |
|
110 | 110 | |
111 | - if ( ! is_bool( $input ) ) { |
|
112 | - return $can_validate ? new WP_Error( 'notboolean', esc_html__( 'Not a boolean', 'lsx' ) ) : false; |
|
111 | + if ( ! is_bool($input)) { |
|
112 | + return $can_validate ? new WP_Error('notboolean', esc_html__('Not a boolean', 'lsx')) : false; |
|
113 | 113 | } |
114 | 114 | |
115 | 115 | return $input; |