From a4d23a49c293b28e45704a75561d51ee8d20f6eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9on=20Avic=20Simmons?= Date: Mon, 29 Jun 2026 12:05:45 -0400 Subject: [PATCH] fix: correct typos, capitalization, and a logic bug across 6 files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - functions.php: fix script handle 'small-meu' → 'small-menu', add apostrophe in comment - header.php: capitalize brand name 'Librivox' → 'LibriVox' in search label - content-statistics.php: fix 'stats-colum-one' → 'stats-column-one' in HTML comments (3 occurrences) - inc/theme-options.php: add missing braces to if-statement that caused unconditional overwrite of hiderss option - inc/conditional-mobile.php: capitalize brand names Android and BlackBerry in comments - home-content-main.php: remove extra dot in closing HTML comment --- content-statistics.php | 6 +++--- functions.php | 4 ++-- header.php | 2 +- home-content-main.php | 2 +- inc/conditional-mobile.php | 4 ++-- inc/theme-options.php | 5 +++-- 6 files changed, 12 insertions(+), 11 deletions(-) diff --git a/content-statistics.php b/content-statistics.php index 6aba859..2ec60db 100644 --- a/content-statistics.php +++ b/content-statistics.php @@ -15,16 +15,16 @@ + + + diff --git a/functions.php b/functions.php index 4bb1fc5..9a2d921 100644 --- a/functions.php +++ b/functions.php @@ -70,7 +70,7 @@ function librivox_menus() { function librivox_scripts() { wp_enqueue_style( 'style', get_stylesheet_uri() ); - wp_enqueue_script( 'small-meu', get_template_directory_uri() . '/js/small-menu.js', array( 'jquery' ), 'v1', true ); + wp_enqueue_script( 'small-menu', get_template_directory_uri() . '/js/small-menu.js', array( 'jquery' ), 'v1', true ); if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { wp_enqueue_script( 'comment-reply' ); @@ -182,7 +182,7 @@ function format_results($items) return $html; } -// Lets try to re-use as much formatting code from catalog as possible such as +// Let's try to re-use as much formatting code from catalog as possible such as // create_full_title and format_authors. require_once(ABSPATH . '../catalog/application/helpers/previewer_helper.php'); function base_url() { return LIBRIVOX_CATALOG_URL; } diff --git a/header.php b/header.php index 833d224..32e4908 100644 --- a/header.php +++ b/header.php @@ -49,7 +49,7 @@
diff --git a/home-content-main.php b/home-content-main.php index 6d2e079..d5c85ca 100644 --- a/home-content-main.php +++ b/home-content-main.php @@ -45,7 +45,7 @@
- + diff --git a/inc/conditional-mobile.php b/inc/conditional-mobile.php index cb7bd57..630c1f9 100644 --- a/inc/conditional-mobile.php +++ b/inc/conditional-mobile.php @@ -36,7 +36,7 @@ function is_ipod() { /*************************************************************** * Function is_android -* Detect an android device. They *SHOULD* all behave the same +* Detect an Android device. They *SHOULD* all behave the same ***************************************************************/ function is_android() { @@ -46,7 +46,7 @@ function is_android() { /*************************************************************** * Function is_blackberry -* Detect a blackberry device +* Detect a BlackBerry device ***************************************************************/ function is_blackberry() { diff --git a/inc/theme-options.php b/inc/theme-options.php index 1ad9fa9..90556f2 100644 --- a/inc/theme-options.php +++ b/inc/theme-options.php @@ -90,9 +90,10 @@ function librivox_options_do_page() { function librivox_options_validate( $input ) { // Our checkbox value is either 0 or 1 - if ( ! isset( $input['hiderss'] ) ) + if ( ! isset( $input['hiderss'] ) ) { $input['hiderss'] = null; - $input['hiderss'] = ( $input['hiderss'] == 1 ? 1 : 0 ); + } + $input['hiderss'] = ( $input['hiderss'] == 1 ? 1 : 0 ); // Our text option must be safe text with no HTML tags $input['twitterurl'] = wp_filter_nohtml_kses( $input['twitterurl'] );