PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 3.11.10
Visualizer – Tables & Charts Manager with Built-in AI Generator v3.11.10
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | vendor/codeinwp/themeisle-sdk/load.php +22 -1 3.10.133.11.10 View file →
@@ -13,9 +13,9 @@
13 13 if ( ! defined( 'ABSPATH' ) ) {
14 14 return;
15 15 }
16 16 // Current SDK version and path.
17 -$themeisle_sdk_version = '3.3.20';
17 +$themeisle_sdk_version = '3.3.44';
18 18 $themeisle_sdk_path = dirname( __FILE__ );
19 19
20 20 global $themeisle_sdk_max_version;
21 21 global $themeisle_sdk_max_path;
@@ -90,8 +90,9 @@
90 90 $current_page = isset( $screen->id ) ? $screen->id : ( ( $screen === null ) ? 'non-admin' : $screen );
91 91 $current_page = sanitize_key( str_replace( '.php', '', $current_page ) );
92 92 }
93 93 $location = $location === null ? $current_page : $location;
94 + $is_upgrade_url = strpos( $url, '/upgrade' ) !== false;
94 95 $content = sanitize_key(
95 96 trim(
96 97 str_replace(
97 98 [
@@ -120,8 +121,28 @@
120 121 $query_arguments,
121 122 $url
122 123 )
123 124 );
125 +
126 + /**
127 + * Check if there is an affiliate URL for this upgrade link, if so use it.
128 + */
129 + if ( $is_upgrade_url ) {
130 + $option_content_key = str_replace( '-', '_', $filter_key );
131 + $theme_upgrade_option_name = 'themeisle_af_' . $option_content_key . '_themes_upgrade';
132 + $plugin_upgrade_option_name = 'themeisle_af_' . $option_content_key . '_plugins_upgrade';
133 +
134 + $theme_option_url = get_option( $theme_upgrade_option_name, false );
135 + if ( ! empty( $theme_option_url ) ) {
136 + $utmify_url = esc_url_raw( $theme_option_url );
137 + }
138 + $plugin_option_url = get_option( $plugin_upgrade_option_name, false );
139 + if ( ! empty( $plugin_option_url ) ) {
140 + $utmify_url = esc_url_raw( $plugin_option_url );
141 + }
142 + }
143 +
144 +
124 145
125 146 return apply_filters( 'tsdk_utmify_url_' . $filter_key, $utmify_url, $url );
126 147 }
127 148