Skip to content

Commit

Permalink
v2.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
pablo-sg-pacheco committed Nov 12, 2024
1 parent 902fb6c commit c0b637d
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 40 deletions.
6 changes: 3 additions & 3 deletions email-verification-for-woocommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
Plugin Name: Email Verification for WooCommerce
Plugin URI: https://wpfactory.com/item/email-verification-for-woocommerce/
Description: Verify user emails in WooCommerce. Beautifully.
Version: 2.9.0
Version: 2.9.1
Author: WPFactory
Author URI: https://wpfactory.com
Text Domain: emails-verification-for-woocommerce
Domain Path: /langs
Copyright: © 2024 WPFactory
WC tested up to: 9.3
WC tested up to: 9.4
Requires Plugins: woocommerce
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Expand Down Expand Up @@ -63,7 +63,7 @@ final class Alg_WC_Email_Verification {
* @var string
* @since 1.0.0
*/
public $version = '2.9.0';
public $version = '2.9.1';

/**
* @var Alg_WC_Email_Verification The single instance of the class
Expand Down
40 changes: 28 additions & 12 deletions includes/class-alg-wc-ev-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Email Verification for WooCommerce - Admin Class.
*
* @version 2.9.0
* @version 2.9.1
* @since 1.5.0
* @author WPFactory
*/
Expand Down Expand Up @@ -666,7 +666,7 @@ function render_verified_email_column( $output, $column_name, $user_id ) {
/**
* Generate Rich Text Editor HTML.
*
* @version 2.9.0
* @version 2.9.1
* @since 2.9.0
*/
function generate_editor_html( $value ) {
Expand All @@ -676,22 +676,32 @@ function generate_editor_html( $value ) {
$field_description = WC_Admin_Settings::get_field_description( $value );
$description = $field_description['description'];
$tooltip_html = $field_description['tooltip_html'];

$custom_attributes = array();

if ( ! empty( $value['custom_attributes'] ) && is_array( $value['custom_attributes'] ) ) {
foreach ( $value['custom_attributes'] as $attribute => $attribute_value ) {
$custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $attribute_value ) . '"';
}
}
?>
<tr class="<?php echo esc_attr( $value['row_class'] ); ?>">
<th scope="row" class="titledesc">
<label for="<?php echo esc_attr( $value['id'] ); ?>"><?php echo esc_html( $value['title'] ); ?><?php echo $tooltip_html; ?></label>
</th>
<td class="forminp forminp-<?php echo esc_attr( sanitize_title( $value['type'] ) ); ?> alg-wc-editor">
<?php echo $description; ?>
<?php
$editor_id = esc_attr( $value['id'] );
$settings = array(
'textarea_name' => esc_attr( $value['field_name'] ),
'editor_class' => esc_attr( $value['class'] ),
'editor_height' => '',
);
wp_editor( htmlspecialchars_decode( $option_value, ENT_QUOTES ), $editor_id, $settings );
?>
<div <?php echo implode( ' ', $custom_attributes ); ?>>
<?php
$editor_id = esc_attr( $value['id'] );
$settings = array(
'textarea_name' => esc_attr( $value['field_name'] ),
'editor_class' => esc_attr( $value['class'] ),
'editor_height' => '',
);
wp_editor( htmlspecialchars_decode( $option_value, ENT_QUOTES ), $editor_id, $settings );
?>
</div>
</td>
</tr>

Expand All @@ -701,7 +711,7 @@ function generate_editor_html( $value ) {
/**
* Enqueue styles and scripts for settings page.
*
* @version 2.9.0
* @version 2.9.1
* @since 2.9.0
*/
function enqueue_ev_setting_style_and_script() {
Expand All @@ -714,6 +724,12 @@ function enqueue_ev_setting_style_and_script() {
.woocommerce table.form-table .alg-wc-editor textarea {
width: 100%;
}

.alg-wc-editor [readonly="readonly"] textarea,
.alg-wc-editor [readonly="readonly"] .mce-edit-area {
pointer-events: none;
opacity: 0.5;
}
</style>
<script>
jQuery( document ).ready( function ( $ ) {
Expand Down
4 changes: 2 additions & 2 deletions langs/emails-verification-for-woocommerce.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
# This file is distributed under the GNU General Public License v3.0.
msgid ""
msgstr ""
"Project-Id-Version: emails-verification-for-woocommerce 2.9.0\n"
"Project-Id-Version: emails-verification-for-woocommerce 2.9.1\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/emails-verification-for-woocommerce\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"POT-Creation-Date: 2024-10-22T21:34:39+02:00\n"
"POT-Creation-Date: 2024-11-12T21:15:42+01:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.7.1\n"
"X-Domain: emails-verification-for-woocommerce\n"
Expand Down
6 changes: 5 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Contributors: wpcodefactory, omardabbas, karzin, anbinder, algoritmika, kousikmu
Tags: woocommerce, email, verification, email verification, woo commerce
Requires at least: 4.4
Tested up to: 6.6
Stable tag: 2.9.0
Stable tag: 2.9.1
License: GNU General Public License v3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -356,6 +356,10 @@ Once activated, access the plugin's settings by navigating to “WooCommerce > S

== Changelog ==

= 2.9.1 - 12/11/2024 =
* Dev - Email - Activation email - Disabled editing in read-only mode.
* WC tested up to: 9.4.

= 2.9.0 - 22/10/2024 =
* Fix - Vulnerability issue fixed.
* Fix - Function wp_enqueue_script was called incorrectly.
Expand Down
14 changes: 7 additions & 7 deletions vendor/composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,17 @@
},
{
"name": "wpfactory/wpfactory-cross-selling",
"version": "v1.0.2",
"version_normalized": "1.0.2.0",
"version": "v1.0.3",
"version_normalized": "1.0.3.0",
"source": {
"type": "git",
"url": "https://github.com/wpcodefactory/wpfactory-cross-selling.git",
"reference": "6637ce11b91ee75922c6e7a63c8c5f69429c1990"
"reference": "d37c73013e897d3ce3db05b97046b30fdd2fd403"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/wpcodefactory/wpfactory-cross-selling/zipball/6637ce11b91ee75922c6e7a63c8c5f69429c1990",
"reference": "6637ce11b91ee75922c6e7a63c8c5f69429c1990",
"url": "https://api.github.com/repos/wpcodefactory/wpfactory-cross-selling/zipball/d37c73013e897d3ce3db05b97046b30fdd2fd403",
"reference": "d37c73013e897d3ce3db05b97046b30fdd2fd403",
"shasum": ""
},
"require": {
Expand All @@ -145,7 +145,7 @@
"require-dev": {
"wp-cli/wp-cli-bundle": "*"
},
"time": "2024-10-14T15:28:57+00:00",
"time": "2024-10-31T15:55:35+00:00",
"type": "library",
"installation-source": "dist",
"autoload": {
Expand Down Expand Up @@ -173,7 +173,7 @@
]
},
"support": {
"source": "https://github.com/wpcodefactory/wpfactory-cross-selling/tree/v1.0.2",
"source": "https://github.com/wpcodefactory/wpfactory-cross-selling/tree/v1.0.3",
"issues": "https://github.com/wpcodefactory/wpfactory-cross-selling/issues"
},
"install-path": "../wpfactory/wpfactory-cross-selling"
Expand Down
10 changes: 5 additions & 5 deletions vendor/composer/installed.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
'name' => '__root__',
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '88c0101b70594232864871b5cdf79492dec3b524',
'reference' => '902fb6c19a156787ad70a524792690adcf7890c8',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -13,7 +13,7 @@
'__root__' => array(
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'reference' => '88c0101b70594232864871b5cdf79492dec3b524',
'reference' => '902fb6c19a156787ad70a524792690adcf7890c8',
'type' => 'library',
'install_path' => __DIR__ . '/../../',
'aliases' => array(),
Expand All @@ -38,9 +38,9 @@
'dev_requirement' => false,
),
'wpfactory/wpfactory-cross-selling' => array(
'pretty_version' => 'v1.0.2',
'version' => '1.0.2.0',
'reference' => '6637ce11b91ee75922c6e7a63c8c5f69429c1990',
'pretty_version' => 'v1.0.3',
'version' => '1.0.3.0',
'reference' => 'd37c73013e897d3ce3db05b97046b30fdd2fd403',
'type' => 'library',
'install_path' => __DIR__ . '/../wpfactory/wpfactory-cross-selling',
'aliases' => array(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* WPFactory Cross-Selling - Products
*
* @version 1.0.0
* @version 1.0.3
* @since 1.0.0
* @author WPFactory
*/
Expand Down Expand Up @@ -35,7 +35,7 @@ class Products {
/**
* get_products.
*
* @version 1.0.0
* @version 1.0.3
* @since 1.0.0
*
* @return array[]
Expand All @@ -53,7 +53,7 @@ function get_products() {
'pro_plugin_url' => 'https://wpfactory.com/item/wish-list-woocommerce/?utm_source=plugin&utm_medium=cross-selling&utm_campaign=wpfactory',
),
array(
'name' => __('Min Max Default Quantity for WooCommerce','wpfactory-cross-selling'),
'name' => __('Min Max Step Quantity Limits Manager for WooCommerce','wpfactory-cross-selling'),
'desc' => __('Control Product Quantities and make shopping perfectly tailored to your store\'s needs.','wpfactory-cross-selling'),
'category_slug' => 'orders-restrictions',
'icon_url' => 'https://ps.w.org/product-quantity-for-woocommerce/assets/icon.svg?rev=2970983',
Expand All @@ -63,7 +63,7 @@ function get_products() {
'pro_plugin_url' => 'https://wpfactory.com/item/product-quantity-for-woocommerce/?utm_source=plugin&utm_medium=cross-selling&utm_campaign=wpfactory'
),
array(
'name' => __('Cost of Goods Sold (COGS): Cost & Profit Calculator for WooCommerce','wpfactory-cross-selling'),
'name' => __('Cost of Goods: Product Cost & Profit Calculator for WooCommerce','wpfactory-cross-selling'),
'desc' => __('Understand your profits by accurately tracking costs. Make smarter decisions for your business and maximize your store\'s profitability with ease.','wpfactory-cross-selling'),
'category_slug' => 'admin-&-reporting',
'icon_url' => 'https://ps.w.org/cost-of-goods-for-woocommerce/assets/icon.svg',
Expand All @@ -83,7 +83,7 @@ function get_products() {
'pro_plugin_url' => 'https://wpfactory.com/item/maximum-products-per-user-for-woocommerce/?utm_source=plugin&utm_medium=cross-selling&utm_campaign=wpfactory'
),
array(
'name' => __('Order Minimum/Maximum Amount for WooCommerce','wpfactory-cross-selling'),
'name' => __('Order Minimum/Maximum Amount Limits for WooCommerce','wpfactory-cross-selling'),
'desc' => __('Control every order with customizable limits to optimize your sales strategy.','wpfactory-cross-selling'),
'category_slug' => 'orders-restrictions',
'icon_url' => 'https://ps.w.org/order-minimum-amount-for-woocommerce/assets/icon.svg',
Expand Down Expand Up @@ -143,7 +143,7 @@ function get_products() {
'pro_plugin_url' => 'https://wpfactory.com/item/product-xml-feeds-woocommerce/?utm_source=plugin&utm_medium=cross-selling&utm_campaign=wpfactory'
),
array(
'name' => __('Popup Notices: Added to Cart, Checkout Popups & More','wpfactory-cross-selling'),
'name' => __('Popups for WooCommerce: Cart, Add to Cart, Checkout Notices to Popups','wpfactory-cross-selling'),
'desc' => __('Capture customer attention with eye-catching, customizable popups messages.','wpfactory-cross-selling'),
'category_slug' => 'marketing-&-promotion',
'icon_url' => 'https://ps.w.org/popup-notices-for-woocommerce/assets/icon.svg',
Expand All @@ -153,7 +153,7 @@ function get_products() {
'pro_plugin_url' => 'https://wpfactory.com/item/popup-notices-for-woocommerce/?utm_source=plugin&utm_medium=cross-selling&utm_campaign=wpfactory'
),
array(
'name' => __('EAN and Barcodes for WooCommerce','wpfactory-cross-selling'),
'name' => __('EAN Barcode Generator for WooCommerce: UPC, ISBN & GTIN Inventory','wpfactory-cross-selling'),
'desc' => __('Make Inventory Control a Breeze and Manage Your Products Seamlessly.','wpfactory-cross-selling'),
'category_slug' => 'admin-&-reporting',
'icon_url' => 'https://ps.w.org/ean-for-woocommerce/assets/icon.svg',
Expand Down Expand Up @@ -193,7 +193,7 @@ function get_products() {
'pro_plugin_url' => 'https://wpfactory.com/item/url-coupons-woocommerce/?utm_source=plugin&utm_medium=cross-selling&utm_campaign=wpfactory'
),
array(
'name' => __('Dynamic Pricing & Bulk Quantity Discounts','wpfactory-cross-selling'),
'name' => __('Price by Quantity & Bulk Quantity Discounts for WooCommerce','wpfactory-cross-selling'),
'desc' => __('Boost Larger Orders and Maximize Revenue with Dynamic Pricing.','wpfactory-cross-selling'),
'category_slug' => 'marketing-&-promotion',
'icon_url' => 'https://ps.w.org/wholesale-pricing-woocommerce/assets/icon.svg',
Expand Down Expand Up @@ -233,7 +233,7 @@ function get_products() {
'pro_plugin_url' => 'https://wpfactory.com/item/slugs-manager-wordpress-plugin/?utm_source=plugin&utm_medium=cross-selling&utm_campaign=wpfactory'
),
array(
'name' => __('Name Your Price: Make a Price Offer for WooCommerce','wpfactory-cross-selling'),
'name' => __('Name Your Price: Make Your Own Offer for WooCommerce','wpfactory-cross-selling'),
'desc' => __('A great way to engage shoppers and drive sales through customer-driven pricing.','wpfactory-cross-selling'),
'category_slug' => 'marketing-&-promotion',
'icon_url' => 'https://ps.w.org/price-offerings-for-woocommerce/assets/icon.svg',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class WPFactory_Cross_Selling {
*
* @var string
*/
protected $version = '1.0.2';
protected $version = '1.0.3';

/**
* Setup args.
Expand Down

0 comments on commit c0b637d

Please sign in to comment.