PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.7
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.7
16.3-a.5 16.3-a.7 16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 All 506 releases
← All changes | jetpack_vendor/automattic/jetpack-backup/src/class-initial-state.php +2 -2 13.0.2 → 16.3-a.7 View file →
@@ -8,9 +8,9 @@
8 8 // After changing this file, consider increasing the version number ("VXXX") in all the files using this namespace, in
9 9 // order to ensure that the specific version of this file always get loaded. Otherwise, Jetpack autoloader might decide
10 10 // to load an older/newer version of the class (if, for example, both the standalone and bundled versions of the plugin
11 11 // are installed, or in some other cases).
12 -namespace Automattic\Jetpack\Backup\V0001;
12 +namespace Automattic\Jetpack\Backup\V0005;
13 13
14 14 use Automattic\Jetpack\Connection\Plugin_Storage as Connection_Plugin_Storage;
15 15 use Automattic\Jetpack\Status;
16 16 use Jetpack_Options;
@@ -63,7 +63,7 @@
63 63 */
64 64 public function render() {
65 65 add_action( 'jetpack_use_iframe_authorization_flow', '__return_true' );
66 66
67 - return 'var JPBACKUP_INITIAL_STATE=JSON.parse(decodeURIComponent("' . rawurlencode( wp_json_encode( $this->get_data() ) ) . '"));';
67 + return 'var JPBACKUP_INITIAL_STATE=' . wp_json_encode( $this->get_data(), JSON_UNESCAPED_SLASHES | JSON_HEX_TAG | JSON_HEX_AMP ) . ';';
68 68 }
69 69 }