Changeset 3354189
- Timestamp:
- 09/01/2025 06:10:08 PM (4 months ago)
- Location:
- disable-cart-fragments/trunk
- Files:
-
- 2 edited
-
disable-cart-fragments.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
disable-cart-fragments/trunk/disable-cart-fragments.php
r2931115 r3354189 5 5 * Plugin URI: https://wordpress.org/plugins/disable-cart-fragments/ 6 6 * Description: A better way to disable WooCommerce's cart fragments script, and re-enqueue it when the cart is updated. Works with all caching plugins. 7 * Version: 2. 37 * Version: 2.4 8 8 * Author: Optimocha 9 9 * Author URI: https://optimocha.com/ … … 11 11 * Requires PHP: 5.6 or later 12 12 * WC requires at least: 2.0 13 * WC tested up to: 7.8.013 * WC tested up to: 10.1.2 14 14 * Text Domain: disable-cart-fragments 15 15 * … … 30 30 defined( 'ABSPATH' ) or die(); 31 31 32 if( !defined( 'OPTIMOCHA_DCF_PATH' ) ) { 33 define( 'OPTIMOCHA_DCF_PATH', plugin_dir_path( __FILE__ ) ); 34 } 35 36 if( !defined( 'OPTIMOCHA_DCF_BASENAME' ) ) { 37 define( 'OPTIMOCHA_DCF_BASENAME', plugin_basename( __FILE__ ) ); 38 } 39 40 if( !defined( 'OPTIMOCHA_DCF_DOMAIN' ) ) { 41 define( 'OPTIMOCHA_DCF_DOMAIN', 'disable-cart-fragments' ); 42 } 43 44 require OPTIMOCHA_DCF_PATH . "/DCF_Notice_Manager.php"; 32 require plugin_dir_path( __FILE__ ) . "/DCF_Notice_Manager.php"; 45 33 46 34 add_action( 'before_woocommerce_init', function() { … … 56 44 function __construct(){ 57 45 58 add_filter( "plugin_action_links_" . OPTIMOCHA_DCF_BASENAME, array( $this, 'settings_links' ) );46 add_filter( "plugin_action_links_" . plugin_basename( __FILE__ ), array( $this, 'settings_links' ) ); 59 47 60 add_action( 'admin_init', [ $this, 'set_pro_service_notice' ]);48 add_action( 'admin_init', [ $this, 'set_pro_service_notice' ] ); 61 49 62 50 if( $this->dcf_is_plugin_active( 'speed-booster-pack/speed-booster-pack.php' ) ) { … … 89 77 ?> 90 78 <div class="notice notice-error"> 91 <p><?php _e( "We detected that you're already using another plugin of ours: Speed Booster Pack. Since SBP already has the same \"Disable cart fragments\" feature, you can safely deactivate the Disable Cart Fragments plugin and keep using Speed Booster Pack! :)", OPTIMOCHA_DCF_DOMAIN); ?>79 <p><?php _e( "We detected that you're already using another plugin of ours: Speed Booster Pack. Since SBP already has the same \"Disable cart fragments\" feature, you can safely deactivate the Disable Cart Fragments plugin and keep using Speed Booster Pack! :)", disable-cart-fragments ); ?> 92 80 </p> 93 81 </div> … … 141 129 142 130 function settings_links( $links ) { 143 $pro_link = ' <a href="https://optimocha.com/?ref=disable-cart-fragments" target="_blank">Pro Help</a > ';131 $pro_link = ' <a href="https://optimocha.com/?ref=disable-cart-fragments" target="_blank">Pro Help</a> '; 144 132 array_unshift( $links, $pro_link ); 145 133 … … 152 140 153 141 new \DCF\DCF_Notice_Manager(); 154 \DCF\DCF_Notice_Manager::display_notice( 'dcf_pro_service', '<p><a href="https://optimocha.com/?ref=disable-cart-fragments" target="_blank">' . __( "If you need any help optimizing your website speed, if you're ready to <em>invest in</em> speed optimization, you can visit Optimocha.com by clicking here, and have us speed up your site!", OPTIMOCHA_DCF_DOMAIN ) . '</a></p>', 'info');142 \DCF\DCF_Notice_Manager::display_notice( 'dcf_pro_service', '<p><a href="https://optimocha.com/?ref=disable-cart-fragments" target="_blank">' . __( "If you need any help optimizing your website speed, if you're ready to <em>invest in</em> speed optimization, you can visit Optimocha.com by clicking here, and have us speed up your site!", disable-cart-fragments ) . '</a></p>', 'info' ); 155 143 } 156 144 } -
disable-cart-fragments/trunk/readme.txt
r2931115 r3354189 3 3 Tags: disable cart fragments, woocommerce, cart fragments, woocommerce cart fragments 4 4 Requires at least: 4.6 5 Tested up to: 6. 25 Tested up to: 6.8.2 6 6 Requires PHP: 5.6 7 7 WC requires at least: 2.0 8 WC tested up to: 7.8.09 Stable tag: 2. 38 WC tested up to: 10.1.2 9 Stable tag: 2.4 10 10 License: GPLv3 or later 11 11 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 44 44 45 45 == Changelog == 46 47 = 2.4 = 48 * Tested and ensured compatibility with the latest versions of WordPress, WooCommerce and PHP. 49 * Cleaned up the code a bit. 46 50 47 51 = 2.3 =
Note: See TracChangeset
for help on using the changeset viewer.