diff --git a/adminpages/orders.php b/adminpages/orders.php index d5bbcefc1..75a5ac14f 100644 --- a/adminpages/orders.php +++ b/adminpages/orders.php @@ -163,7 +163,7 @@ $hour = intval( $_POST['ts_hour'] ); $minute = intval( $_POST['ts_minute'] ); $date = get_gmt_from_date( $year . '-' . $month . '-' . $day . ' ' . $hour . ':' . $minute . ':00' , 'U' ); - $order->timestamp = $date; // Passed 'U' to get_gmt_from_date() so that we get a Unix timesamp. + $order->timestamp = $date; // Passed 'U' to get_gmt_from_date() so that we get a Unix timestamp. } // affiliate stuff diff --git a/adminpages/reports/sales.php b/adminpages/reports/sales.php index 3a3ab66a1..266dd6d04 100644 --- a/adminpages/reports/sales.php +++ b/adminpages/reports/sales.php @@ -460,7 +460,7 @@ function pmpro_report_sales_page() $param_hash = md5( implode( ' ', $param_array ) . PMPRO_VERSION ); set_transient( 'pmpro_sales_data_' . $param_hash, $csvdata, HOUR_IN_SECONDS ); - // Here, we're goign to build data for the Google Chart. + // Here, we're going to build data for the Google Chart. // We are doing the calculations up here so that we don't need to weave them into the JS to display the chart. $google_chart_column_labels = array(); $google_chart_row_data = array(); diff --git a/adminpages/subscriptions.php b/adminpages/subscriptions.php index 06e66a377..0ad2ff766 100644 --- a/adminpages/subscriptions.php +++ b/adminpages/subscriptions.php @@ -148,7 +148,7 @@ class="page-title-action pmpro-has-icon pmpro-has-icon-no" echo esc_html( $sub_membership_level_name ); // If the subscription is active and the user has membership levels other than the one that the subscription is for, we should - // give the option to move the subcription to another user level. + // give the option to move the subscription to another user level. if ( 'active' == $subscription->get_status() ) { // Get all of the user's membership levels. $user_membership_levels = pmpro_getMembershipLevelsForUser( $subscription->get_user_id() ); diff --git a/classes/class-pmpro-field.php b/classes/class-pmpro-field.php index adb9168e8..bec16930e 100755 --- a/classes/class-pmpro-field.php +++ b/classes/class-pmpro-field.php @@ -229,7 +229,7 @@ class PMPro_Field { public $options = array(); /** - * Whether multiple options should be selectable when using a select, seelect2, or multiselect field type. + * Whether multiple options should be selectable when using a select, select2, or multiselect field type. * * @since 2.9 * diff --git a/classes/class-pmpro-subscription.php b/classes/class-pmpro-subscription.php index 67befad87..98ddfe919 100644 --- a/classes/class-pmpro-subscription.php +++ b/classes/class-pmpro-subscription.php @@ -803,7 +803,7 @@ private function format_subscription_date( $date, $format = 'timestamp', $local_ * @return null|PMProGateway The PMProGateway object, null if not set or class found. */ public function get_gateway_object() { - // No gatway was set. + // No gateway was set. if ( empty( $this->gateway ) ) { return null; } @@ -847,7 +847,7 @@ public function get_initial_payment() { // Get the first order object. $order = current( $orders ); - // Use the order total as the intitial payment. + // Use the order total as the initial payment. $this->initial_payment = $order->total; } diff --git a/classes/class.mimetype.php b/classes/class.mimetype.php index 79e4cc816..518ae78ae 100644 --- a/classes/class.mimetype.php +++ b/classes/class.mimetype.php @@ -72,7 +72,7 @@ function getType($filename) { // get base name of the filename provided by user $filename = basename($filename); - // break file into parts seperated by . + // break file into parts separated by . $filename = explode('.', $filename); // take the last part of the file to get the file extension @@ -220,7 +220,7 @@ function privBuildMimeArray() { "rtf" => "text/rtf", "sgml" => "text/sgml", "sgm" => "text/sgml", - "tsv" => "text/tab-seperated-values", + "tsv" => "text/tab-separated-values", "wml" => "text/vnd.wap.wml", "wmls" => "text/vnd.wap.wmlscript", "etx" => "text/x-setext", @@ -242,4 +242,3 @@ function privBuildMimeArray() { return $mimetypes; } } -?> diff --git a/classes/class.pmproemail.php b/classes/class.pmproemail.php index a02cb91c6..5b7ff37ac 100644 --- a/classes/class.pmproemail.php +++ b/classes/class.pmproemail.php @@ -609,7 +609,7 @@ function sendRefundedAdminEmail( $user = NULL, $invoice = NULL ) { } /** - * Send the member a confirmation checkout email after succesfully purchasing a membership level. + * Send the member a confirmation checkout email after successfully purchasing a membership level. * * @param object $user The WordPress user object. * @param MemberOrder $invoice The order object that is associated with the checkout. @@ -737,7 +737,7 @@ function sendCheckoutEmail($user = NULL, $invoice = NULL) } /** - * Send the admin a confirmation checkout email after the member succesfully purchases a membership level. + * Send the admin a confirmation checkout email after the member successfully purchases a membership level. * * @param object $user The WordPress user object. * @param MemberOrder $invoice The order object that is associated with the checkout. diff --git a/classes/gateways/class.pmprogateway.php b/classes/gateways/class.pmprogateway.php index cd9c17e5c..0f65810ee 100644 --- a/classes/gateways/class.pmprogateway.php +++ b/classes/gateways/class.pmprogateway.php @@ -197,7 +197,7 @@ function cancel(&$order) if(empty($order->subscription_transaction_id)) return false; - //simulate a successful cancel + //simulate a successful cancel $order->updateStatus("cancelled"); return true; } diff --git a/classes/gateways/class.pmprogateway_authorizenet.php b/classes/gateways/class.pmprogateway_authorizenet.php index 58e0a208e..21b6d5600 100644 --- a/classes/gateways/class.pmprogateway_authorizenet.php +++ b/classes/gateways/class.pmprogateway_authorizenet.php @@ -669,7 +669,7 @@ function subscribe(&$order) //send the xml via curl $this->response = $this->send_request_via_curl($host,$path,$this->content); - //if curl is unavilable you can try using fsockopen + //if curl is unavailable you can try using fsockopen /* $response = send_request_via_fsockopen($host,$path,$content); */ @@ -778,7 +778,7 @@ function update(&$order) //send the xml via curl $this->response = $this->send_request_via_curl($host,$path,$this->content); - //if curl is unavilable you can try using fsockopen + //if curl is unavailable you can try using fsockopen /* $response = send_request_via_fsockopen($host,$path,$order->content); */ @@ -844,7 +844,7 @@ function update(&$order) "true". ""; $this->response = $this->send_request_via_curl($host,$path,$this->content); - // Print entire repsonse. + // Print entire response. echo $this->response; wp_die(); */ @@ -906,7 +906,7 @@ function cancel(&$order) //send the xml via curl $response = $this->send_request_via_curl($host,$path,$content); - //if curl is unavilable you can try using fsockopen + //if curl is unavailable you can try using fsockopen /* $response = send_request_via_fsockopen($host,$path,$content); */ @@ -978,7 +978,7 @@ function getSubscriptionStatus(&$order) //send the xml via curl $response = $this->send_request_via_curl($host,$path,$content); - //if curl is unavilable you can try using fsockopen + //if curl is unavailable you can try using fsockopen /* $response = send_request_via_fsockopen($host,$path,$content); */ diff --git a/classes/gateways/class.pmprogateway_stripe.php b/classes/gateways/class.pmprogateway_stripe.php index 2aa249221..2da87f2b4 100644 --- a/classes/gateways/class.pmprogateway_stripe.php +++ b/classes/gateways/class.pmprogateway_stripe.php @@ -129,7 +129,7 @@ public static function init() { //old global RE showing billing address or not global $pmpro_stripe_lite; - $pmpro_stripe_lite = apply_filters( "pmpro_stripe_lite", ! get_option( "pmpro_stripe_billingaddress" ) ); //default is oposite of the stripe_billingaddress setting + $pmpro_stripe_lite = apply_filters( "pmpro_stripe_lite", ! get_option( "pmpro_stripe_billingaddress" ) ); //default is opposite of the stripe_billingaddress setting $gateway = pmpro_getGateway(); if($gateway == "stripe") @@ -428,9 +428,9 @@ public static function pmpro_payment_option_fields( $values, $gateway ) { $failed_webhooks = array(); $missing_webhooks = array(); $working_webhooks = array(); - // For sites that tracked "last webhook recieved" before we started tracking webhook events individually, + // For sites that tracked "last webhook received" before we started tracking webhook events individually, // we want to ignore events that were sent by Stripe before site was updated to start tracking individual events. - $legacy_last_webhook_recieved_timestamp = get_option( 'pmpro_stripe_last_webhook_received_' . $stripe->gateway_environment ); + $legacy_last_webhook_received_timestamp = get_option( 'pmpro_stripe_last_webhook_received_' . $stripe->gateway_environment ); foreach ( $required_webhook_events as $required_webhook_event ) { $event_data = array( 'name' => $required_webhook_event ); @@ -453,8 +453,8 @@ public static function pmpro_payment_option_fields( $values, $gateway ) { ), 'type' => $required_webhook_event, ); - if ( ! empty( $legacy_last_webhook_recieved_timestamp ) ) { - $event_query_arr['created']['gt'] = strtotime( $legacy_last_webhook_recieved_timestamp ); + if ( ! empty( $legacy_last_webhook_received_timestamp ) ) { + $event_query_arr['created']['gt'] = strtotime( $legacy_last_webhook_received_timestamp ); } try { @@ -1134,7 +1134,7 @@ public static function pmpro_set_up_apple_pay( $payment_option_values, $gateway } /** - * This function is used to save the parameters returned after successfull connection of Stripe account. + * This function is used to save the parameters returned after successful connection of Stripe account. * * @return void */ @@ -1504,7 +1504,7 @@ static function show_stripe_checkout_pending_warning($show) } /** - * Instead of changeing membership levels, send users to Stripe to pay. + * Instead of changing membership levels, send users to Stripe to pay. * * @since 2.8 * @@ -1627,7 +1627,7 @@ static function pmpro_checkout_before_change_membership_level($user_id, $morder) } } - // Set up tax and billing addres collection. + // Set up tax and billing address collection. $automatic_tax = ( ! empty( get_option( 'pmpro_stripe_tax' ) ) && 'no' !== get_option( 'pmpro_stripe_tax' ) ) ? array( 'enabled' => true, ) : array( @@ -2516,7 +2516,7 @@ private function create_customer( $args ) { * Falls back on information in User object if insufficient * information in MemberOrder. * - * Should only be called when checkout is being proceesed. Otherwise, + * Should only be called when checkout is being processed. Otherwise, * use update_customer_from_user() method. * * @since 2.7.0 @@ -3940,7 +3940,7 @@ public static function process_refund( $success, $order ) { $myemail->sendRefundedAdminEmail( $user, $order ); } else { - $order->notes = trim( $order->notes . ' ' . __('Admin: An error occured while attempting to process this refund.', 'paid-memberships-pro' ) ); + $order->notes = trim( $order->notes . ' ' . __('Admin: An error occurred while attempting to process this refund.', 'paid-memberships-pro' ) ); } } catch ( \Throwable $e ) { diff --git a/includes/admin.php b/includes/admin.php index d60756964..4bd9bdcc1 100644 --- a/includes/admin.php +++ b/includes/admin.php @@ -28,7 +28,7 @@ function pmpro_admin_init_redirect_to_dashboard() { add_action( 'admin_init', 'pmpro_admin_init_redirect_to_dashboard' ); /** - * Block Subscibers from accessing the WordPress Dashboard. + * Block Subscribers from accessing the WordPress Dashboard. * * @since 2.3.4 */ diff --git a/includes/compatibility/bluehost-wordpress-plugin.php b/includes/compatibility/bluehost-wordpress-plugin.php index f4adc89bf..02979d454 100644 --- a/includes/compatibility/bluehost-wordpress-plugin.php +++ b/includes/compatibility/bluehost-wordpress-plugin.php @@ -4,7 +4,7 @@ */ /** - * When a user is logged in, the BlueHost plugin will check if their passowrd is + * When a user is logged in, the BlueHost plugin will check if their password is * insecure. If it is, they will be redirected to an "insecure password" screen. * This can interrupt our checkout flow. * diff --git a/includes/compatibility/divi.php b/includes/compatibility/divi.php index f35911bd5..cd3d981f2 100644 --- a/includes/compatibility/divi.php +++ b/includes/compatibility/divi.php @@ -93,7 +93,7 @@ public static function restrict_content( $output, $props, $attrs, $slug ) { } /** - * Filter the element classess added to the no_access messages for improved appearance in Divi. + * Filter the element classes added to the no_access messages for improved appearance in Divi. * Hooked into pmpro_element_class. * @since 2.8.2 */ diff --git a/includes/content.php b/includes/content.php index 0d3ec9b64..f7c51e939 100644 --- a/includes/content.php +++ b/includes/content.php @@ -357,7 +357,7 @@ function pmpro_membership_content_filter( $content, $skipcheck = false ) { //show excerpt global $post; if( $post->post_excerpt ) { - //defined exerpt + //defined excerpt $content = wpautop( $post->post_excerpt ); } elseif(strpos($content, "ID . "\">") !== false) { //more tag diff --git a/includes/fields.php b/includes/fields.php index b6bff52a2..8c34eb7c1 100644 --- a/includes/fields.php +++ b/includes/fields.php @@ -23,7 +23,7 @@ function pmpro_is_field( $var ) { } /** - * Add a field to the PMProRH regisration fields global + * Add a field to the PMProRH registration fields global * * $where refers to various hooks in the PMPro checkout page and can be: * - after_username diff --git a/includes/filters.php b/includes/filters.php index 98eae9fc8..e140ebf87 100644 --- a/includes/filters.php +++ b/includes/filters.php @@ -1,6 +1,6 @@ } /** - * Function to handle the actualy password reset and update password. + * Function to handle the actually password reset and update password. * @since 2.3 */ function pmpro_do_password_reset() { diff --git a/includes/recaptcha.php b/includes/recaptcha.php index 85b91fc1d..5d38abaea 100644 --- a/includes/recaptcha.php +++ b/includes/recaptcha.php @@ -4,7 +4,7 @@ */ function pmpro_init_recaptcha() { // If ReCAPTCHA is not enabled, don't do anything. - // global $recaptcha for backwards compatbility. + // global $recaptcha for backwards compatibility. // TODO: Remove this in a future version. global $recaptcha; $recaptcha = get_option( 'pmpro_recaptcha' ); diff --git a/includes/rest-api.php b/includes/rest-api.php index 79fe9ab60..ab5468a55 100644 --- a/includes/rest-api.php +++ b/includes/rest-api.php @@ -424,7 +424,7 @@ function pmpro_rest_api_change_membership_level( $request ) { if ( is_wp_error( $user_id ) ) { $error = $user_id->get_error_message(); - return new WP_REST_Response( $error, 500 ); // Assume it failed and return a 500 error occured like core WordPress. + return new WP_REST_Response( $error, 500 ); // Assume it failed and return a 500 error occurred like core WordPress. } pmpro_maybe_send_wp_new_user_notification( $user_id, $level_id ); diff --git a/js/pmpro-admin.js b/js/pmpro-admin.js index edb38c378..52c1f247e 100644 --- a/js/pmpro-admin.js +++ b/js/pmpro-admin.js @@ -257,7 +257,7 @@ jQuery(document).ready(function () { // Function to prep click events. function pmpro_userfields_prep_click_events() { - // Whenever we make a change, warn the user if they try to nagivate away. + // Whenever we make a change, warn the user if they try to navigate away. function pmpro_userfields_made_a_change() { window.onbeforeunload = function () { return true; diff --git a/js/pmpro-checkout.js b/js/pmpro-checkout.js index 335d54a72..2a8de1da8 100644 --- a/js/pmpro-checkout.js +++ b/js/pmpro-checkout.js @@ -134,7 +134,7 @@ jQuery(document).ready(function(){ } // Find ALL
tags on your page - jQuery('form').submit(function(){ + jQuery('form#pmpro_form').submit(function(){ // On submit disable its submit button jQuery('input[type=submit]', this).attr('disabled', 'disabled'); jQuery('input[type=image]', this).attr('disabled', 'disabled'); @@ -221,7 +221,7 @@ jQuery(document).ready(function(){ } }); -// Get non-sensitve checkout form data to be sent to checkout_levels endpoint. +// Get non-sensitive checkout form data to be sent to checkout_levels endpoint. function pmpro_getCheckoutFormDataForCheckoutLevels() { // We need the level, discount code, and any field with the pmpro_alter_price CSS class. const checkoutFormData = jQuery( "#level, #pmpro_level, #discount_code, #pmpro_form .pmpro_alter_price" ).serializeArray(); diff --git a/js/pmpro-stripe.js b/js/pmpro-stripe.js index e89dbec24..aea8b8152 100644 --- a/js/pmpro-stripe.js +++ b/js/pmpro-stripe.js @@ -163,7 +163,7 @@ jQuery( document ).ready( function( $ ) { $('#pmpro_processing_message').css('visibility', 'visible'); $('#payment-request-button').hide(); /* - Close the payment request interface immeditately. This is not the intended + Close the payment request interface immediately. This is not the intended implementation from Stripe, but we are submitting the payment method through our default checkout process instead of letting Stripe process it through the payment request button. Closing immediately also diff --git a/preheaders/checkout.php b/preheaders/checkout.php index 595fbedb0..29f15e7ca 100644 --- a/preheaders/checkout.php +++ b/preheaders/checkout.php @@ -689,7 +689,7 @@ do_action( 'pmpro_discount_code_used', $discount_code_id, $user_id, $code_order_id ); } - //save billing info ect, as user meta + //save billing info etc, as user meta $meta_keys = array(); $meta_values = array(); diff --git a/services/braintree-webhook.php b/services/braintree-webhook.php index d47c6c094..ab1321866 100644 --- a/services/braintree-webhook.php +++ b/services/braintree-webhook.php @@ -89,7 +89,7 @@ pmpro_braintreeWebhookExit(); } -//subscription charged sucessfully +//subscription charged successfully if ( $webhookNotification->kind === Braintree_WebhookNotification::SUBSCRIPTION_CHARGED_SUCCESSFULLY ) { $logstr[] = "The Braintree gateway received payment for a recurring billing plan"; diff --git a/services/ipnhandler.php b/services/ipnhandler.php index a1f82b7c1..34b10e7ab 100644 --- a/services/ipnhandler.php +++ b/services/ipnhandler.php @@ -551,7 +551,7 @@ function pmpro_ipnCheckReceiverEmail( $email ) { } /* - Change the membership level. We also update the membership order to include filtered valus. + Change the membership level. We also update the membership order to include filtered values. */ function pmpro_ipnChangeMembershipLevel( $txn_id, &$morder ) { diff --git a/services/stripe-webhook.php b/services/stripe-webhook.php index b5662dd6d..3c5d6dfc3 100644 --- a/services/stripe-webhook.php +++ b/services/stripe-webhook.php @@ -380,7 +380,7 @@ //We've got the right order if( !empty( $morder->id ) ) { - // Ingore orders already in refund status. + // Ignore orders already in refund status. if( $morder->status == 'refunded' ) { $logstr .= sprintf( 'Webhook: Order ID %1$s with transaction ID %2$s was already in refund status.', $morder->id, $payment_transaction_id ); pmpro_stripeWebhookExit(); diff --git a/services/twocheckout-ins.php b/services/twocheckout-ins.php index 396262042..f3e0a6a65 100644 --- a/services/twocheckout-ins.php +++ b/services/twocheckout-ins.php @@ -261,7 +261,7 @@ function pmpro_twocheckoutValidate() { } /* - Change the membership level. We also update the membership order to include filtered valus. + Change the membership level. We also update the membership order to include filtered values. */ function pmpro_insChangeMembershipLevel($txn_id, &$morder) { diff --git a/webpack.config.js b/webpack.config.js index 95f079018..f0568b5e3 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -3,7 +3,7 @@ * @see https://wordpress.stackexchange.com/questions/390282 */ -// Native Depedencies. +// Native Dependencies. const path = require("path"); // Third-Party Dependencies.