Esempio n. 1
0
 public function getPanel()
 {
     $output = null;
     if (is_user_logged_in()) {
         $currentUser = wp_get_current_user();
         $output = parent::getTablePanel(array(__("ID") => $currentUser->ID, __("Login") => $currentUser->user_login, __("E-mail") => $currentUser->user_email, __("Display Name") => $currentUser->display_name, __("First Name") => $currentUser->first_name, __("Last Name") => $currentUser->last_name, __("Roles") => Debugger::dump($currentUser->roles, true), __("Allcaps") => Debugger::dump($currentUser->allcaps, true)));
     }
     return $output;
 }
Esempio n. 2
0
 public function getPanel()
 {
     /* @var $wpdb \WP */
     global $wp;
     global $wp_version;
     global $wp_db_version;
     global $tinymce_version;
     global $required_php_version;
     global $required_mysql_version;
     global $pagenow;
     $output = parent::getTablePanel(array(__("WP Version") => $wp_version, __("WP DB Version ") => $wp_db_version, __("TinyMCE Version ") => $tinymce_version, __("Required PHP Version") => $required_php_version, __("Required MySQL Version") => $required_mysql_version, __("Page Now") => $pagenow, __("WP") => Debugger::dump($wp, true)));
     return $output;
 }