Changeset 2823737
- Timestamp:
- 11/24/2022 04:14:46 PM (3 years ago)
- Location:
- wc-spod/trunk
- Files:
-
- 4 edited
-
classes/SpodPodAdmin.php (modified) (3 diffs)
-
classes/SpodPodApiArticles.php (modified) (2 diffs)
-
classes/SpodPodPlugin.php (modified) (2 diffs)
-
wc-spod.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wc-spod/trunk/classes/SpodPodAdmin.php
r2708945 r2823737 77 77 add_submenu_page('wc-spod', __('System Report', 'wc-spod'), __('System Report', 'wc-spod'), 'manage_woocommerce', 'wc-spod-requirements', array(&$this, 'adminRequirments'), 1); 78 78 add_submenu_page('wc-spod', __('Support', 'wc-spod'), __('Support', 'wc-spod'), 'manage_woocommerce', 'wc-spod-support', array(&$this, 'adminSupport'), 2); 79 80 //add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) {81 79 } 82 80 … … 350 348 } 351 349 350 /** 351 * build system report for internal plugin page 352 * @since 1.1.0 353 * @return string 354 */ 352 355 protected function buildDebugReport() 353 356 { … … 380 383 return $return_string; 381 384 } 385 386 /** 387 * add content security rule for iframe 388 * @param array $headers 389 * @return array 390 */ 391 public function updateCspRule($headers ) 392 { 393 //header( "Content-Security-Policy: frame-ancestors 'none'; default-src 'self', script-src '*://*.example.com:*'" ); 394 } 382 395 } -
wc-spod/trunk/classes/SpodPodApiArticles.php
r2821378 r2823737 75 75 } 76 76 //$this->uploadImages($article->images, $product); 77 $this->insertImageDataToTemp($ article->images, $product);77 $this->insertImageDataToTemp($product, $article->images); 78 78 } 79 79 … … 623 623 $records = $wpdb->get_results($query); 624 624 if($records) { 625 $this->uploadProductImages($ records, $product);625 $this->uploadProductImages($product, $records); 626 626 } 627 627 } -
wc-spod/trunk/classes/SpodPodPlugin.php
r2642282 r2823737 100 100 $this->loader->add_filter('upload_mimes', $plugin_admin, 'addMimeType'); 101 101 } 102 $this->loader->add_action( 'wp_ajax_serversidefunction', $plugin_admin, 'serversideAjax' );103 $this->loader->add_action( 'admin_menu', $plugin_admin, 'addPages', 10,5);104 $this->loader->add_action( 'woocommerce_order_status_processing', $plugin_admin, 'hookOrderStatusProcessing', 10, 1 );105 $this->loader->add_action( 'woocommerce_order_status_cancelled', $plugin_admin, 'hookOrderStatusCancelled', 10, 1 );106 $this->loader->add_action( 'init', $plugin_admin, 'registerShippedOrderState', 10, 1 );107 $this->loader->add_action( 'admin_notices', $plugin_admin, 'showAdminNotices', 10, 1 );108 $this->loader->add_filter( 'wc_order_statuses', $plugin_admin,'addShippedOrderState' );102 $this->loader->add_action( 'wp_ajax_serversidefunction', $plugin_admin, 'serversideAjax' ); 103 $this->loader->add_action( 'admin_menu', $plugin_admin, 'addPages', 10,5); 104 $this->loader->add_action( 'woocommerce_order_status_processing', $plugin_admin, 'hookOrderStatusProcessing', 10, 1 ); 105 $this->loader->add_action( 'woocommerce_order_status_cancelled', $plugin_admin, 'hookOrderStatusCancelled', 10, 1 ); 106 $this->loader->add_action( 'init', $plugin_admin, 'registerShippedOrderState', 10, 1 ); 107 $this->loader->add_action( 'admin_notices', $plugin_admin, 'showAdminNotices', 10, 1 ); 108 $this->loader->add_filter( 'wc_order_statuses', $plugin_admin,'addShippedOrderState' ); 109 109 110 110 } … … 118 118 private function defineFrontendHooks() { 119 119 $plugin_admin = new SpodPodFrontend( $this->getPluginName(), $this->getVersion() ); 120 $this->loader->add_action( 'init', $plugin_admin, 'registerRewritePage', 11, 0 );121 $this->loader->add_action( 'query_vars', $plugin_admin, 'queryWebhookVars', 10, 1 );122 $this->loader->add_action( 'parse_request', $plugin_admin, 'parseWebhookVars', 10, 1 );120 $this->loader->add_action( 'init', $plugin_admin, 'registerRewritePage', 11, 0 ); 121 $this->loader->add_action( 'query_vars', $plugin_admin, 'queryWebhookVars', 10, 1 ); 122 $this->loader->add_action( 'parse_request', $plugin_admin, 'parseWebhookVars', 10, 1 ); 123 123 } 124 124 -
wc-spod/trunk/wc-spod.php
r2821380 r2823737 9 9 * Plugin URI: https://www.spod.com/ 10 10 * Description: Connect your WooCommerce Shop to the leading provider of whitelabel print-on-demand services. Get an automatic product, order and order status synchronisation and a seamless integration into your WooCommerce setup ready within minutes. 11 * Version: 1.2. 211 * Version: 1.2.3 12 12 * Author: SPOD - Spreadshirt-Print-On-Demand 13 13 * Author URI: https://www.spod.com … … 29 29 * Currently plugin version. 30 30 */ 31 define( 'SPOD_POD_VERSION', '1.2. 2' );31 define( 'SPOD_POD_VERSION', '1.2.3' ); 32 32 define( 'MIN_WORDPRESS_VERSION_REQUIRED', 4.8 ); 33 33 define( 'MIN_WOOCOMMERCE_VERSION_REQUIRED', 4.7);
Note: See TracChangeset
for help on using the changeset viewer.