Skip to content

Commit 15bbed5

Browse files
committed
2 parents 881f617 + 2330dcc commit 15bbed5

14 files changed

+59
-59
lines changed

.github/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ __Please Note:__ GitHub is for bug reports and contributions only. If you have a
2828
* Use `git checkout -b nameofmybugfixorfeature` to create the new branch
2929
* Make the changes to your local repository.
3030
* Ensure you stick to the [WordPress Coding Standards](https://codex.wordpress.org/WordPress_Coding_Standards) (even though much of the PMPro code does not currently)
31-
* If you have an automatic beautifier in your IDE or dev environment, turn it off. Unrelated style changes in your pull requests will make them harder to process. Feel free to message the core development team to ask them to clean up a file you are working on if the inconsitent coding styles is bothering you.
31+
* If you have an automatic beautifier in your IDE or dev environment, turn it off. Unrelated style changes in your pull requests will make them harder to process. Feel free to message the core development team to ask them to clean up a file you are working on if the inconsistent coding styles is bothering you.
3232
* You can update the readme.txt to include a comment about your fix or feature in the changelog, but if you do not the core team will do it for you.
3333
* When committing, reference your issue (if present) and include a note about the fix in the commit message.
3434
* Push the changes to your fork.

.github/ISSUE_TEMPLATE.MD

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<!-- MARK COMPLETED ITEMS WITH AN [x] -->
1212

1313
- [ ] I have searched for similar issues in both open and closed tickets and cannot find a duplicate.
14-
- [ ] The issue still exists against the latest `dev` branch of Paid Memberships Pro on Github (this is **not** the same version as on WordPress.org!)
14+
- [ ] The issue still exists against the latest `dev` branch of Paid Memberships Pro on GitHub (this is **not** the same version as on WordPress.org!)
1515
- [ ] I have attempted to find the simplest possible steps to reproduce the issue
1616

1717
## Steps to reproduce the issue

CHANGELOG.txt

+33-33
Large diffs are not rendered by default.

blocks/src/sidebar/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ register( pmproCustomStore() );
151151
*/
152152
function isSavingPost() {
153153

154-
// State data necessary to establish if a save is occuring.
154+
// State data necessary to establish if a save is occurring.
155155
const isSaving = wp.data.select('core/editor').isSavingPost() || wp.data.select('core/editor').isAutosavingPost();
156156
const isSaveable = wp.data.select('core/editor').isEditedPostSaveable();
157157
const isPostSavingLocked = wp.data.select('core/editor').isPostSavingLocked();

classes/class-pmpro-discount-code-list-table.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ public function column_levels( $item ) {
562562
}
563563

564564
/**
565-
* Override single_row function to add error class if the discount code row need to be higlighted due miscounfiguration
565+
* Override single_row function to add error class if the discount code row need to be highlighted due miscounfiguration
566566
*
567567
* @param StdClass $item The current row item.
568568
* @return void

includes/content.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ function pmpro_search_filter_pmpro_pages( $query ) {
157157
return $query;
158158
}
159159

160-
// Ingore queries that aren't search related.
160+
// Ignore queries that aren't search related.
161161
if ( ! $query->is_search ) {
162162
return $query;
163163
}
@@ -244,7 +244,7 @@ function pmpro_search_filter( $query ) {
244244

245245
/**
246246
* No cache yet. Let's run the queries.
247-
* Some explaination of what we're doing.
247+
* Some explanation of what we're doing.
248248
* A = All posts hidden by level.
249249
* B = All posts hidden by category.
250250
* C = All posts the current user has access to by level.

js/pmpro-admin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -946,7 +946,7 @@ window.addEventListener("DOMContentLoaded", () => {
946946
// If we changed tabs, reset the inputChanged flag.
947947
inputChanged = false;
948948

949-
// Hide tne PMPro message.
949+
// Hide the PMPro message.
950950
const pmproMessage = document.querySelector('#pmpro_message');
951951
if ( pmproMessage ) {
952952
pmproMessage.style.display = 'none';

js/updates.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jQuery(document).ready(function() {
3737
// Likely the case with a PHP error.
3838
alert( error + '. Try refreshing. If this error occurs again, check your PHP error logs or seek help on the PMPro member forums.');
3939
} else if ( status == 'error' ) {
40-
// Likely the case if the user tries to nagivate away from the update page.
40+
// Likely the case if the user tries to navigate away from the update page.
4141
alert( 'This update could not complete. Try refreshing. If this error occurs again, seek help on the PMPro member forums.');
4242
}
4343
}

paid-memberships-pro.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
require_once( PMPRO_DIR . '/includes/terms.php' ); // allow restricting terms by membership level
8585
require_once( PMPRO_DIR . '/includes/page-templates.php' ); // page templates
8686

87-
require_once( PMPRO_DIR . '/includes/content.php' ); // code to check for memebrship and protect content
87+
require_once( PMPRO_DIR . '/includes/content.php' ); // code to check for membership and protect content
8888
require_once( PMPRO_DIR . '/includes/compatibility.php' ); // code to support compatibility for popular page builders
8989
require_once( PMPRO_DIR . '/includes/email.php' ); // code related to email
9090
require_once( PMPRO_DIR . '/includes/fields.php' ); // user fields

preheaders/billing.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
$pmproemail = new PMProEmail();
273273
$pmproemail->sendBillingAdminEmail($current_user, $pmpro_billing_order);
274274

275-
// Save billing info ect, as user meta.
275+
// Save billing info etc, as user meta.
276276
$meta_keys = array();
277277
$meta_values = array();
278278

readme.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Are you comparing Paid Memberships Pro with another membership plugin or third-p
142142
* [Patreon](https://www.paidmembershipspro.com/paid-memberships-pro-vs-patreon/)
143143
* [Substack](https://www.paidmembershipspro.com/paid-memberships-pro-vs-substack/)
144144

145-
...and more. You can [read all of these comparision guides here](https://www.paidmembershipspro.com/category/product-comparison/).
145+
...and more. You can [read all of these comparison guides here](https://www.paidmembershipspro.com/category/product-comparison/).
146146

147147
== Installation ==
148148

services/twocheckout-ins.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ function pmpro_insRecurringStopped( $morder ) {
490490
global $pmpro_error;
491491
//hook to do other stuff when payments stop
492492
do_action( 'pmpro_subscription_recurring_stopped', $morder );
493-
do_action( 'pmpro_subscription_recuring_stopped', $morder ); // Keeping the mispelled version in case. Will deprecate.
493+
do_action( 'pmpro_subscription_recuring_stopped', $morder ); // Keeping the misspelled version in case. Will deprecate.
494494

495495
$worked = pmpro_cancelMembershipLevel( $morder->membership_level->id, $morder->user->ID, 'inactive' );
496496
if( $worked === true ) {

tests/_support/_generated/AcceptanceTesterActions.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -3489,7 +3489,7 @@ public function canSeePluginDeactivated($pluginSlug) {
34893489
/**
34903490
* [!] Method is generated. Documentation taken from corresponding module.
34913491
*
3492-
* Assert a plugin is installed, no matter its activation status, in the plugin adminstration screen.
3492+
* Assert a plugin is installed, no matter its activation status, in the plugin administration screen.
34933493
*
34943494
* The method will **not** handle authentication and navigation to the plugin administration screen.
34953495
*
@@ -3512,7 +3512,7 @@ public function seePluginInstalled($pluginSlug) {
35123512
* [!] Method is generated. Documentation taken from corresponding module.
35133513
*
35143514
* [!] Conditional Assertion: Test won't be stopped on fail
3515-
* Assert a plugin is installed, no matter its activation status, in the plugin adminstration screen.
3515+
* Assert a plugin is installed, no matter its activation status, in the plugin administration screen.
35163516
*
35173517
* The method will **not** handle authentication and navigation to the plugin administration screen.
35183518
*
@@ -4987,7 +4987,7 @@ public function cantSeeCommentInDatabase(array $criteria) {
49874987
*
49884988
* @example
49894989
* ```php
4990-
* // Assert a specifid meta for a comment exists.
4990+
* // Assert a specified meta for a comment exists.
49914991
* $I->seeCommentMetaInDatabase(['comment_ID' => $commentId, 'meta_key' => 'karma', 'meta_value' => 23]);
49924992
* // Assert the comment has at least one meta set.
49934993
* $I->seeCommentMetaInDatabase(['comment_ID' => $commentId]);
@@ -5010,7 +5010,7 @@ public function seeCommentMetaInDatabase(array $criteria) {
50105010
*
50115011
* @example
50125012
* ```php
5013-
* // Assert a specifid meta for a comment exists.
5013+
* // Assert a specified meta for a comment exists.
50145014
* $I->seeCommentMetaInDatabase(['comment_ID' => $commentId, 'meta_key' => 'karma', 'meta_value' => 23]);
50155015
* // Assert the comment has at least one meta set.
50165016
* $I->seeCommentMetaInDatabase(['comment_ID' => $commentId]);
@@ -5362,7 +5362,7 @@ public function haveTransientInDatabase($transient, $value) {
53625362
*
53635363
* @param string $option_name The option name.
53645364
* @param mixed $option_value The option value; if an array or object it will be serialized.
5365-
* @param string $autoload Wether the option should be autoloaded by WordPress or not.
5365+
* @param string $autoload Whether the option should be autoloaded by WordPress or not.
53665366
*
53675367
* @return int The inserted option `option_id`
53685368
* @see \Codeception\Module\WPDb::haveOptionInDatabase()
@@ -5430,7 +5430,7 @@ public function dontHaveOptionInDatabase($key, $value = NULL) {
54305430
* ```
54315431
*
54325432
* @param string $key The name of the option to insert.
5433-
* @param mixed $value The value ot insert for the option.
5433+
* @param mixed $value The value of insert for the option.
54345434
*
54355435
* @return int The inserted option `option_id`.
54365436
* @see \Codeception\Module\WPDb::haveSiteOptionInDatabase()
@@ -6919,7 +6919,7 @@ public function getSiteDomain() {
69196919
/**
69206920
* [!] Method is generated. Documentation taken from corresponding module.
69216921
*
6922-
* Removes one ore more blogs frome the database.
6922+
* Removes one ore more blogs from the database.
69236923
*
69246924
* @example
69256925
* ```php
@@ -7543,7 +7543,7 @@ public function grabUserIdFromDatabase($userLogin) {
75437543
*
75447544
* @param int $postId The post ID.
75457545
* @param string $metaKey The key of the meta to retrieve.
7546-
* @param bool $single Whether to return a single meta value or an arrya of all available meta values.
7546+
* @param bool $single Whether to return a single meta value or an array of all available meta values.
75477547
*
75487548
* @return mixed|array<string,mixed> Either a single meta value or an array of all the available meta values.
75497549
* @see \Codeception\Module\WPDb::grabPostMetaFromDatabase()

tests/_support/_generated/WpunitTesterActions.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ public function cantSeeCommentInDatabase(array $criteria) {
11141114
*
11151115
* @example
11161116
* ```php
1117-
* // Assert a specifid meta for a comment exists.
1117+
* // Assert a specified meta for a comment exists.
11181118
* $I->seeCommentMetaInDatabase(['comment_ID' => $commentId, 'meta_key' => 'karma', 'meta_value' => 23]);
11191119
* // Assert the comment has at least one meta set.
11201120
* $I->seeCommentMetaInDatabase(['comment_ID' => $commentId]);
@@ -1137,7 +1137,7 @@ public function seeCommentMetaInDatabase(array $criteria) {
11371137
*
11381138
* @example
11391139
* ```php
1140-
* // Assert a specifid meta for a comment exists.
1140+
* // Assert a specified meta for a comment exists.
11411141
* $I->seeCommentMetaInDatabase(['comment_ID' => $commentId, 'meta_key' => 'karma', 'meta_value' => 23]);
11421142
* // Assert the comment has at least one meta set.
11431143
* $I->seeCommentMetaInDatabase(['comment_ID' => $commentId]);
@@ -1489,7 +1489,7 @@ public function haveTransientInDatabase($transient, $value) {
14891489
*
14901490
* @param string $option_name The option name.
14911491
* @param mixed $option_value The option value; if an array or object it will be serialized.
1492-
* @param string $autoload Wether the option should be autoloaded by WordPress or not.
1492+
* @param string $autoload Whether the option should be autoloaded by WordPress or not.
14931493
*
14941494
* @return int The inserted option `option_id`
14951495
* @see \Codeception\Module\WPDb::haveOptionInDatabase()
@@ -1557,7 +1557,7 @@ public function dontHaveOptionInDatabase($key, $value = NULL) {
15571557
* ```
15581558
*
15591559
* @param string $key The name of the option to insert.
1560-
* @param mixed $value The value ot insert for the option.
1560+
* @param mixed $value The value of insert for the option.
15611561
*
15621562
* @return int The inserted option `option_id`.
15631563
* @see \Codeception\Module\WPDb::haveSiteOptionInDatabase()
@@ -3046,7 +3046,7 @@ public function getSiteDomain() {
30463046
/**
30473047
* [!] Method is generated. Documentation taken from corresponding module.
30483048
*
3049-
* Removes one ore more blogs frome the database.
3049+
* Removes one ore more blogs from the database.
30503050
*
30513051
* @example
30523052
* ```php
@@ -3670,7 +3670,7 @@ public function grabUserIdFromDatabase($userLogin) {
36703670
*
36713671
* @param int $postId The post ID.
36723672
* @param string $metaKey The key of the meta to retrieve.
3673-
* @param bool $single Whether to return a single meta value or an arrya of all available meta values.
3673+
* @param bool $single Whether to return a single meta value or an array of all available meta values.
36743674
*
36753675
* @return mixed|array<string,mixed> Either a single meta value or an array of all the available meta values.
36763676
* @see \Codeception\Module\WPDb::grabPostMetaFromDatabase()

0 commit comments

Comments
 (0)