PluginProbe
WPIDE – File Manager & Code Editor / 3.5.9
WPIDE – File Manager & Code Editor v3.5.9
3.5.9 3.5.8 3.5.7 2.0.14 2.0.15 2.0.16 2.0.2 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.1 2.2 2.3 2.3.1 2.3.2 2.4.0 2.5 2.6 3.0 3.1 3.2 3.3 All 55 releases
← All changes | freemius/templates/contact.php +10 -35 3.23.5.9 View file →
@@ -6,16 +6,22 @@
6 6 * @since 1.0.3
7 7 */
8 8
9 9 /**
10 + * Update (October 9, 2024 by @swashata):
11 + * Following request from the wp.org plugin review team, we have stopped
12 + * embedding the contact form inside an i-frame for wp.org hosted free version
13 + * of plugins. Now they will be opened in a new tab.
14 + *
10 15 * Note for WordPress.org Theme/Plugin reviewer:
11 16 * Freemius is an SDK for plugin and theme developers. Since the core
12 17 * of the SDK is relevant both for plugins and themes, for obvious reasons,
13 18 * we only develop and maintain one code base.
14 19 *
15 - * This code (and page) will not run for wp.org themes (only plugins).
20 + * This code (and page) will not run for wp.org themes or plugins. It will
21 + * run only for premium version of the plugin/theme that is using the SDK.
16 22 *
17 - * In addition, this page loads an i-frame. We intentionally named it 'frame'
23 + * In addition, when this page loads an i-frame. We intentionally named it 'frame'
18 24 * so it will pass the "Theme Check" that is looking for the string "i" . "frame".
19 25 *
20 26 * UPDATE:
21 27 * After ongoing conversations with the WordPress.org TRT we received
@@ -37,10 +43,9 @@
37 43 exit;
38 44 }
39 45
40 46 wp_enqueue_script( 'jquery' );
41 - wp_enqueue_script( 'json2' );
42 - fs_enqueue_local_script( 'postmessage', 'nojquery.ba-postmessage.min.js' );
47 + fs_enqueue_local_script( 'postmessage', 'nojquery.ba-postmessage.js' );
43 48 fs_enqueue_local_script( 'fs-postmessage', 'postmessage.js' );
44 49 fs_enqueue_local_style( 'fs_checkout', '/admin/common.css' );
45 50
46 51 /**
@@ -49,31 +54,10 @@
49 54 */
50 55 $fs = freemius( $VARS['id'] );
51 56 $slug = $fs->get_slug();
52 57
53 - $context_params = array(
54 - 'plugin_id' => $fs->get_id(),
55 - 'plugin_public_key' => $fs->get_public_key(),
56 - 'plugin_version' => $fs->get_plugin_version(),
57 - );
58 + $query_params = FS_Contact_Form_Manager::instance()->get_query_params( $fs );
58 59
59 -
60 - // Get site context secure params.
61 - if ( $fs->is_registered() ) {
62 - $context_params = array_merge( $context_params, FS_Security::instance()->get_context_params(
63 - $fs->get_site(),
64 - time(),
65 - 'contact'
66 - ) );
67 - }
68 -
69 - $query_params = array_merge( $_GET, array_merge( $context_params, array(
70 - 'plugin_version' => $fs->get_plugin_version(),
71 - 'wp_login_url' => wp_login_url(),
72 - 'site_url' => get_site_url(),
73 -// 'wp_admin_css' => get_bloginfo('wpurl') . "/wp-admin/load-styles.php?c=1&load=buttons,wp-admin,dashicons",
74 - ) ) );
75 -
76 60 $view_params = array(
77 61 'id' => $VARS['id'],
78 62 'page' => strtolower( $fs->get_text_inline( 'Contact', 'contact' ) ),
79 63 );
@@ -116,13 +100,4 @@
116 100 <?php
117 101 if ( $has_tabs ) {
118 102 $fs->_add_tabs_after_content();
119 103 }
120 -
121 - $params = array(
122 - 'page' => 'contact',
123 - 'module_id' => $fs->get_id(),
124 - 'module_type' => $fs->get_module_type(),
125 - 'module_slug' => $slug,
126 - 'module_version' => $fs->get_plugin_version(),
127 - );
128 - fs_require_template( 'powered-by.php', $params );