Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Examples of unacceptable behavior by participants include:
- Public or private harassment, deliberate intimidation, or threats.
- Publishing others' private information, such as a physical or electronic address, without explicit permission. This includes any sort of "outing" of any aspect of someone's identity without their consent.
- Publishing private screenshots or quotes of interactions in the context of this project without all quoted users' _explicit_ consent.
- Publishing of private communication that doesn't have to do with reporting harrassment.
- Publishing of private communication that doesn't have to do with reporting harassment.
- Any of the above even when [presented as "ironic" or "joking"](https://en.wikipedia.org/wiki/Hipster_racism).
- Any attempt to present "reverse-ism" versions of the above as violations. Examples of reverse-isms are "reverse racism", "reverse sexism", "heterophobia", and "cisphobia".
- Unsolicited explanations under the assumption that someone doesn't already know it. Ask before you teach! Don't assume what people's knowledge gaps are.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ add_filter( 'algolia_page_to_record', function ( $record ) {
} );
```

## WP CLI
## WP-CLI

This plugin comes with a few WP CLI commands that can be used to manage an index.
This plugin comes with a few WP-CLI commands that can be used to manage an index.

```shell
# Reindex everything.
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/IndexControlsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public function handle_request() {
set_transient( $this->action . '_success', "Successfully triggered a complete reindex for the `{$this->settings->get_index_name()}` index." );
break;
case 'clear':
$this->algolia->clear_obejcts();
$this->algolia->clear_objects();
set_transient( $this->action . '_success', 'Successfully triggered a request to clear the entire index.' );
break;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Admin/SettingsPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function add_settings(): void {
add_settings_error(
$this->option_group,
'connection_success',
esc_html__( 'Connection to the Algolia servers was succesful!', 'algolia-connector' ),
esc_html__( 'Connection to the Algolia servers was successful!', 'algolia-connector' ),
'updated'
);
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/Console/AlgoliaCli.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function reindex( $args, $assoc_args ) {

if ( $clear ) {
WP_CLI::log( 'Clearing the index first...' );
$this->algolia->clear_obejcts( $index_name );
$this->algolia->clear_objects( $index_name );
}

$indexable_post_types = ! empty( $post_types ) ? explode( ',', $post_types ) : $this->theme->get_indexable_post_types();
Expand Down Expand Up @@ -179,7 +179,7 @@ public function clear( $args, $assoc_args ) {
WP_CLI::error( 'You need to either provide an index name or have one specified in your settings.' );
}

$this->algolia->clear_obejcts( $index_name );
$this->algolia->clear_objects( $index_name );

WP_CLI::success( 'Done' );
}
Expand Down
2 changes: 1 addition & 1 deletion src/Services/Algolia.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function __construct( AlgoliaConnector $plugin ) {
*
* @return void
*/
public function clear_obejcts( ?string $index_name = null ): void {
public function clear_objects( ?string $index_name = null ): void {
if ( ! $this->client ) {
return;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Utils/PostHelper.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Collection ot utilities for WordPress posts.
* Collection of utilities for WordPress posts.
*
* @package AlgoliaConnector
*/
Expand Down