Changeset 2957260
- Timestamp:
- 08/23/2023 11:02:07 AM (3 years ago)
- Location:
- outshifter-embed-commerce/trunk
- Files:
-
- 3 edited
-
README.md (modified) (1 diff)
-
admin/partials/custom-shortcodes.php (modified) (1 diff)
-
outshifter-blocks.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
outshifter-embed-commerce/trunk/README.md
r2950363 r2957260 5 5 Requires at least: 5.0 6 6 Tested up to: 6.2 7 Stable tag: 1.1. 17 Stable tag: 1.1.2 8 8 Requires PHP: 7.0 9 9 License: GPL-2.0+ -
outshifter-embed-commerce/trunk/admin/partials/custom-shortcodes.php
r2909461 r2957260 73 73 add_action('save_post', 'save_detail'); 74 74 75 function save_detail(){ 76 global $post; 75 function save_detail( $post_id ){ 77 76 if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) { 78 return $post ->ID;77 return $post_id; 79 78 } 80 update_post_meta($post->ID, "product", sanitize_text_field($_POST["product"])); 79 if ( ! current_user_can('edit_post', $post_id) ) { 80 return $post_id; 81 } 82 if ( empty( $_POST["product"] ) ) { 83 return $post_id; 84 } 85 update_post_meta($post_id, "product", sanitize_text_field($_POST["product"])); 86 87 return $post_id; 81 88 } 82 89 -
outshifter-embed-commerce/trunk/outshifter-blocks.php
r2950363 r2957260 16 16 * Plugin Name: Reachu Embed Commerce 17 17 * Description: Sell any product directly on your existing surface 18 * Version: 1.1. 118 * Version: 1.1.2 19 19 * Author: Reachu team 20 20 * Author URI: www.reachu.io … … 31 31 require_once "vars.php"; 32 32 33 define( 'OUTSHIFTER_WORDPRESS_VERSION', '1.1. 1' );33 define( 'OUTSHIFTER_WORDPRESS_VERSION', '1.1.2' ); 34 34 define( 'OUTSHIFTER_PLUGIN_FOLDER', plugin_dir_url(dirname(__FILE__)) ); 35 35 define( 'OUTSHIFTER_NAME_FOLDER', 'outshifter-embed-commerce');
Note: See TracChangeset
for help on using the changeset viewer.