Changeset 3282033
- Timestamp:
- 04/25/2025 05:04:17 PM (11 months ago)
- Location:
- sell-on-consignment
- Files:
-
- 30 added
- 6 edited
-
tags/1.3 (added)
-
tags/1.3/README.txt (added)
-
tags/1.3/admin (added)
-
tags/1.3/admin/class-cwsoc-sell-admin.php (added)
-
tags/1.3/admin/css (added)
-
tags/1.3/admin/css/cwsoc-sell-admin.css (added)
-
tags/1.3/admin/index.php (added)
-
tags/1.3/admin/js (added)
-
tags/1.3/admin/js/cwsoc-sell-admin.js (added)
-
tags/1.3/admin/partials (added)
-
tags/1.3/admin/partials/cwsoc-sell-admin-display.php (added)
-
tags/1.3/includes (added)
-
tags/1.3/includes/class-cwsoc-sell-activator.php (added)
-
tags/1.3/includes/class-cwsoc-sell-deactivator.php (added)
-
tags/1.3/includes/class-cwsoc-sell-i18n.php (added)
-
tags/1.3/includes/class-cwsoc-sell-loader.php (added)
-
tags/1.3/includes/class-cwsoc-sell.php (added)
-
tags/1.3/includes/index.php (added)
-
tags/1.3/index.php (added)
-
tags/1.3/languages (added)
-
tags/1.3/public (added)
-
tags/1.3/public/class-cwsoc-sell-public.php (added)
-
tags/1.3/public/css (added)
-
tags/1.3/public/css/cwsoc-sell-public.css (added)
-
tags/1.3/public/index.php (added)
-
tags/1.3/public/js (added)
-
tags/1.3/public/js/cwsoc-sell-public.js (added)
-
tags/1.3/public/partials (added)
-
tags/1.3/public/partials/cwsoc-sell-public-display.php (added)
-
tags/1.3/sell-on-consignment.php (added)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/admin/class-cwsoc-sell-admin.php (modified) (1 diff)
-
trunk/admin/partials/cwsoc-sell-admin-display.php (modified) (2 diffs)
-
trunk/includes/class-cwsoc-sell-activator.php (modified) (2 diffs)
-
trunk/includes/class-cwsoc-sell.php (modified) (1 diff)
-
trunk/sell-on-consignment.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sell-on-consignment/trunk/README.txt
r3274994 r3282033 3 3 Tags: consignment, sell products on consignment 4 4 Tested up to: 6.8 5 Stable tag: 1. 25 Stable tag: 1.3 6 6 License: GPLv2 7 7 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 48 48 == Changelog == 49 49 50 = 1.3 = 51 Extend length of phone field from 10 to 20 52 50 53 = 1.2 = 51 54 Fix nonce … … 59 62 == Upgrade Notice == 60 63 64 = 1.3 = 65 Extend length of phone field from 10 to 20. Upgrade when possible. You may have to deactivate and reactivate to have the change take effect. 66 61 67 = 1.2 = 62 68 Fixes form submission. Upgrade as soon as possible. -
sell-on-consignment/trunk/admin/class-cwsoc-sell-admin.php
r3274983 r3282033 465 465 } 466 466 $query = $wpdb->insert( $wpdb->prefix.'cwsoc_sell_store', array( 'email' => sanitize_email($values['email']), 'first_name' => sanitize_text_field($values['first_name']), 'last_name' => sanitize_text_field($values['last_name']), 'company' => sanitize_text_field($values['company']),'address_1'=>sanitize_text_field($values['address_1']), 'address_2' => sanitize_text_field($values['address_2']), 'city' => sanitize_text_field($values['city']), 'state' => sanitize_text_field($values['state']), 'country' => sanitize_text_field($values['country']), 'postcode' => sanitize_text_field($values['postcode']), 'phone' => sanitize_text_field($values['phone']) ), array( '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s') ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery 467 if ( $wpdb->insert_id < 0) {467 if (isset($wpdb->last_error) && $wpdb->last_error!="") { 468 468 $results = array("status"=>0, "message"=>'Could not add new store. Error is '.$wpdb->last_error.'. '); 469 469 } else { -
sell-on-consignment/trunk/admin/partials/cwsoc-sell-admin-display.php
r3254349 r3282033 79 79 <input type="email" maxlength="150" required name="email"/> 80 80 </td><td> 81 <label for="phone">Numbers only </label>82 <input type=" number" maxlength="10" required name="phone"/>81 <label for="phone">Numbers only. Maximum 20.</label> 82 <input type="text" maxlength="20" pattern="\d*" required name="phone"/> 83 83 </td><td> 84 84 <button type="submit">Add</button> … … 173 173 174 174 </td><td> 175 <label>Numbers only </label>176 <input type=" number" maxlength=10required name="phone" value="'.esc_html($row->phone).'"/>175 <label>Numbers only. Maximum 20.</label> 176 <input type="text" maxlength="20" pattern="\d*" required name="phone" value="'.esc_html($row->phone).'"/> 177 177 </td> 178 178 <td align="center"> -
sell-on-consignment/trunk/includes/class-cwsoc-sell-activator.php
r3274983 r3282033 42 42 company varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, 43 43 email varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, 44 phone varchar( 10) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,44 phone varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, 45 45 address_1 varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, 46 46 address_2 varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL, … … 54 54 require_once(ABSPATH . 'wp-admin/includes/upgrade.php'); 55 55 dbDelta($sql); 56 56 57 // ALTER PHONE COLUMN IN CASE THEY ALREADY HAD INSTALLED 58 $column_name = "phone"; 59 $alter_ddl = "ALTER TABLE $table_name MODIFY $column_name VARCHAR(20)"; 60 dbDelta($alter_ddl); 61 57 62 // SETTINGS table 58 63 $table_name = $wpdb->prefix . "cwsoc_sell_settings"; -
sell-on-consignment/trunk/includes/class-cwsoc-sell.php
r3274994 r3282033 63 63 $this->version = CWSOC_SELL_VERSION; 64 64 } else { 65 $this->version = '1. 2';65 $this->version = '1.3'; 66 66 } 67 67 $this->plugin_name = 'sell-on-consignment'; -
sell-on-consignment/trunk/sell-on-consignment.php
r3274994 r3282033 16 16 Plugin Name: Sell On Consignment 17 17 Description: Sell a product on both your website and on consignment at another store. 18 Version: 1. 218 Version: 1.3 19 19 Author: Charlene's Web Services 20 20 Author URI: https://charlenesweb.ca/ … … 33 33 * First release 1.0.0 and then using SemVer - https://semver.org X.Y.Z (Major.Minor.Patch) 34 34 */ 35 define( 'CWSOC_SELL_VERSION', '1. 2' );35 define( 'CWSOC_SELL_VERSION', '1.3' ); 36 36 define('CWSOC_SELL_SRC_DIR', dirname(__FILE__) ); 37 37 /**
Note: See TracChangeset
for help on using the changeset viewer.