PluginProbe
TablePress – Tables in WordPress made easy / 3.0
TablePress – Tables in WordPress made easy v3.0
3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 2.4.4 All 44 releases
← All changes | libraries/freemius/start.php +7 -2 2.23.0 View file →
@@ -14,9 +14,9 @@
14 14 * Freemius SDK Version.
15 15 *
16 16 * @var string
17 17 */
18 - $this_sdk_version = '2.6.0';
18 + $this_sdk_version = '2.9.0';
19 19
20 20 #region SDK Selection Logic --------------------------------------------------------------------
21 21
22 22 /**
@@ -46,8 +46,11 @@
46 46 */
47 47 $file_path = fs_normalize_path( __FILE__ );
48 48 $fs_root_path = dirname( $file_path );
49 49
50 + // @todo: Remove this code after a few months when WP 6.3 usage is low enough.
51 + global $wp_version;
52 +
50 53 if (
51 54 ! function_exists( 'wp_get_current_user' ) &&
52 55 /**
53 56 * `get_stylesheet()` will rely on `wp_get_current_user()` when it is being filtered by `theme-previews.php`. That happens only when the site editor is loaded or when the site editor is sending REST requests.
@@ -52,11 +55,13 @@
52 55 /**
53 56 * `get_stylesheet()` will rely on `wp_get_current_user()` when it is being filtered by `theme-previews.php`. That happens only when the site editor is loaded or when the site editor is sending REST requests.
54 57 * @see theme-previews.php:wp_get_theme_preview_path()
55 58 *
56 - * @todo If this behavior is fixed in the core, we will remove this workaround.
59 + * @todo This behavior is already fixed in the core (WP 6.3.2+), and this code can be removed after a few months when WP 6.3 usage is low enough.
57 60 * @since WP 6.3.0
58 61 */
62 + version_compare( $wp_version, '6.3', '>=' ) &&
63 + version_compare( $wp_version, '6.3.1', '<=' ) &&
59 64 (
60 65 'site-editor.php' === basename( $_SERVER['SCRIPT_FILENAME'] ) ||
61 66 (
62 67 function_exists( 'wp_is_json_request' ) &&