← 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 | } |