Changeset 3042938
- Timestamp:
- 02/29/2024 08:19:07 AM (2 years ago)
- Location:
- contractor-commerce-integration/tags/1.0.9
- Files:
-
- 3 edited
-
README.txt (modified) (1 diff)
-
contractor-commerce.php (modified) (6 diffs)
-
includes/class-contractor-commerce.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
contractor-commerce-integration/tags/1.0.9/README.txt
r3042726 r3042938 1 1 === Contractor Commerce Integration === 2 Contributors: pjhile 2 Contributors: pjhile, kirilldakhnyuk 3 3 Tags: ecommerce, hvac, contractor 4 4 Requires at least: 3.0.1 5 5 Tested up to: 6.3 6 Stable tag: 1. 0.96 Stable tag: 1.1.0 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later -
contractor-commerce-integration/tags/1.0.9/contractor-commerce.php
r3042726 r3042938 17 17 * Plugin URI: https://bitbucket.org/hvactechnologies/contractor-commerce-integration 18 18 * Description: Adds Contractor Commerce to your site. 19 * Version: 1. 0.919 * Version: 1.1.0 20 20 * Author: Contractor Commerce 21 21 * Author URI: https://www.contractorcommerce.com/ … … 38 38 * Rename this for your plugin and update it as you release new versions. 39 39 */ 40 define( 'CONTRACTOR_COMMERCE_VERSION', '1. 0.9' );40 define( 'CONTRACTOR_COMMERCE_VERSION', '1.1.0' ); 41 41 42 42 /** … … 83 83 } 84 84 85 function contractor_commerce_exlude_query_vars( $query_vars) {86 if ( get_option( 'concom_settings' ) && ! isset( get_option( 'concom_settings' )['concom_select_field_1']) ) {87 return $ query_vars;85 function isPluginSetup ( $defaultReturn = null ) { 86 if ( get_option( 'concom_settings' ) && ! isset( get_option( 'concom_settings' )['concom_select_field_1'] ) ) { 87 return $defaultReturn; 88 88 } 89 89 90 90 if ( ! isset(get_option( 'concom_settings' )['concom_seo_checkbox']) ) { 91 return $ query_vars;91 return $defaultReturn; 92 92 } 93 } 94 95 function contractor_commerce_exlude_query_vars( $query_vars ) { 96 isPluginSetup( $query_vars ); 93 97 94 98 $uri = get_page_uri( get_option( 'concom_settings' )['concom_select_field_1']); … … 104 108 105 109 function contractor_commerce_rewrite_rules() { 106 if ( get_option( 'concom_settings' ) && ! isset(get_option( 'concom_settings' )['concom_select_field_1']) ) { 107 return; 108 } 109 110 if ( ! isset(get_option( 'concom_settings' )['concom_seo_checkbox']) ) { 111 return; 112 } 110 isPluginSetup(); 113 111 114 112 $shop_page_name = get_post(get_option( 'concom_settings' )['concom_select_field_1'])->post_name; … … 120 118 121 119 add_action ( 'init', function () { 122 if ( get_option( 'concom_settings' ) && ! isset(get_option( 'concom_settings' )['concom_select_field_1']) ) { 123 return; 124 } 125 126 if ( ! isset(get_option( 'concom_settings' )['concom_seo_checkbox']) ) { 127 return; 128 } 120 isPluginSetup(); 129 121 130 122 $shop_page_name = get_post(get_option( 'concom_settings' )['concom_select_field_1'])->post_name; … … 150 142 151 143 add_action( 'wp_head', function () { 152 if ( get_option( 'concom_settings' ) && ! isset( get_option( 'concom_settings' )['concom_select_field_1'] ) ) { 153 return; 154 } 155 156 if ( ! isset(get_option( 'concom_settings' )['concom_seo_checkbox']) ) { 157 return; 158 } 144 isPluginSetup(); 159 145 160 146 if ( get_the_ID() == get_option( 'concom_settings' )['concom_select_field_1'] ) { -
contractor-commerce-integration/tags/1.0.9/includes/class-contractor-commerce.php
r2661119 r3042938 71 71 $this->version = CONTRACTOR_COMMERCE_VERSION; 72 72 } else { 73 $this->version = '1. 0.0';73 $this->version = '1.1.0'; 74 74 } 75 75 $this->plugin_name = 'contractor-commerce';
Note: See TracChangeset
for help on using the changeset viewer.