diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index 48790b7e8..8d0bf406d 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -1,6 +1,6 @@ # Dependency Review Action # -# This Action will scan dependency manifest files that change as part of a Pull Reqest, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging. +# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging. # # Source repository: https://github.com/actions/dependency-review-action # Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement diff --git a/.typos.toml b/.typos.toml new file mode 100644 index 000000000..36ed9f8a7 --- /dev/null +++ b/.typos.toml @@ -0,0 +1,23 @@ +[files] +extend-exclude = [ + ".git/", + "tests/test-plugin/text-to-speech-voices.json" +] +ignore-hidden = false + +[default] +extend-ignore-re = [ + "\\bTung Du\\b", +] + +[default.extend-words] +# Typos +"weather" = "whether" + +[default.extend-identifiers] +# Typos +"Github" = "GitHub" +"Wordpress" = "WordPress" +"Woocommerce" = "WooCommerce" +"get_post_stati" = "get_post_stati" +"Automattic" = "Automattic" diff --git a/CHANGELOG.md b/CHANGELOG.md index 1844c0236..35651924e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -463,7 +463,7 @@ All notable changes to this project will be documented in this file, per [the Ke - `classifai_post_statuses_for_post_type_or_id` filter; allows post statuses for content classification to be changed as required based on post type / post ID (props [@jamesmorrison](https://github.com/jamesmorrison), [@dkotter](https://github.com/dkotter) via [#310](https://github.com/10up/classifai/pull/310)). - Implement `can_register()` method for `Classifai/Providers/Watson/NLU.php` (props [@thrijith](https://github.com/thrijith) via [#313](https://github.com/10up/classifai/pull/313)). - Notice for deprecated IBM Watson `watsonplatform.net` NLU API endpoint (props [@rahulsprajapati](https://github.com/rahulsprajapati), [@jeffpaul](https://github.com/jeffpaul) via [#320](https://github.com/10up/classifai/pull/320)). -- CodeQL Analaysis code scanning and Dependency security scanning actions (props [@jeffpaul](https://github.com/jeffpaul) via [#314](https://github.com/10up/classifai/pull/314), [#336](https://github.com/10up/classifai/pull/336)). +- CodeQL Analysis code scanning and Dependency security scanning actions (props [@jeffpaul](https://github.com/jeffpaul) via [#314](https://github.com/10up/classifai/pull/314), [#336](https://github.com/10up/classifai/pull/336)). ### Changed - Bump WordPress "tested up to" version 5.9 (props [@s3rgiosan](https://github.com/s3rgiosan), [@jeffpaul](https://github.com/jeffpaul) via [#327](https://github.com/10up/classifai/pull/327)). diff --git a/hookdocs/useful-snippets.md b/hookdocs/useful-snippets.md index 65931c59b..6f13fc758 100644 --- a/hookdocs/useful-snippets.md +++ b/hookdocs/useful-snippets.md @@ -83,7 +83,7 @@ class MyProvider extends Provider { * * All Features will end up calling the rest_endpoint_callback method for their assigned Provider. * This method should validate the route that is being called and then call the appropriate method - * for that route. This method typically will validate we have all the requried data and if so, + * for that route. This method typically will validate we have all the required data and if so, * make a request to the appropriate API endpoint. * * @param int $post_id The Post ID we're processing. diff --git a/includes/Classifai/Admin/Onboarding.php b/includes/Classifai/Admin/Onboarding.php index de6813f17..cb285c6c8 100644 --- a/includes/Classifai/Admin/Onboarding.php +++ b/includes/Classifai/Admin/Onboarding.php @@ -25,7 +25,7 @@ public function __construct() { } /** - * Inintialize the class and register the actions needed. + * Initialize the class and register the actions needed. */ public function init() { add_action( 'admin_menu', [ $this, 'register_setup_page' ] ); diff --git a/includes/Classifai/Admin/Settings.php b/includes/Classifai/Admin/Settings.php index 92568ebc9..aafd3bafc 100644 --- a/includes/Classifai/Admin/Settings.php +++ b/includes/Classifai/Admin/Settings.php @@ -21,7 +21,7 @@ class Settings { public function __construct() {} /** - * Inintialize the class and register the actions needed. + * Initialize the class and register the actions needed. */ public function init() { add_action( 'admin_menu', [ $this, 'register_settings_page' ] ); diff --git a/includes/Classifai/Admin/UserProfile.php b/includes/Classifai/Admin/UserProfile.php index 68ec1dc3d..b0e9ba864 100644 --- a/includes/Classifai/Admin/UserProfile.php +++ b/includes/Classifai/Admin/UserProfile.php @@ -105,9 +105,9 @@ public function save_user_settings( int $user_id ) { return; } - $opted_out_feautures = isset( $_POST['classifai_opted_out_features'] ) ? array_map( 'sanitize_text_field', wp_unslash( $_POST['classifai_opted_out_features'] ) ) : array(); + $opted_out_features = isset( $_POST['classifai_opted_out_features'] ) ? array_map( 'sanitize_text_field', wp_unslash( $_POST['classifai_opted_out_features'] ) ) : array(); - update_user_meta( $user_id, $this->opt_out_key, $opted_out_feautures ); + update_user_meta( $user_id, $this->opt_out_key, $opted_out_features ); } /** diff --git a/includes/Classifai/Features/Classification.php b/includes/Classifai/Features/Classification.php index 2e6d397e0..dc49b40c4 100644 --- a/includes/Classifai/Features/Classification.php +++ b/includes/Classifai/Features/Classification.php @@ -458,7 +458,7 @@ public function render_meta_box( \WP_Post $post ) {

-