tag, then the tag will be highlighted using a class named aphph-pretag-focused * so we need to remove it before save into database */ add_action( 'content_save_pre', array($this, 'clean_tag'), 10, 2 ); $this->options = get_option(APHPH_OPTION); $this->options_phdata = get_option(APHPH_OPTION_PHDATA); } public function admin_comments_form ($screen) { if ($screen->id == 'edit-comments') { $this->add_modal_dialog(); } } public function add_modal_dialog() { $lang_list = $this->options['lang-used']; $lang_options = ''; foreach ($lang_list as $lang) { if ($lang == 'core') continue; $item = $this->options_phdata['lang-list'][$lang]; if ($item) { $title = $item; if (is_array($item)) { $title = $item['title']; if (key_exists('aliasTitles', $item)) { $title .= ' / ' . join($item['aliasTitles'], ' / '); } } $selected = $lang == $this->options['default-lang'] ? ' selected="selected"' : ''; $lang_options .= ''; } } echo '