| @@ -12,10 +12,8 @@ | ||
| 12 | 12 | |
| 13 | 13 | $fs_options = FS_Options::instance( WP_FS__ACCOUNTS_OPTION_NAME, true ); |
| 14 | 14 | $scheduled_crons = array(); |
| 15 | 15 | |
| 16 | - $is_fs_debug_page = ( isset( $VARS['is_fs_debug_page'] ) && $VARS['is_fs_debug_page'] ); | |
| 17 | - | |
| 18 | 16 | $module_types = array( |
| 19 | 17 | WP_FS__MODULE_TYPE_PLUGIN, |
| 20 | 18 | WP_FS__MODULE_TYPE_THEME |
| 21 | 19 | ); |
| @@ -20,9 +18,9 @@ | ||
| 20 | 18 | WP_FS__MODULE_TYPE_THEME |
| 21 | 19 | ); |
| 22 | 20 | |
| 23 | 21 | foreach ( $module_types as $module_type ) { |
| 24 | - $modules = fs_get_entities( $fs_options->get_option( $module_type . 's' ), FS_Plugin::get_class_name() ); | |
| 22 | + $modules = $fs_options->get_option( $module_type . 's' ); | |
| 25 | 23 | if ( is_array( $modules ) && count( $modules ) > 0 ) { |
| 26 | 24 | foreach ( $modules as $slug => $data ) { |
| 27 | 25 | if ( WP_FS__MODULE_TYPE_THEME === $module_type ) { |
| 28 | 26 | $current_theme = wp_get_theme(); |
| @@ -74,19 +72,10 @@ | ||
| 74 | 72 | } |
| 75 | 73 | |
| 76 | 74 | $sec_text = fs_text_x_inline( 'sec', 'seconds' ); |
| 77 | 75 | ?> |
| 78 | -<?php if ( $is_fs_debug_page ) : ?> | |
| 79 | -<h2> | |
| 80 | - <button class="fs-debug-table-toggle-button" aria-expanded="true"> | |
| 81 | - <span class="fs-debug-table-toggle-icon">▼</span> | |
| 82 | - </button> | |
| 83 | - <?php fs_esc_html_echo_inline( 'Scheduled Crons' ) ?> | |
| 84 | -</h2> | |
| 85 | -<?php else : ?> | |
| 86 | 76 | <h1><?php fs_esc_html_echo_inline( 'Scheduled Crons' ) ?></h1> |
| 87 | -<?php endif ?> | |
| 88 | -<table class="widefat fs-debug-table"> | |
| 77 | +<table class="widefat"> | |
| 89 | 78 | <thead> |
| 90 | 79 | <tr> |
| 91 | 80 | <th><?php fs_esc_html_echo_inline( 'Slug' ) ?></th> |
| 92 | 81 | <th><?php fs_esc_html_echo_inline( 'Module' ) ?></th> |