Changeset 2746060
- Timestamp:
- 06/21/2022 08:06:54 PM (4 years ago)
- Location:
- yikes-inc-easy-custom-woocommerce-product-tabs
- Files:
-
- 6 edited
- 1 copied
-
tags/1.7.8 (copied) (copied from yikes-inc-easy-custom-woocommerce-product-tabs/trunk)
-
tags/1.7.8/admin/class.settings.php (modified) (2 diffs)
-
tags/1.7.8/public/class.yikes-woo-tabs-display.php (modified) (1 diff)
-
tags/1.7.8/readme.txt (modified) (2 diffs)
-
trunk/admin/class.settings.php (modified) (2 diffs)
-
trunk/public/class.yikes-woo-tabs-display.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
yikes-inc-easy-custom-woocommerce-product-tabs/tags/1.7.8/admin/class.settings.php
r2384504 r2746060 90 90 'methods' => 'POST', 91 91 'callback' => array( $this, 'rest_response' ), 92 'permission_callback' => '__return_true'92 'permission_callback' => array( $this, 'permission_callback' ) 93 93 ) 94 94 ); … … 113 113 114 114 return $response; 115 } 116 117 /** 118 * Only allow admins to modify the content setting. 119 * 120 * @return bool 121 */ 122 public function permission_callback(){ 123 return current_user_can( 'manage_options' ); 115 124 } 116 125 -
yikes-inc-easy-custom-woocommerce-product-tabs/tags/1.7.8/public/class.yikes-woo-tabs-display.php
r2260682 r2746060 37 37 */ 38 38 public function add_custom_product_tabs( $tabs ) { 39 global $product; 39 $product = wc_get_product(); 40 41 if ( empty( $product ) ) { 42 return $tabs; 43 } 40 44 41 45 $product_id = method_exists( $product, 'get_id' ) === true ? $product->get_id() : $product->ID; -
yikes-inc-easy-custom-woocommerce-product-tabs/tags/1.7.8/readme.txt
r2734897 r2746060 5 5 Requires at least: 3.8 6 6 Tested up to: 6.0 7 Stable tag: 1.7. 77 Stable tag: 1.7.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 75 75 76 76 == Changelog == 77 78 = 1.7.8 - June 21st, 2022 = 79 * Address minor vulnerability 80 * Fix issue related to Divi Builder 77 81 78 82 = 1.7.7 - March 8th, 2021 = -
yikes-inc-easy-custom-woocommerce-product-tabs/trunk/admin/class.settings.php
r2384504 r2746060 90 90 'methods' => 'POST', 91 91 'callback' => array( $this, 'rest_response' ), 92 'permission_callback' => '__return_true'92 'permission_callback' => array( $this, 'permission_callback' ) 93 93 ) 94 94 ); … … 113 113 114 114 return $response; 115 } 116 117 /** 118 * Only allow admins to modify the content setting. 119 * 120 * @return bool 121 */ 122 public function permission_callback(){ 123 return current_user_can( 'manage_options' ); 115 124 } 116 125 -
yikes-inc-easy-custom-woocommerce-product-tabs/trunk/public/class.yikes-woo-tabs-display.php
r2260682 r2746060 37 37 */ 38 38 public function add_custom_product_tabs( $tabs ) { 39 global $product; 39 $product = wc_get_product(); 40 41 if ( empty( $product ) ) { 42 return $tabs; 43 } 40 44 41 45 $product_id = method_exists( $product, 'get_id' ) === true ? $product->get_id() : $product->ID; -
yikes-inc-easy-custom-woocommerce-product-tabs/trunk/readme.txt
r2734897 r2746060 5 5 Requires at least: 3.8 6 6 Tested up to: 6.0 7 Stable tag: 1.7. 77 Stable tag: 1.7.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 75 75 76 76 == Changelog == 77 78 = 1.7.8 - June 21st, 2022 = 79 * Address minor vulnerability 80 * Fix issue related to Divi Builder 77 81 78 82 = 1.7.7 - March 8th, 2021 =
Note: See TracChangeset
for help on using the changeset viewer.