PluginProbe
codoc / 0.9.57
codoc v0.9.57
0.9.8.8 0.9.8.9 0.9.9 0.9.9.1 trunk 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.8.1 0.8.2 0.8.3 0.8.4 0.8.6 0.8.7 0.8.8 0.8.9 0.9 0.9.1 0.9.10 0.9.11 All 114 releases
← All changes | src/init.php +0 -12 trunk0.9.57 View file →
@@ -35,12 +35,8 @@
35 35 // Pass necessary options to JavaScript
36 36 global $_CODOC;
37 37 $auth_info = get_option(CODOC_AUTHINFO_OPTION_NAME);
38 38
39 - $codoc_settings = get_option(CODOC_SETTINGS_OPTION_NAME);
40 - $block_defaults_raw = isset($codoc_settings['block_defaults']) ? $codoc_settings['block_defaults'] : '';
41 - $block_defaults_decoded = json_decode($block_defaults_raw, true);
42 - $block_defaults = is_array($block_defaults_decoded) ? $block_defaults_decoded : new stdClass();
43 39 wp_localize_script('codoc-block-js', 'OPTIONS', array(
44 40 'codoc_url' => $_CODOC->get_codoc_url(),
45 41 'codoc_usercode' => get_option(CODOC_USERCODE_OPTION_NAME),
46 42 'codoc_plugin_version' => CODOC_PLUGIN_VERSION,
@@ -47,16 +43,8 @@
47 43 'codoc_sdk_path' => defined('CODOC_SDK_PATH') ? CODOC_SDK_PATH : '/sdk/js/sdk.v1.js',
48 44 'codoc_account_is_pro' => isset($auth_info['account_is_pro']) ? $auth_info['account_is_pro'] : 0,
49 45 'codoc_currency_code' => isset($auth_info['currency_code']) ? $auth_info['currency_code'] : 'yen',
50 46 'codoc_currency_decimal_places' => isset($auth_info['currency_decimal_places']) ? $auth_info['currency_decimal_places'] : 0,
51 - 'codoc_block_defaults' => $block_defaults,
52 - 'codoc_max_lengths' => array(
53 - 'title' => CODOC_MAX_TITLE_LENGTH,
54 - 'body_free' => CODOC_MAX_BODY_FREE_LENGTH,
55 - 'body_paywalled' => CODOC_MAX_BODY_PAYWALLED_LENGTH,
56 - 'body' => CODOC_MAX_BODY_LENGTH,
57 - 'binded_url' => CODOC_MAX_BINDED_URL_LENGTH,
58 - ),
59 47 ));
60 48
61 49 // Set script translations
62 50 wp_set_script_translations('codoc-block-js', 'codoc', plugin_dir_path( dirname(__FILE__) ) . 'languages');