- Filters the post data for when they are being formated for a pull
+ Filters the post data for when they are being formatted for a pull
@@ -144,7 +144,7 @@ Parameters:
Source:
diff --git a/external-connection-cpt.php.html b/external-connection-cpt.php.html
index 5f4b01d4b..558b7189e 100644
--- a/external-connection-cpt.php.html
+++ b/external-connection-cpt.php.html
@@ -453,9 +453,9 @@ Source: external-connection-cpt.php
$connection_class = \Distributor\Connections::factory()->get_registered()[ sanitize_key( $_POST['dt_external_connection_type'] ) ];
$auth_handler_class_again = $connection_class::$auth_handler_class;
- $auth_creds = $auth_handler_class_again::prepare_credentials( array_merge( (array) $current_auth, array_map( 'sanitize_text_field', (array) wp_unslash( $_POST['dt_external_connection_auth'] ) ) ) );
+ $auth_credentials = $auth_handler_class_again::prepare_credentials( array_merge( (array) $current_auth, array_map( 'sanitize_text_field', (array) wp_unslash( $_POST['dt_external_connection_auth'] ) ) ) );
- $auth_handler_class_again::store_credentials( $post_id, $auth_creds );
+ $auth_handler_class_again::store_credentials( $post_id, $auth_credentials );
}
}
@@ -630,7 +630,7 @@ Source: external-connection-cpt.php
global $connection_list_table;
$_GET['post_type'] = 'dt_ext_connection';
- $_REQUEST['all_posts'] = true; // Default to replacite "All" tab
+ $_REQUEST['all_posts'] = true; // Default to replicate "All" tab
$connection_list_table->prepare_items();
?>
diff --git a/push-ui.php.html b/push-ui.php.html
index 53110da80..eef88e1f8 100644
--- a/push-ui.php.html
+++ b/push-ui.php.html
@@ -279,7 +279,7 @@ Source: push-ui.php
*/
function ajax_push() {
if ( ! check_ajax_referer( 'dt-push', 'nonce', false ) ) {
- wp_send_json_error( new \WP_Error( 'invalid-referal', __( 'Invalid Ajax referer.', 'distributor' ) ) );
+ wp_send_json_error( new \WP_Error( 'invalid-referral', __( 'Invalid Ajax referer.', 'distributor' ) ) );
exit;
}
diff --git a/subscriptions.php.html b/subscriptions.php.html
index e72d64ff5..e835a1eff 100644
--- a/subscriptions.php.html
+++ b/subscriptions.php.html
@@ -128,7 +128,7 @@ Source: subscriptions.php
* For a post that is distributed, for each distributed post, we create a subscription (CPT) to keep track
* of the copy. Attached to each subscription is a unique signature. When a post is updated, we check for subscriptions.
* If subscriptions exist, we grab the signature for each subscription and send the update to the remote copy along
- * with the signature. The signature is a passcode of sorts. The subscription signature must match the copied post's
+ * with the signature. The signature is a pass code of sorts. The subscription signature must match the copied post's
* signature otherwise the update is not authorized.
*
* You might be wondering why we don't just use HTTP Basic Auth or OAuth since we've already set that up.
diff --git a/template-tags.php.html b/template-tags.php.html
index 5c8b88482..997cfd218 100644
--- a/template-tags.php.html
+++ b/template-tags.php.html
@@ -248,8 +248,8 @@ Source: template-tags.php
/**
* Display information about where a post was distributed from.
*
- * @param int|null|mixed $post_id Post ID.
- * @param string |null|mixed $preface The string that will preceed the link.
+ * @param int|null|mixed $post_id Post ID.
+ * @param string|null|mixed $preface The string that will precede the link.
*/
function distributor_the_connection_source( $post_id = null, $preface = null ) {
if ( ! $post_id ) {
diff --git a/tutorial-connect-to-an-existing-post.html b/tutorial-connect-to-an-existing-post.html
index e3eef2eb6..426c7c51c 100644
--- a/tutorial-connect-to-an-existing-post.html
+++ b/tutorial-connect-to-an-existing-post.html
@@ -89,7 +89,7 @@ External Connections
],
];
-In the above example, the internal
array will always be empty, unless an item is also linked to an interal site. For the external
array, each item in the array will have a key that corresponds to the connection ID (2 in the example above) and then the post_id
should be the destination post ID.
+In the above example, the internal
array will always be empty, unless an item is also linked to an internal site. For the external
array, each item in the array will have a key that corresponds to the connection ID (2 in the example above) and then the post_id
should be the destination post ID.
As a further example, if I have a post with an ID of 100 that lives on a site with an ID of 1 and I want that post to be linked to an existing post with an ID of 50 on the site with a connection ID of 2, the dt_connection_map
data that is stored with the original item (ID of 100, site ID 1) would look like the following:
$data = [
[
diff --git a/utils.php.html b/utils.php.html
index 92d238391..12da66547 100644
--- a/utils.php.html
+++ b/utils.php.html
@@ -606,7 +606,7 @@ Source: utils.php
function set_taxonomy_terms( $post_id, $taxonomy_terms ) {
// Now let's add the taxonomy/terms to syndicated post
foreach ( $taxonomy_terms as $taxonomy => $terms ) {
- // Continue if taxonomy doesnt exist
+ // Continue if taxonomy doesn't exist
if ( ! taxonomy_exists( $taxonomy ) ) {
continue;
}
@@ -675,9 +675,9 @@ Source: utils.php
*
* @return {bool} Whether term hierarchy should be updated.
*/
- $update_term_hierachy = apply_filters( 'dt_update_term_hierarchy', true, $taxonomy );
+ $update_term_hierarchy = apply_filters( 'dt_update_term_hierarchy', true, $taxonomy );
- if ( ! empty( $update_term_hierachy ) ) {
+ if ( ! empty( $update_term_hierarchy ) ) {
foreach ( $terms as $term_array ) {
if ( ! is_array( $term_array ) ) {
$term_array = (array) $term_array;
@@ -973,8 +973,8 @@ Source: utils.php
$source_file = $args['source_file'];
if ( ! is_a( $wp_filesystem, 'WP_Filesystem_Base' ) ) {
- $creds = request_filesystem_credentials( site_url() );
- wp_filesystem( $creds );
+ $credentials = request_filesystem_credentials( site_url() );
+ wp_filesystem( $credentials );
}
// Copy the source file so we don't mess with the original file.