Plugin Directory

Changeset 2725189


Ignore:
Timestamp:
05/17/2022 09:25:34 AM (4 years ago)
Author:
holest
Message:

4th round of optimizations recommended by WP Plugins team

Location:
excel-like-price-change-for-woocommerce-and-wp-e-commerce-light/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • excel-like-price-change-for-woocommerce-and-wp-e-commerce-light/trunk/excel-like-price-change-for-woocommerce-and-wp-e-commerce-light.php

    r2723781 r2725189  
    88 * Description:An WooCommerce / WP E-commerce 'MS excel'-like fast input spreadsheet editor for fast product price change using web-form spreadsheet or export / import form CSV. It supports both WooCommerce and WP E-commerce. UI behaves same as in MS Excel. This is the right thing for you if your users give you a blank stare when you're trying to explain them how to update prices.;EDITABLE / IMPORTABLE FIELDS: Price, Sales Price; VIEWABLE / EXPORTABLE FIELDS: WooCommerce: Price, Sales Price, Attributes (Each pivoted as column), SKU, Category, Shipping class, Name, Slug, Stock, Featured, Status, Weight, Height, Width, Length, Tax status, Tax class; WP E-commerce: Price, Sales Price, Tags, SKU, Category, Name, Slug, Stock, Status, Weight, Height, Width, Length, Taxable, local and international shipping costs; Allows custom fields you can configure to view/export any property
    99 * Tested up to: 5.9.3
    10  * Version: 2.2.22
     10 * Version: 2.2.23
    1111 * Author: Holest Engineering
    1212 * Author URI: http://www.holest.com
     
    6363            return $default;
    6464       }   
    65    }
    66 
    67    if(!function_exists("pelm_read_sanitized_server_parm")){
     65    }
     66   
     67    if(!function_exists("pelm_esc_sanitized_request_parm")){
     68       function pelm_esc_sanitized_request_parm($parm_name, $default = NULL){
     69            return esc_attr(pelm_read_sanitized_request_parm($parm_name, $default));
     70       }   
     71    }
     72
     73    if(!function_exists("pelm_read_sanitized_server_parm")){
    6874       function pelm_read_sanitized_server_parm($parm_name, $default = NULL){
    6975            if(isset($_SERVER[$parm_name])){
     
    7581            return $default;
    7682       }   
    77    }
     83    }
    7884
    7985    if(!function_exists("pelm_read_sanitized_cookie_parm")){
  • excel-like-price-change-for-woocommerce-and-wp-e-commerce-light/trunk/readme.txt

    r2723781 r2725189  
    44License: GPLv2 or later
    55License URI: http://www.gnu.org/licenses/gpl-2.0.html
    6 Stable tag: 2.2.22
     6Stable tag: 2.2.23
    77Tested up to: 5.9.3
    88WC requires at least: 2.5.0
  • excel-like-price-change-for-woocommerce-and-wp-e-commerce-light/trunk/shops/wooc.php

    r2723781 r2725189  
    14181418                    <?php }
    14191419                    if(pelm_read_sanitized_request_parm("page_no")) {?>
    1420                                         <input type="hidden" name="page_no" value="<?php echo pelm_read_sanitized_request_parm("page_no");?>">
     1420                                        <input type="hidden" name="page_no" value="<?php echo pelm_esc_sanitized_request_parm("page_no");?>">
    14211421                    <?php }
    14221422                    if(pelm_read_sanitized_request_parm("limit")) {?>
    1423                                         <input type="hidden" name="limit" value="<?php echo pelm_read_sanitized_request_parm("limit");?>">
     1423                                        <input type="hidden" name="limit" value="<?php echo pelm_esc_sanitized_request_parm("limit");?>">
    14241424                    <?php }
    14251425                    if(pelm_read_sanitized_request_parm("sku")) {?>
    1426                                         <input type="hidden" name="sku" value="<?php echo pelm_read_sanitized_request_parm("sku");?>">
     1426                                        <input type="hidden" name="sku" value="<?php echo pelm_esc_sanitized_request_parm("sku");?>">
    14271427                    <?php }
    14281428                    if(pelm_read_sanitized_request_parm("product_name")) {?>
    1429                                         <input type="hidden" name="product_name" value="<?php echo pelm_read_sanitized_request_parm("product_name");?>">
     1429                                        <input type="hidden" name="product_name" value="<?php echo pelm_esc_sanitized_request_parm("product_name");?>">
    14301430                    <?php }
    14311431                    if(pelm_read_sanitized_request_parm("product_category")) {?>
    1432                                         <input type="hidden" name="product_category" value="<?php echo pelm_read_sanitized_request_parm("product_category");?>">
     1432                                        <input type="hidden" name="product_category" value="<?php echo pelm_esc_sanitized_request_parm("product_category");?>">
    14331433                    <?php }                                   
    14341434                    if(pelm_read_sanitized_request_parm("product_shipingclass")) {?>
    1435                                         <input type="hidden" name="product_shipingclass" value="<?php echo pelm_read_sanitized_request_parm("product_shipingclass");?>">
     1435                                        <input type="hidden" name="product_shipingclass" value="<?php echo pelm_esc_sanitized_request_parm("product_shipingclass");?>">
    14361436                    <?php }
    14371437                    if(pelm_read_sanitized_request_parm("product_tag")) {?>
    1438                                         <input type="hidden" name="product_tag" value="<?php echo pelm_read_sanitized_request_parm("product_tag");?>">
     1438                                        <input type="hidden" name="product_tag" value="<?php echo pelm_esc_sanitized_request_parm("product_tag");?>">
    14391439                    <?php }
    14401440                    if(pelm_read_sanitized_request_parm("product_status")) {?>
    1441                                         <input type="hidden" name="product_status" value="<?php echo pelm_read_sanitized_request_parm("product_status");?>">
     1441                                        <input type="hidden" name="product_status" value="<?php echo pelm_esc_sanitized_request_parm("product_status");?>">
    14421442                    <?php } ?>
    14431443                                   
     
    14461446                        if(pelm_read_sanitized_request_parm("pattribute_" . $attr->id)) {
    14471447                            ?>
    1448                                         <input type="hidden" name="pattribute_<?php echo esc_attr($attr->id);?>" value="<?php echo pelm_read_sanitized_request_parm("pattribute_" . $attr->id);?>">
     1448                                        <input type="hidden" name="pattribute_<?php echo esc_attr($attr->id);?>" value="<?php echo pelm_esc_sanitized_request_parm("pattribute_" . $attr->id);?>">
    14491449                            <?php   
    14501450                        }
     
    18701870                <input name="pelm_security" type="hidden" value="<?php echo esc_attr(pelm_get_nonce("pelm_nonce")); ?>" />
    18711871                <h2><?php echo esc_html__("Updating prices...", 'excel-like-price-change-for-woocommerce-and-wp-e-commerce-light'); ?></h2>
    1872                 <h3><?php echo (pelm_read_sanitized_request_parm("mass_update_percentage") ? "%" : "") . (floatval(pelm_read_sanitized_request_parm("mass_update_val")) > 0 ? "+" : "-") . pelm_read_sanitized_request_parm("mass_update_val");?></h3>
     1872                <h3><?php echo (pelm_esc_sanitized_request_parm("mass_update_percentage") ? "%" : "") . (floatval(pelm_esc_sanitized_request_parm("mass_update_val")) > 0 ? "+" : "-") . pelm_esc_sanitized_request_parm("mass_update_val");?></h3>
    18731873                <p>(<?php echo esc_attr($mu_res);?>) <?php echo esc_html__("products/product price updated of total ", 'excel-like-price-change-for-woocommerce-and-wp-e-commerce-light');
    18741874                    echo esc_attr($mu_proccessed);?><?php echo esc_html__(" processed.", 'excel-like-price-change-for-woocommerce-and-wp-e-commerce-light'); ?></p>
     
    18781878                <input type="hidden" name="mu_res" value="<?php echo esc_attr($mu_res);?>">
    18791879                <input type="hidden" name="mu_proccessed" value="<?php echo esc_attr($mu_proccessed);?>">
    1880                 <input type="hidden" name="mass_update_val" value="<?php echo pelm_read_sanitized_request_parm("mass_update_val");?>">
    1881                 <input type="hidden" name="mass_update_override" value="<?php echo pelm_read_sanitized_request_parm("mass_update_override");?>">
    1882                 <input type="hidden" name="mass_update_percentage" value="<?php echo pelm_read_sanitized_request_parm("mass_update_percentage");?>">
     1880                <input type="hidden" name="mass_update_val" value="<?php echo pelm_esc_sanitized_request_parm("mass_update_val");?>">
     1881                <input type="hidden" name="mass_update_override" value="<?php echo pelm_esc_sanitized_request_parm("mass_update_override");?>">
     1882                <input type="hidden" name="mass_update_percentage" value="<?php echo pelm_esc_sanitized_request_parm("mass_update_percentage");?>">
    18831883                <?php } ?>
    18841884               
     
    18901890                <?php }
    18911891                if((pelm_read_sanitized_request_parm("page_no"))) {?>
    1892                     <input type="hidden" name="page_no" value="<?php echo pelm_read_sanitized_request_parm("page_no");?>">
     1892                    <input type="hidden" name="page_no" value="<?php echo pelm_esc_sanitized_request_parm("page_no");?>">
    18931893                <?php }
    18941894                if((pelm_read_sanitized_request_parm("limit"))) {?>
    1895                     <input type="hidden" name="limit" value="<?php echo pelm_read_sanitized_request_parm("limit");?>">
     1895                    <input type="hidden" name="limit" value="<?php echo pelm_esc_sanitized_request_parm("limit");?>">
    18961896                <?php }
    18971897                if((pelm_read_sanitized_request_parm("sku"))) {?>
    1898                     <input type="hidden" name="sku" value="<?php echo pelm_read_sanitized_request_parm("sku");?>">
     1898                    <input type="hidden" name="sku" value="<?php echo pelm_esc_sanitized_request_parm("sku");?>">
    18991899                <?php }
    19001900                if((pelm_read_sanitized_request_parm("product_name"))) {?>
    1901                     <input type="hidden" name="product_name" value="<?php echo pelm_read_sanitized_request_parm("product_name");?>">
     1901                    <input type="hidden" name="product_name" value="<?php echo pelm_esc_sanitized_request_parm("product_name");?>">
    19021902                <?php }
    19031903                if((pelm_read_sanitized_request_parm("product_category"))) {?>
    1904                     <input type="hidden" name="product_category" value="<?php echo pelm_read_sanitized_request_parm("product_category");?>">
     1904                    <input type="hidden" name="product_category" value="<?php echo pelm_esc_sanitized_request_parm("product_category");?>">
    19051905                <?php }
    19061906                if((pelm_read_sanitized_request_parm("product_shipingclass"))) {?>
    1907                     <input type="hidden" name="product_shipingclass" value="<?php echo pelm_read_sanitized_request_parm("product_shipingclass");?>">
     1907                    <input type="hidden" name="product_shipingclass" value="<?php echo pelm_esc_sanitized_request_parm("product_shipingclass");?>">
    19081908                <?php }
    19091909                if((pelm_read_sanitized_request_parm("product_tag"))) {?>
    1910                     <input type="hidden" name="product_tag" value="<?php echo pelm_read_sanitized_request_parm("product_tag");?>">
     1910                    <input type="hidden" name="product_tag" value="<?php echo pelm_esc_sanitized_request_parm("product_tag");?>">
    19111911                <?php }
    19121912                if((pelm_read_sanitized_request_parm("product_status"))) {?>
    1913                     <input type="hidden" name="product_status" value="<?php echo pelm_read_sanitized_request_parm("product_status");?>">
     1913                    <input type="hidden" name="product_status" value="<?php echo pelm_esc_sanitized_request_parm("product_status");?>">
    19141914                <?php } ?>
    19151915               
     
    19181918                           
    19191919                        ?>
    1920                             <input type="hidden" name="pattribute_<?php echo esc_attr($attr->id);?>" value="<?php echo pelm_read_sanitized_request_parm("pattribute_" . $attr->id);?>">
     1920                            <input type="hidden" name="pattribute_<?php echo esc_attr($attr->id);?>" value="<?php echo pelm_esc_sanitized_request_parm("pattribute_" . $attr->id);?>">
    19211921                        <?php   
    19221922                           
     
    25082508        <?php }
    25092509        if((pelm_read_sanitized_request_parm("page_no"))) {?>
    2510                             <input type="hidden" name="page_no" value="<?php echo pelm_read_sanitized_request_parm("page_no");?>">
     2510                            <input type="hidden" name="page_no" value="<?php echo pelm_esc_sanitized_request_parm("page_no");?>">
    25112511        <?php }
    25122512        if((pelm_read_sanitized_request_parm("limit"))) {?>
    2513                             <input type="hidden" name="limit" value="<?php echo pelm_read_sanitized_request_parm("limit");?>">
     2513                            <input type="hidden" name="limit" value="<?php echo pelm_esc_sanitized_request_parm("limit");?>">
    25142514        <?php }
    25152515        if((pelm_read_sanitized_request_parm("sku"))) {?>
    2516                             <input type="hidden" name="sku" value="<?php echo pelm_read_sanitized_request_parm("sku");?>">
     2516                            <input type="hidden" name="sku" value="<?php echo pelm_esc_sanitized_request_parm("sku");?>">
    25172517        <?php }
    25182518        if((pelm_read_sanitized_request_parm("product_name"))) {?>
    2519                             <input type="hidden" name="product_name" value="<?php echo pelm_read_sanitized_request_parm("product_name");?>">
     2519                            <input type="hidden" name="product_name" value="<?php echo pelm_esc_sanitized_request_parm("product_name");?>">
    25202520        <?php }
    25212521        if((pelm_read_sanitized_request_parm("product_category"))) {?>
    2522                             <input type="hidden" name="product_category" value="<?php echo pelm_read_sanitized_request_parm("product_category");?>">
     2522                            <input type="hidden" name="product_category" value="<?php echo pelm_esc_sanitized_request_parm("product_category");?>">
    25232523        <?php }                           
    25242524        if((pelm_read_sanitized_request_parm("product_shipingclass"))) {?>
    2525                             <input type="hidden" name="product_shipingclass" value="<?php echo pelm_read_sanitized_request_parm("product_shipingclass");?>">
     2525                            <input type="hidden" name="product_shipingclass" value="<?php echo pelm_esc_sanitized_request_parm("product_shipingclass");?>">
    25262526        <?php }
    25272527        if((pelm_read_sanitized_request_parm("product_tag"))) {?>
    2528                             <input type="hidden" name="product_tag" value="<?php echo pelm_read_sanitized_request_parm("product_tag");?>">
     2528                            <input type="hidden" name="product_tag" value="<?php echo pelm_esc_sanitized_request_parm("product_tag");?>">
    25292529        <?php }
    25302530        if((pelm_read_sanitized_request_parm("product_status"))) {?>
    2531                             <input type="hidden" name="product_status" value="<?php echo pelm_read_sanitized_request_parm("product_status");?>">
     2531                            <input type="hidden" name="product_status" value="<?php echo pelm_esc_sanitized_request_parm("product_status");?>">
    25322532        <?php } ?>
    25332533                       
     
    25352535                if(pelm_read_sanitized_request_parm("pattribute_" . $attr->id, null)) {
    25362536                    ?>
    2537                                     <input type="hidden" name="pattribute_<?php echo esc_attr($attr->id);?>" value="<?php echo pelm_read_sanitized_request_parm("pattribute_" . $attr->id, null);?>">
     2537                                    <input type="hidden" name="pattribute_<?php echo esc_attr($attr->id);?>" value="<?php echo pelm_esc_sanitized_request_parm("pattribute_" . $attr->id, null);?>">
    25382538                    <?php   
    25392539                }
Note: See TracChangeset for help on using the changeset viewer.