Skip to content

Commit

Permalink
some code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
otrok7 committed Jul 30, 2019
1 parent 21a8e76 commit f885a14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bmlt-meeting-list.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,10 @@ function my_register_mce_button( $buttons ) {

function my_custom_plugins () {
global $my_admin_page;
$plugins_array = array();
$screen = get_current_screen();
if ( $screen->id == $my_admin_page ) {
$plugins = array('table', 'code', 'contextmenu' ); //Add any more plugins you want to load here
$plugins_array = array();
//Build the response - the key is the plugin name, value is the URL to the plugin JS
foreach ($plugins as $plugin ) {
$plugins_array[ $plugin ] = plugins_url('tinymce/', __FILE__) . $plugin . '/plugin.min.js';
Expand Down Expand Up @@ -2290,7 +2290,7 @@ function fillUnsetOptions() {
if ( !isset($this->options['cache_time']) || strlen(trim($this->options['cache_time'])) == 0 ) {
$this->options['cache_time'] = 0;
}
if ( !isset($this->options['extra_meetings']) || count($this->options['extra_meetings']) == 0 || $this->options['extra_meetings'] == '') {
if ( !isset($this->options['extra_meetings']) || $this->options['extra_meetings'] == '' || count($this->options['extra_meetings']) == 0 ) {
$this->options['extra_meetings'] = '';
} else {
$this->options['extra_meetings_enabled'] = 1;
Expand Down

0 comments on commit f885a14

Please sign in to comment.