PluginProbe
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More / 2.6.1
Content Control – The Ultimate Content Restriction Plugin! Restrict Content, Create Conditional Blocks & More v2.6.1
trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.10 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.1.8 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 All 47 releases
← All changes | classes/Controllers/Admin/SettingsPage.php +10 -1 2.0.42.6.1 View file →
@@ -32,8 +32,10 @@
32 32 }
33 33
34 34 /**
35 35 * Register admin options pages.
36 + *
37 + * @return void
36 38 */
37 39 public function register_page() {
38 40 add_options_page(
39 41 __( 'Content Control', 'content-control' ),
@@ -44,9 +46,11 @@
44 46 );
45 47 }
46 48
47 49 /**
48 - * Render settings page title & container..
50 + * Render settings page title & container.
51 + *
52 + * @return void
49 53 */
50 54 public function render_page() {
51 55 ?>
52 56 <div id="content-control-root-container"></div>
@@ -57,13 +61,18 @@
57 61 /**
58 62 * Enqueue assets for the settings page.
59 63 *
60 64 * @param string $hook Page hook name.
65 + *
66 + * @return void
61 67 */
62 68 public function enqueue_scripts( $hook ) {
63 69 if ( 'settings_page_content-control-settings' !== $hook ) {
64 70 return;
65 71 }
72 +
73 + wp_enqueue_editor();
74 + wp_tinymce_inline_scripts();
66 75
67 76 wp_enqueue_script( 'content-control-settings-page' );
68 77 }
69 78