PluginProbe
Code Block Pro – Beautiful Syntax Highlighting / 1.13.0
Code Block Pro – Beautiful Syntax Highlighting v1.13.0
1.27.1 1.27.2 1.27.3 1.27.4 1.27.5 1.27.6 1.27.7 1.28.0 1.3.0 1.4.0 1.5.0 1.5.1 1.5.2 1.6.0 1.7.0 1.8.0 1.9.0 1.9.1 1.9.2 1.9.3 trunk 1.1.0 1.10.0 1.11.0 1.11.1 All 63 releases
← All changes | php/settings.php +19 -0 1.9.01.13.0 View file →
@@ -6,8 +6,9 @@
6 6 add_action('rest_api_init', 'code_block_pro_register_settings');
7 7 if (!function_exists('code_block_pro_register_settings')) {
8 8 function code_block_pro_register_settings()
9 9 {
10 + // This one should have been named "theme settings" or simliar
10 11 register_setting('code_block_pro_settings', 'code_block_pro_settings', [
11 12 'type' => 'object',
12 13 'show_in_rest' => [
13 14 'schema' => [
@@ -22,8 +23,26 @@
22 23 'previousFooterType' => [ 'type' => ['string', 'null']],
23 24 'previousClampFonts' => [ 'type' => ['boolean', 'null']],
24 25 'previousDisablePadding' => [ 'type' => ['boolean', 'null']],
25 26 'previousLineNumbers' => [ 'type' => ['boolean', 'null']],
27 + ],
28 + ],
29 + ],
30 + ]);
31 + register_setting('code_block_pro_settings_2', 'code_block_pro_settings_2', [
32 + 'type' => 'object',
33 + 'default' => [
34 + 'version' => 0,
35 + 'seenNotices' => [],
36 + 'hiddenThemes' => [],
37 + ],
38 + 'show_in_rest' => [
39 + 'schema' => [
40 + 'type' => 'object',
41 + 'properties' => [
42 + "version" => [ 'type' => ['string', 'number'] ],
43 + 'seenNotices' => [ 'type' => ['array', 'null']],
44 + 'hiddenThemes' => [ 'type' => ['array', 'null']],
26 45 ],
27 46 ],
28 47 ],
29 48 ]);