From e9fb08514dc085d795b4f7abb38cc283e771efe3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Tue, 4 Jul 2023 15:41:29 +0000 Subject: [PATCH 1/4] Fix typos --- .github/CHANGELOG.md | 24 ++++++++++++------------ .github/workflows/linting.yml | 13 +++++++++++++ .gitignore | 2 +- inc/block-editor.php | 2 +- inc/class-wp-bootstrap-navwalker.php | 4 ++-- inc/enqueue.php | 2 +- inc/extras.php | 6 +++--- inc/woocommerce.php | 4 ++-- phpcs.xml.dist | 2 +- 9 files changed, 36 insertions(+), 23 deletions(-) diff --git a/.github/CHANGELOG.md b/.github/CHANGELOG.md index a11e82b6..88e7e4cb 100644 --- a/.github/CHANGELOG.md +++ b/.github/CHANGELOG.md @@ -81,7 +81,7 @@ ** Fixes ** - Updates WooCommerce templates to current versions. - - Corrects mis-applied version numbers in WooCommerce templates. + - Corrects misapplied version numbers in WooCommerce templates. - Reverts WooCommerce Translations to woocommerce language domain. - Updates understrap.pot file to include several translation strings that had not been added. - Fixes spelling and grammar errors in the CHANGELOG.md. @@ -135,7 +135,7 @@ This is a maintenance release incorporating many commits including code formatti - Removes vendor from paths - Removes gulp-touch-fd - Removes jquery.slim.min.js -- Removes undescores-for-npm +- Removes underscores-for-npm - Removes Bower --- @@ -384,7 +384,7 @@ Clean rebuild ## Release 0.8.5 July 26th 2018 - Update to Bootstrap 4.1.3 -## Release 0.8.4 July 16th 2018 Maintenace Release: +## Release 0.8.4 July 16th 2018 Maintenance Release: - Update to Bootstrap 4.1.2 - fixing sidebar.php problem - Revert to Gulp 3.x support @@ -413,7 +413,7 @@ Clean rebuild ## Release 0.8.2 April 11th 2018 - Update to Bootstrap 4.1 - Adding CONTRIBUTING.md and ISSUE_TEMPLATE.md - Thx @Thomas-A-Reinert - - Adding empty JavaScripot file into build process for adding own JS more easily - Thx @Thomas-A-Reinert + - Adding empty JavaScript file into build process for adding own JS more easily - Thx @Thomas-A-Reinert - WooCommerce update and cleanup - Thx @ZacharyElkins - Adding SASS source map functionality - Thx @axlright - Cleanup - Thx @axlright @@ -450,7 +450,7 @@ Clean rebuild ## Release 0.7.0 December 29th 2017 - Update to Bootstrap 4 Beta 3 - - Create rigth-sidebar-check.php - Thx @Vishal-Deshpande + - Create right-sidebar-check.php - Thx @Vishal-Deshpande - Fixing container type customizer setting - Thx @0dp - Fixing comments.php - Thx @Vishal-Deshpande @@ -518,7 +518,7 @@ Clean rebuild - WooCommerce 3.1 compatibility update - Thx @typeplus - WooCommerce Bootstrap buttons - Thx @yeszao - theme-settings.php update - Thx @oralunal - - Update responisve meta tags for Bootstrap 4 - Thx @chuckreynolds + - Update responsive meta tags for Bootstrap 4 - Thx @chuckreynolds ## Release 0.6.2 June 7h 2017 @@ -615,7 +615,7 @@ Clean rebuild - General bug fixing - Fixing live preview for customizer - Font Awesome update - - Udating all npm dependencies + - Updating all npm dependencies - ARIA roles update - Updating hamburger icon behavior @@ -623,7 +623,7 @@ Clean rebuild - Update Owl Carousel to 2.2.0 - Update Font Awesome to 4.7.0 - Greek language file added - Thx @stef-k - - Portugese language file added - Thx @jfig + - Portuguese language file added - Thx @jfig - Adding vertical-one-page template for landingpages - Thx @stef-k - Making all theme functions pluggable to allow child themes to overwrite ´em - French language file added - Thx @tchama @@ -633,7 +633,7 @@ Clean rebuild - Basic WooCommerce templates added - Fixing "Gulp dist" Task - Adding masonry layout option to optimizer - Thx @stef-k - - Adding fluid/fixed conatiner option to optimizer + - Adding fluid/fixed container option to optimizer ## 0.4.9 Oct. 25th 2016 @@ -646,7 +646,7 @@ Clean rebuild ## 0.4.8 Oct. 10th 2016 - - Removing Bower and replace the dependency managment with npm + - Removing Bower and replace the dependency management with npm - Update to Bootstrap 4 Alpha 4 - Optimizing WooCommerce loop - Thx @typeplus - Updating all dependencies @@ -732,7 +732,7 @@ Clean rebuild ## 0.2.9 Mar. 10th 2015 - Adding a new theme customizer option. It lets you add a code snippet right before the closing tag. - For example for Google Analytics, Google Tag Mananger, Pingdom etc. Just copy and past your code to the input field and save the setting. + For example for Google Analytics, Google Tag Manager, Pingdom etc. Just copy and past your code to the input field and save the setting. So you don´t have to edit the theme source file´s directly, and your theme stay´s updateable ## 0.2.8 Feb. 6th 2015 @@ -748,6 +748,6 @@ Clean rebuild ## 0.2 Dec. 22th 2014 - Adding Jasny Off-Canvas nav and Owl.Carousel Slider script - - Enqueue scipts and styled dynamically + - Enqueue scripts and styled dynamically ## 0.1 Dec. 10th 2014 - First commit diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 65f1a8aa..74e9fc46 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -177,3 +177,16 @@ jobs: with: commit_message: Update PHPMD basefile branch: ${{ github.head_ref }} + + typos-check: + + name: 'Typos check' + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Search for misspellings + uses: crate-ci/typos@master diff --git a/.gitignore b/.gitignore index 4e952b54..9aebdb2f 100644 --- a/.gitignore +++ b/.gitignore @@ -27,7 +27,7 @@ !.github !.gitignore -# Ignore all files with .lock extentions +# Ignore all files with .lock extensions *.lock # but track !composer.lock diff --git a/inc/block-editor.php b/inc/block-editor.php index e6a22eed..ea3850a2 100644 --- a/inc/block-editor.php +++ b/inc/block-editor.php @@ -63,7 +63,7 @@ if ( ! function_exists( 'understrap_generate_color_palette' ) ) { } /** - * Filters the default bootstrap color palette so it can be overriden by child themes or plugins when we add theme support for editor-color-palette. + * Filters the default bootstrap color palette so it can be overridden by child themes or plugins when we add theme support for editor-color-palette. * * @since 1.0.0 * diff --git a/inc/class-wp-bootstrap-navwalker.php b/inc/class-wp-bootstrap-navwalker.php index 096b6e3f..e031a2ea 100644 --- a/inc/class-wp-bootstrap-navwalker.php +++ b/inc/class-wp-bootstrap-navwalker.php @@ -119,7 +119,7 @@ if ( ! class_exists( 'Understrap_WP_Bootstrap_Navwalker' ) ) { * NOTE: linkmod and icon class arrays are passed by reference and * are maybe modified before being used later in this function. */ - $classes = self::seporate_linkmods_and_icons_from_classes( $classes, $linkmod_classes, $icon_classes, $depth ); + $classes = self::separate_linkmods_and_icons_from_classes( $classes, $linkmod_classes, $icon_classes, $depth ); // Join any icon classes plucked from $classes into a string. $icon_class_string = join( ' ', $icon_classes ); @@ -407,7 +407,7 @@ if ( ! class_exists( 'Understrap_WP_Bootstrap_Navwalker' ) ) { * * @return array $classes a maybe modified array of classnames. */ - private function seporate_linkmods_and_icons_from_classes( $classes, &$linkmod_classes, &$icon_classes, $depth ) { + private function separate_linkmods_and_icons_from_classes( $classes, &$linkmod_classes, &$icon_classes, $depth ) { // Loop through $classes array to find linkmod or icon classes. foreach ( $classes as $key => $class ) { // If any special classes are found, store the class in it's diff --git a/inc/enqueue.php b/inc/enqueue.php index 156e2ee4..5ff2a550 100644 --- a/inc/enqueue.php +++ b/inc/enqueue.php @@ -49,7 +49,7 @@ add_action( 'wp_enqueue_scripts', 'understrap_scripts' ); if ( ! function_exists( 'understrap_offcanvas_admin_bar_inline_styles' ) ) { /** - * Add inline styles for the offcanvas component if the admin bar is visibile. + * Add inline styles for the offcanvas component if the admin bar is visible. * * Fixes that the offcanvas close icon is hidden behind the admin bar. * diff --git a/inc/extras.php b/inc/extras.php index 21a12673..5a4df70e 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -127,7 +127,7 @@ if ( ! function_exists( 'understrap_default_body_attributes' ) ) { } add_filter( 'understrap_body_attributes', 'understrap_default_body_attributes' ); -// Escapes all occurances of 'the_archive_description'. +// Escapes all occurrences of 'the_archive_description'. add_filter( 'get_the_archive_description', 'understrap_escape_the_archive_description' ); if ( ! function_exists( 'understrap_escape_the_archive_description' ) ) { @@ -150,10 +150,10 @@ if ( ! function_exists( 'understrap_escape_the_archive_description' ) ) { } } // End of if function_exists( 'understrap_escape_the_archive_description' ). -// Escapes all occurances of 'the_title()' and 'get_the_title()'. +// Escapes all occurrences of 'the_title()' and 'get_the_title()'. add_filter( 'the_title', 'understrap_kses_title' ); -// Escapes all occurances of 'the_archive_title' and 'get_the_archive_title()'. +// Escapes all occurrences of 'the_archive_title' and 'get_the_archive_title()'. add_filter( 'get_the_archive_title', 'understrap_kses_title' ); if ( ! function_exists( 'understrap_kses_title' ) ) { diff --git a/inc/woocommerce.php b/inc/woocommerce.php index 7b30c37d..6b279b7c 100644 --- a/inc/woocommerce.php +++ b/inc/woocommerce.php @@ -181,7 +181,7 @@ if ( ! function_exists( 'understrap_wc_form_field_radio' ) ) { * If `$args['label']` is set a `