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 #416

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ At Complianz we are working towards a full-featured privacy suite for all WordPr

### Developers Guide and Contributions

If you're a developer and want to help out, please feel free to contribute anyway you can. We respond to any pull request or issue on Github. Start with reading the [developers guide](https://complianz.io/developers-guide-for-third-party-integrations/) to get a head start.
If you're a developer and want to help out, please feel free to contribute anyway you can. We respond to any pull request or issue on GitHub. Start with reading the [developers guide](https://complianz.io/developers-guide-for-third-party-integrations/) to get a head start.

**Bug report:** Please start an issue, and if you have a fix a pull request. Please explain your issue clearly, and use comments when adding a pull request. Your contribution will be acknowledges on WordPress.org.

Expand All @@ -18,7 +18,7 @@ If you're a developer and want to help out, please feel free to contribute anywa

### Support

For support we kindly ask you to start at our [support forum](https://wordpress.org/support/plugin/complianz-gdpr/) and our documentation at [complianz.io/docs/](https://complianz.io/docs). If you can't find a solution, do not hesitate to ask either on the forum or log a suppor ticket.
For support we kindly ask you to start at our [support forum](https://wordpress.org/support/plugin/complianz-gdpr/) and our documentation at [complianz.io/docs/](https://complianz.io/docs). If you can't find a solution, do not hesitate to ask either on the forum or log a support ticket.

If you like Complianz - Please [rate us](https://wordpress.org/support/plugin/complianz-gdpr/reviews/) on WordPress.org

2 changes: 1 addition & 1 deletion assets/css/admin/modules/wizard/fields.scss
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@

.cmplz-field-wrap, .cmplz-settings-block-intro {
//adding display flex here causes settings-block-intro with html to break.
//becuse of this the cmplz-field-wrap has this property separately (see above)
//because of this the cmplz-field-wrap has this property separately (see above)
flex-direction: column;
gap: var(--rsp-spacing-xs);
padding-inline: var(--rsp-spacing-l);
Expand Down
2 changes: 1 addition & 1 deletion class-cookie-blocker.php
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ public function replace_tags( $output ) {
*
* */
$image_tags = apply_filters( 'cmplz_image_tags', array() );
$image_pattern = '/<img.*?src=[\'|"](\X*?)[\'|"].*?>/s'; //matches multiline with s operater, for FB pixel
$image_pattern = '/<img.*?src=[\'|"](\X*?)[\'|"].*?>/s'; //matches multiline with s operator, for FB pixel
if ( preg_match_all( $image_pattern, $output, $matches, PREG_PATTERN_ORDER )
) {
foreach ( $matches[1] as $key => $image_url ) {
Expand Down
2 changes: 1 addition & 1 deletion cookie/class-sync.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ public function get_syncable_cookies( $ignore_time_limit = false ) {
}
}

//use as of 5.3. Each non own domain cookie is added to the "thirdparty" list, which is synced onlly with non own domain cookies.
//use as of 5.3. Each non own domain cookie is added to the "thirdparty" list, which is synced only with non own domain cookies.
if ( $hasOwnDomainCookies ) {
if ( !$c->isOwnDomainCookie ) {
if (! in_array( $cookie, $thirdparty_cookies, true ) ) $thirdparty_cookies[] = $cookie->name;
Expand Down
6 changes: 3 additions & 3 deletions cookiebanner/class-banner-loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ public function detect_conflicts() {
?>
<script>
var request = new XMLHttpRequest();
var error_ocurred = false;
var error_occurred = false;
window.onerror = function (msg, url, lineNo, columnNo, error) {
error_ocurred = true;
error_occurred = true;

var request = new XMLHttpRequest();
request.open('POST', '<?php echo add_query_arg(
Expand All @@ -120,7 +120,7 @@ public function detect_conflicts() {

//if no error occurred after 3 seconds, send a reset signal
setTimeout(function () {
if (!error_ocurred) {
if (!error_occurred) {
var request = new XMLHttpRequest();
request.open('POST', '<?php echo add_query_arg(
array(
Expand Down
2 changes: 1 addition & 1 deletion cookiebanner/class-cookiebanner.php
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ public function sanitize_int_array( $int ) {
}

/**
* santize the css to remove any commented or empty classes
* sanitize the css to remove any commented or empty classes
*
* @param string $css
*
Expand Down
4 changes: 2 additions & 2 deletions cookiebanner/js/complianz.js
Original file line number Diff line number Diff line change
Expand Up @@ -1742,7 +1742,7 @@ function cmplz_set_up_auto_dismiss() {
}

/*
* Fire a event wich passes all consented categories
* Fire a event which passes all consented categories
* Separated from the actual category consent because we want to bundle it in one event
*/
function cmplz_fire_categories_event(){
Expand Down Expand Up @@ -2198,7 +2198,7 @@ function cmplz_equals (array_1, array_2) {
}

/*
* Copy all element atributes to the new element
* Copy all element attributes to the new element
*/
function cmplzCopyAttributes(source, target) {
const excludes = ['type', 'data-service', 'data-category', 'async'];
Expand Down
6 changes: 3 additions & 3 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ function cmplz_has_region( $code ) {

if ( ! function_exists( 'cmplz_has_state' ) ) {
/**
* Check if this website targest a specific state
* Check if this website targets a specific state
*
* @param string $code
*
Expand Down Expand Up @@ -2169,7 +2169,7 @@ function cmplz_cdb_reference_in_policy() {
}

/**
* Registrer a translation
* Register a translation
*
* @param $fieldname
*
Expand Down Expand Up @@ -2356,7 +2356,7 @@ function cmplz_get_used_consenttypes( $add_labels = false ) {

if ( ! function_exists( 'cmplz_short_date_format') ) {
/**
* Make sure the date formate is always the short version. If "F" (February) is used, replace with "M" (Feb)
* Make sure the date format is always the short version. If "F" (February) is used, replace with "M" (Feb)
* @return string
*/
function cmplz_short_date_format(){
Expand Down
4 changes: 2 additions & 2 deletions gutenberg/block.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ function cmplz_render_consent_area_block($attributes, $content)
$service = isset($attributes['service']) ? COMPLIANZ::$cookie_blocker->sanitize_service_name( $attributes['service'] ) : 'general';
$post_id = (int) $attributes['postId'];
$block_id = sanitize_title($attributes['blockId']);
$placholder_content = $attributes['placeholderContent'] ?? '';
$placeholder_content = $attributes['placeholderContent'] ?? '';
ob_start();
?><div class="cmplz-consent-area cmplz-placeholder" data-post_id="<?php echo esc_attr($post_id)?>" data-block_id="<?php echo esc_attr($block_id)?>" data-category="<?php echo esc_attr($category); ?>" data-service="<?php echo esc_attr($service); ?>">
<?php echo wp_kses_post($placholder_content) ?>
<?php echo wp_kses_post($placeholder_content) ?>
</div><?php
return ob_get_clean();
}
Expand Down
2 changes: 1 addition & 1 deletion integrations/plugins/amp.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function amp_endpoint() {
= COMPLIANZ::$banner_loader->site_needs_cookie_warning( 'eu' )
|| COMPLIANZ::$banner_loader->site_needs_cookie_warning( 'uk' );
//
//check if this user's region reguires a cookie warning
//check if this user's region requires a cookie warning
$payload
= file_get_contents( 'php://input' ); // phpcs:ignore WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents
if ( ! empty( $payload ) ) {
Expand Down
2 changes: 1 addition & 1 deletion integrations/plugins/bb-powerpack.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function cmplz_bb_add_event(event, selector, callback ) {
}
});
}
<?php //If the marketing is accepted on the video, the lightbox dismisses the vidoe. We open it again. ?>
<?php //If the marketing is accepted on the video, the lightbox dismisses the video. We open it again. ?>
cmplz_bb_add_event('click', '.fancybox-container .cmplz-accept-category, .fancybox-container .cmplz-accept-service',
function(e){
document.querySelector('.pp-video-play-icon').click();
Expand Down
2 changes: 1 addition & 1 deletion integrations/plugins/clarity.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
defined( 'ABSPATH' ) or die( "you do not have access to this page!" );

/**
* Kept simple, no intervention with wizard to allow other analtyics tooling
* Kept simple, no intervention with wizard to allow other analytics tooling
*/

add_filter( 'cmplz_known_script_tags', 'cmplz_clarity_script' );
Expand Down
2 changes: 1 addition & 1 deletion integrations/plugins/omnisend.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
defined( 'ABSPATH' ) or die( "you do not have access to this page!" );

/**
* Kept simple, no intervention with wizard to allow other analtyics tooling
* Kept simple, no intervention with wizard to allow other analytics tooling
*/

add_filter( 'cmplz_known_script_tags', 'cmplz_omnisend_script' );
Expand Down
2 changes: 1 addition & 1 deletion integrations/plugins/podcast-player.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

/**
* Whitelisting podcast player inline script.
* Compatiblity fix for Complianz GDPR/CCPA
* Compatibility fix for Complianz GDPR/CCPA
*
* https://wordpress.org/support/plugin/podcast-player/
* author: @vedathemes
Expand Down
2 changes: 1 addition & 1 deletion integrations/plugins/wpadverts.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined( 'ABSPATH' ) or die( "you do not have acces to this page!" );
defined( 'ABSPATH' ) or die( "you do not have access to this page!" );

if ( cmplz_uses_thirdparty('google-maps') ) {

Expand Down
2 changes: 1 addition & 1 deletion integrations/services/hubspot.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function cmplz_hs_tracking_script( $tags ) {
}

/**
* Sync the Complianz banner with the hubspot banner by clicking on the apropriate buttonn when consent is given.
* Sync the Complianz banner with the hubspot banner by clicking on the appropriate button when consent is given.
*/

function cmplz_hubspot_clicker() {
Expand Down
2 changes: 1 addition & 1 deletion integrations/statistics/matomo.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php
defined('ABSPATH') or die("you do not have acces to this page!");
defined('ABSPATH') or die("you do not have access to this page!");

add_filter( 'cmplz_known_script_tags', 'cmplz_matomo_script' );
function cmplz_matomo_script( $tags ) {
Expand Down
4 changes: 2 additions & 2 deletions languages/complianz-gdpr.pot
Original file line number Diff line number Diff line change
Expand Up @@ -3652,7 +3652,7 @@ msgid "Enter your license below to start with Premium. You can find, and manage,
msgstr ""

#: pro/class-licensing.php:284
msgid "Beta releases are new major versions of Complianz. Please be aware that it is not adviced for production websites, or installations without back-up."
msgid "Beta releases are new major versions of Complianz. Please be aware that it is not advised for production websites, or installations without back-up."
msgstr ""

#: pro/class-licensing.php:285
Expand Down Expand Up @@ -10297,7 +10297,7 @@ msgid "If you add the ID for your statistics tool here, Complianz will configure
msgstr ""

#: settings/config/fields/wizard/consent.php:403
msgid "For the Google Tag Manager code, log in and you will immediatly see your container codes. The one next to your website name is the code you will need to fill in here, the container ID."
msgid "For the Google Tag Manager code, log in and you will immediately see your container codes. The one next to your website name is the code you will need to fill in here, the container ID."
msgstr ""

#: settings/config/fields/wizard/consent.php:414
Expand Down
2 changes: 1 addition & 1 deletion proof-of-consent/class-proof-of-consent.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public function generate_cookie_policy_snapshot( $force = false ) {
$settings['privacy_link_us '] = COMPLIANZ::$document->get_page_url( 'privacy-statement', 'us' );
$settings_html = '';
$skip = array(
'categorie',
'categories',
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure here ⚠️

'use_custom_cookie_css',
'logo',
'custom_css_amp',
Expand Down
4 changes: 2 additions & 2 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ Complianz offers full support on the WordPress.org [Forum](https://wordpress.org
== Useful Links ==

* [Support Forum](https://wordpress.org/support/plugin/complianz-gdpr/)
* [Github](https://github.com/Really-Simple-Plugins/complianz-gdpr/)
* [GitHub](https://github.com/Really-Simple-Plugins/complianz-gdpr/)
* [MU Plugins](https://github.com/Really-Simple-Plugins/complianz-integrations)
* [Documentation](https://complianz.io/docs/)
* [Developer's Guide](https://complianz.io/developers-guide-for-third-party-integrations/)
Expand Down Expand Up @@ -152,7 +152,7 @@ For more information:
* Go to “Plugins” in your WordPress Dashboard, and click “Add new”.
* Click “Upload”, and select the downloaded zip file.
* Activate your new plugin.
* Use our tour to get familar with Complianz.
* Use our tour to get familiar with Complianz.

== Frequently Asked Questions ==
= Knowledgebase =
Expand Down
2 changes: 1 addition & 1 deletion settings/config/fields/wizard/consent.php
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ function cmplz_wizard_consent_fields( $fields ) {
'configuration_by_complianz' => 'yes',
]
],
'tooltip' => __( "For the Google Tag Manager code, log in and you will immediatly see your container codes. The one next to your website name is the code you will need to fill in here, the container ID.", 'complianz-gdpr' ),
'tooltip' => __( "For the Google Tag Manager code, log in and you will immediately see your container codes. The one next to your website name is the code you will need to fill in here, the container ID.", 'complianz-gdpr' ),
],
[
'id' => 'aw_code',
Expand Down
4 changes: 2 additions & 2 deletions settings/config/fields/wizard/services.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function cmplz_services_fields( $fields ) {
'tooltip' => __( "", 'complianz-gdpr' ),
'revoke_consent_onchange' => false,
'options' => [
'yes' => __("Yes, I will designate all Google core plaform services to receive data. (Default)", "complianz-gdpr"),
'yes' => __("Yes, I will designate all Google core platform services to receive data. (Default)", "complianz-gdpr"),
'manual' => __("Yes, but I only allow a subset of Google core platform services to receive data.", "complianz-gdpr"),
'no' => __("No, I don't share any data with Google core platform services.", "complianz-gdpr"),

Expand All @@ -271,7 +271,7 @@ function cmplz_services_fields( $fields ) {
'text' => __( "The largest online platforms act as so-called gatekeepers in digital markets. The Digital Markets Act (DMA) aims to ensure that these platforms behave in a fair way online.", 'complianz-gdpr' ),
'url' => 'https://complianz.io/consent-mode-v2-ready-for-2024/',
],
'label' => __( "Do you allow sharing data across Google core plaform services?", 'complianz-gdpr' ),
'label' => __( "Do you allow sharing data across Google core platform services?", 'complianz-gdpr' ),
'tooltip' => __( "When using Consent Mode and Advertising products by Google, you have the option to minimize sharing data between Google products as required by The Digital Markets Act. This should be designated in the UI of the Google product(s) you're using. Answer below what reflects your choice.", 'complianz-gdpr' ),
'comment' => __( "Only change from the default answer if you actively configured you Google Advertising Products to reflect this choice, otherwise the default is recommended.", 'complianz-gdpr' ),
'react_conditions' => [
Expand Down
2 changes: 1 addition & 1 deletion settings/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ function cmplz_rest_api_fields_get(): array {
*
* @param mixed $value
* @param string $type
* @oaram string $id
* @param string $id
*
* @return array|bool|int|string|void
*/
Expand Down
2 changes: 1 addition & 1 deletion upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function cmplz_check_upgrade() {
$service_name
= COMPLIANZ::$banner_loader->convert_slug_to_name( $selected_stat_service );

//check if we have ohter types of this service, to prevent double services here.
//check if we have other types of this service, to prevent double services here.
$service_anonymized = new CMPLZ_SERVICE( $service_name . ' (anonymized)' );
$service = new CMPLZ_SERVICE( $service_name );

Expand Down
2 changes: 1 addition & 1 deletion upgrade/upgrade-to-pro.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ public function enqueue_assets( $hook ) {
}

/**
* Calls the API and, if successfull, returns the object delivered by the API.
* Calls the API and, if successful, returns the object delivered by the API.
*
* @uses get_bloginfo()
* @uses wp_remote_post()
Expand Down