Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos #1962

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
8 changes: 4 additions & 4 deletions lang/tribe-common.pot
Original file line number Diff line number Diff line change
Expand Up @@ -1350,7 +1350,7 @@ msgid "Plugin(s) are out of date"
msgstr ""

#: src/Tribe/Admin/Troubleshooting.php:322
msgid "It's important to use the most recent versions of our plugins so that you have access to the latest features, bug fixes, and security updates. Plugin functionality can be comprimised if your site is running outdated or mis-matched versions."
msgid "It's important to use the most recent versions of our plugins so that you have access to the latest features, bug fixes, and security updates. Plugin functionality can be compromised if your site is running outdated or mismatched versions."
msgstr ""

#: src/Tribe/Admin/Troubleshooting.php:324
Expand Down Expand Up @@ -3765,11 +3765,11 @@ msgid "Field ID:"
msgstr ""

#: src/Tribe/Validate.php:104
msgid "Non-existant field validation function passed"
msgid "Non-existent field validation function passed"
msgstr ""

#: src/Tribe/Validate.php:105
msgctxt "non-existant function name passed for field validation"
msgctxt "non-existent function name passed for field validation"
msgid "with function name:"
msgstr ""

Expand All @@ -3783,7 +3783,7 @@ msgid "%s must contain numbers, letters and dots only"
msgstr ""

#: src/Tribe/Validate.php:160
msgid "%s must contain numbers, letters, dashes and undescores only"
msgid "%s must contain numbers, letters, dashes and underscores only"
msgstr ""

#: src/Tribe/Validate.php:174
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@
* Feature - Add new custom Customizer controls - Number, Range Slider, Toggle. [TEC-3897]
* Tweak - Added a `tribe_post_id` filter to `post_id_helper` in the Main class.
* Tweak - Alter Customizer and Section objects to be more versatile. [TCMN-104]
* Tweak - Split pcss variable imports so we only import hte necessary variables for skeleton, and don't import more than once. [TCMN-104]
* Tweak - Split pcss variable imports so we only import the necessary variables for skeleton, and don't import more than once. [TCMN-104]
* Tweak - added new `get_hex_with_hash` function to Tribe/Utils/Color.php to reduce need for manual string concatenation. [TCMN-104]
* Language - 0 new strings added, 50 updated, 1 fuzzied, and 0 obsoleted

Expand Down Expand Up @@ -460,7 +460,7 @@
= [4.12.15] 2020-12-15 =

* Tweak - Add the `tribe_customizer_print_styles_action` to allow filtering the action the Customizer will use to print inline styles. [TEC-3686]
* Tweak - Allow disabling and enabling logging functionality by calling hte `tribe( 'log' )->disable()` and `tribe( 'log' )->enable()` methods on the Log service provider.
* Tweak - Allow disabling and enabling logging functionality by calling the `tribe( 'log' )->disable()` and `tribe( 'log' )->enable()` methods on the Log service provider.
* Tweak - Update di52 containers to latest version for compatibility with WPStaging Pro. [TCMN-136]
* Language - 0 new strings added, 9 updated, 1 fuzzied, and 0 obsoleted

Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Admin/Help_Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ private function get_plugin_api_data( $plugin = null ) {
] );

if ( ! is_wp_error( $data ) ) {
// Format Downloaded Infomation
// Format Downloaded Information
$data->downloaded = $data->downloaded ? number_format( $data->downloaded ) : _x( 'n/a', 'not available', 'tribe-common' );
} else {
// If there was a bug on the Current Request just leave
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Admin/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function is_wp_screen() {

/**
* Filter `tribe_admin_is_wp_screen`
* Allows fo filter if we're on a WP_Screen
* Allows to filter if we're on a WP_Screen
*
* @since 4.9.5
* @param bool null bypass if we want to return a bool of is_wp_scren
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Admin/Live_Date_Preview.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Facilitiates live date previews in the Events > Settings > Display admin screen.
* Facilitates live date previews in the Events > Settings > Display admin screen.
*/
class Tribe__Admin__Live_Date_Preview {
protected $target_fields = [
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Admin/Notices.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public function has_user_dismissed( $slug, $user_id = null ) {
*
* @return boolean
*/
public function has_user_dimissed( $slug, $user_id = null ) {
public function has_user_dismissed( $slug, $user_id = null ) {
return $this->has_user_dismissed( $slug, $user_id );
}

Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Admin/Troubleshooting.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public function get_issues_found() {
],
[
'title' => __( 'Plugin(s) are out of date', 'tribe-common' ),
'description' => __( 'It\'s important to use the most recent versions of our plugins so that you have access to the latest features, bug fixes, and security updates. Plugin functionality can be comprimised if your site is running outdated or mis-matched versions.', 'tribe-common' ),
'description' => __( 'It\'s important to use the most recent versions of our plugins so that you have access to the latest features, bug fixes, and security updates. Plugin functionality can be compromised if your site is running outdated or mismatched versions.', 'tribe-common' ),
'more_info' => 'https://evnt.is/1aqy',
'resolve_text' => __( 'Check for updates', 'tribe-common' ),
'fix' => '/wp-admin/update-core.php',
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ public function data_size_over_packet_size( $value ) {
}

/**
* Returns a transient that might have been stored, due ot its size, in chunks.
* Returns a transient that might have been stored, due to its size, in chunks.
*
* @since 4.13.3
*
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class Tribe__Context {
const WP_PARSED = 'wp_parsed';

/**
* The key to locate a context value among the values in the query mached by `WP::parse_request`.
* The key to locate a context value among the values in the query matched by `WP::parse_request`.
*
* @since 4.9.11
*/
Expand Down
6 changes: 3 additions & 3 deletions src/Tribe/Cost_Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function is_valid_cost( $cost, $allow_negative = true ) {
}

/**
* Returns the regular expression that shold be used to identify a valid
* Returns the regular expression that should be used to identify a valid
* cost string.
*
* @return string
Expand Down Expand Up @@ -188,11 +188,11 @@ public function merge_cost_ranges( $original_string_cost, $merging_cost, $with_c
$matches[0]
);

$numeric_orignal_costs = empty( $matches[0] ) ? $matches[0] : array_map(
$numeric_original_costs = empty( $matches[0] ) ? $matches[0] : array_map(
'floatval', $matches[0]
);

$all_numeric_costs = array_filter( array_merge( $numeric_merging_cost_costs, $numeric_orignal_costs ) );
$all_numeric_costs = array_filter( array_merge( $numeric_merging_cost_costs, $numeric_original_costs ) );
$cost_min = $cost_max = false;

$merging_mins = array_intersect( $sorted_mins, (array) $merging_cost );
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/DB_Lock.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Manages database locks using MySQL fucntions or queries.
* Manages database locks using MySQL functions or queries.
*
* The MySQL functions used by this class are `GET_LOCK`, `IS_FREE_LOCK` and `RELEASE_LOCK`.
* The functions are part of MySQL 5.6 and in line with WordPress minimum requirement of MySQL version (5.6).
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Date_Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public static function datepicker_formats( $translate = null ) {
* @param string $format The weird format you are using
* @param string $date The date string to parse
*
* @return string A DB formated Date, includes time if possible
* @return string A DB formatted Date, includes time if possible
*/
public static function datetime_from_format( $format, $date ) {
// Reverse engineer the relevant date formats
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Debug_Bar/Panels/Context.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use Tribe__Utils__Array as Arr;

/**
* The Debug Bar panel that will display tribe context informations.
* The Debug Bar panel that will display tribe context information.
*
* @since 4.9.5
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Tribe__Documentation__Swagger__Cost_Details_Definition_Provider
*
* While the structure must conform to that used by v2.0 of Swagger the structure can be that of a full document
* or that of a document part.
* The intelligence lies in the "gatherer" of informations rather than in the single "providers" implementing this
* The intelligence lies in the "gatherer" of information rather than in the single "providers" implementing this
* interface.
*
* @link http://swagger.io/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Tribe__Documentation__Swagger__Date_Details_Definition_Provider
*
* While the structure must conform to that used by v2.0 of Swagger the structure can be that of a full document
* or that of a document part.
* The intelligence lies in the "gatherer" of informations rather than in the single "providers" implementing this
* The intelligence lies in the "gatherer" of information rather than in the single "providers" implementing this
* interface.
*
* @link http://swagger.io/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Tribe__Documentation__Swagger__Image_Definition_Provider
*
* While the structure must conform to that used by v2.0 of Swagger the structure can be that of a full document
* or that of a document part.
* The intelligence lies in the "gatherer" of informations rather than in the single "providers" implementing this
* The intelligence lies in the "gatherer" of information rather than in the single "providers" implementing this
* interface.
*
* @link http://swagger.io/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Tribe__Documentation__Swagger__Image_Size_Definition_Provider
*
* While the structure must conform to that used by v2.0 of Swagger the structure can be that of a full document
* or that of a document part.
* The intelligence lies in the "gatherer" of informations rather than in the single "providers" implementing this
* The intelligence lies in the "gatherer" of information rather than in the single "providers" implementing this
* interface.
*
* @link http://swagger.io/
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Documentation/Swagger/Provider_Interface.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ interface Tribe__Documentation__Swagger__Provider_Interface {
*
* While the structure must conform to that used by v2.0 of Swagger the structure can be that of a full document
* or that of a document part.
* The intelligence lies in the "gatherer" of informations rather than in the single "providers" implementing this
* The intelligence lies in the "gatherer" of information rather than in the single "providers" implementing this
* interface.
*
* @link http://swagger.io/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class Tribe__Documentation__Swagger__Term_Definition_Provider
*
* While the structure must conform to that used by v2.0 of Swagger the structure can be that of a full document
* or that of a document part.
* The intelligence lies in the "gatherer" of informations rather than in the single "providers" implementing this
* The intelligence lies in the "gatherer" of information rather than in the single "providers" implementing this
* interface.
*
* @link http://swagger.io/
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Duplicate/Strategy/Like.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function where( $key, $value ) {
}

/**
* Removes anything that's not letters, numbers, hypens and underscores from the string and returns its frags.
* Removes anything that's not letters, numbers, hyphens and underscores from the string and returns its frags.
*
* @param string $value
*
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Duplicate/Strategy/Same.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Class Tribe__Duplicate__Strategy__Same
*
* Models a close matching strategy; rougly a `==` equivalent.
* Models a close matching strategy; roughly a `==` equivalent.
*
* @since 4.6
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Editor/Compatibility/Classic_Editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ public static function is_classic_option_active() {


/**
* Get and store wether user choice is allowed - lets us bypass some checks.
* Get and store whether user choice is allowed - lets us bypass some checks.
*
* @since 4.14.13
*
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Editor/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function sanitize_text_array( $value ) {
*
* @since 4.8
*
* @param mixed $value Check agains this value
* @param mixed $value Check against this value
*
* @return array|bool|int
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Editor/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function remove_inner_blocks( $post_id, $block_name, $replacement = '' )
}

/**
* Update the content of a post using a pattern to search a specifc string, with a custom
* Update the content of a post using a pattern to search a specific string, with a custom
* replacement
*
* @since 4.8.2
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Extension_Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function instance() {
}

/**
* Intializes each extension.
* Initializes each extension.
*/
private function __construct() {
$prefixes = self::get_extension_file_prefixes();
Expand Down
4 changes: 2 additions & 2 deletions src/Tribe/JSON_LD/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ protected function apply_object_data_filter( $data, $args, $post ) {
$type = strtolower( esc_attr( $this->type ) );

/**
* Allows the event data to be modifed by themes and other plugins.
* Allows the event data to be modified by themes and other plugins.
*
* @example tribe_json_ld_thing_object
* @example tribe_json_ld_event_object
Expand Down Expand Up @@ -160,7 +160,7 @@ public function get_markup( $post = null, $args = [] ) {
}

/**
* Allows the event data to be modifed by themes and other plugins.
* Allows the event data to be modified by themes and other plugins.
*
* @example tribe_json_ld_thing_data
* @example tribe_json_ld_event_data
Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Log/Admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function register_script() {
}

/**
* Checks wether the assets should be enqueued.
* Checks whether the assets should be enqueued.
*
* @since 4.15.0
*
Expand Down
4 changes: 2 additions & 2 deletions src/Tribe/Log/File_Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public function is_available() {
}

/**
* Responsible for commiting the entry to the log.
* Responsible for committing the entry to the log.
*
* @param string $entry
* @param string $type
Expand Down Expand Up @@ -197,7 +197,7 @@ public function retrieve( $limit = 0, array $args = [] ) {

/**
* Returns a list of currently accessible logs (current first, oldest last).
* Each is refered to by date.
* Each is referred to by date.
*
* Example:
*
Expand Down
6 changes: 3 additions & 3 deletions src/Tribe/Log/Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function is_available();
public function get_name();

/**
* Responsible for commiting the entry to the log (but only if the debug level
* Responsible for committing the entry to the log (but only if the debug level
* is appropriate).
*
* @param string $entry
Expand All @@ -32,8 +32,8 @@ public function log( $entry, $type = Tribe__Log::DEBUG, $src = '' );
* order. If $limit is a negative or zero value, there is no limit.
*
* Implementation-specific arguments can optionally be provided as a second
* parameter. This may include support for a 'log' param where an identifer
* obtained via the list_availalbe_logs() method is passed in order to query
* parameter. This may include support for a 'log' param where an identifier
* obtained via the list_available_logs() method is passed in order to query
* a specific archived log.
*
* @see Tribe__Log__Logger::list_available_logs()
Expand Down
6 changes: 3 additions & 3 deletions src/Tribe/Log/Null_Logger.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function get_name() {
}

/**
* Responsible for commiting the entry to the log (but only if the debug level
* Responsible for committing the entry to the log (but only if the debug level
* is appropriate).
*
* @param string $entry
Expand All @@ -43,8 +43,8 @@ public function log( $entry, $type = Tribe__Log::DEBUG, $src = '' ) {
* order. If $limit is a negative or zero value, there is no limit.
*
* Implementation-specific arguments can optionally be provided as a second
* parameter. This may include support for a 'log' param where an identifer
* obtained via the list_availalbe_logs() method is passed in order to query
* parameter. This may include support for a 'log' param where an identifier
* obtained via the list_available_logs() method is passed in order to query
* a specific archived log.
*
* @see Tribe__Log__Logger::list_available_logs()
Expand Down
4 changes: 2 additions & 2 deletions src/Tribe/Log/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Monolog-based logging

We've introduced a [Monolog based](https://github.com/Seldaek/monolog) logger in our common libraries.
You can find more information about all the possibilities this opens [on the library documentaion](https://seldaek.github.io/monolog/), but this document will serve as an introduction to the essentials of its day to day use.
You can find more information about all the possibilities this opens [on the library documentation](https://seldaek.github.io/monolog/), but this document will serve as an introduction to the essentials of its day to day use.

## When should I log?

Expand Down Expand Up @@ -35,7 +35,7 @@ The Monolog-based logger will handle logging coming from the legacy logger only
add_filter( 'tribe_log_use_action_logger', '__return_true' );
```

Once this is in your code any call to the legacy logger wil be redirected to the new one.
Once this is in your code any call to the legacy logger will be redirected to the new one.

## Using the logger

Expand Down
2 changes: 1 addition & 1 deletion src/Tribe/Meta/Chunker.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Tribe__Meta__Chunker {
protected $filter_priority = - 1;

/**
* @var string The meta key prefix applied ot any Chunker related post meta.
* @var string The meta key prefix applied to any Chunker related post meta.
*/
protected $meta_key_prefix = '_tribe_chunker_';

Expand Down
Loading
Loading