| | 1 | <?php |
| | 2 | /** |
| | 3 | * Get system status for debugging and support. |
| | 4 | * |
| | 5 | * @package WordPress |
| | 6 | * @subpackage Administration |
| | 7 | */ |
| | 8 | |
| | 9 | /** WordPress Administration Bootstrap */ |
| | 10 | require_once( dirname( __FILE__ ) . '/admin.php' ); |
| | 11 | |
| | 12 | if ( ! current_user_can( 'update_core' ) ) { |
| | 13 | wp_die( __( 'Sorry, you do not have permission to access this page.' ) ); |
| | 14 | } |
| | 15 | |
| | 16 | global $wpdb; |
| | 17 | |
| | 18 | $title = __( 'System information' ); |
| | 19 | |
| | 20 | require_once( ABSPATH . 'wp-admin/admin-header.php' ); |
| | 21 | |
| | 22 | $info = array( |
| | 23 | 'wp-core' => array( |
| | 24 | 'label' => __( 'WordPress' ), |
| | 25 | 'fields' => array( |
| | 26 | array( |
| | 27 | 'label' => __( 'Version' ), |
| | 28 | 'value' => get_bloginfo( 'version' ) |
| | 29 | ), |
| | 30 | array( |
| | 31 | 'label' => __( 'Language' ), |
| | 32 | 'value' => get_locale() |
| | 33 | ), |
| | 34 | array( |
| | 35 | 'label' => __( 'Home URL' ), |
| | 36 | 'value' => get_bloginfo( 'url' ), |
| | 37 | 'private' => true |
| | 38 | ), |
| | 39 | array( |
| | 40 | 'label' => __( 'Site URL' ), |
| | 41 | 'value' => get_bloginfo( 'wpurl' ), |
| | 42 | 'private' => true |
| | 43 | ), |
| | 44 | array( |
| | 45 | 'label' => __( 'Is this site using HTTPS' ), |
| | 46 | 'value' => ( is_ssl() ? __( 'Enabled' ) : __( 'Disabled' ) ) |
| | 47 | ), |
| | 48 | array( |
| | 49 | 'label' => __( 'Is the theme directory writable' ), |
| | 50 | 'value' => ( wp_is_writable( get_template_directory() . '/..' ) ? __( 'Yes' ) : __( 'No' ) ) |
| | 51 | ), |
| | 52 | array( |
| | 53 | 'label' => __( 'Is the plugin directory writable' ), |
| | 54 | 'value' => ( wp_is_writable( WP_PLUGIN_DIR ) ? __( 'Yes' ) : __( 'No' ) ) |
| | 55 | ), |
| | 56 | array( |
| | 57 | 'label' => __( 'Is this a multisite' ), |
| | 58 | 'value' => ( is_multisite() ? __( 'Yes' ) : __( 'No' ) ) |
| | 59 | ) |
| | 60 | ), |
| | 61 | ), |
| | 62 | 'wp-active-theme' => array( |
| | 63 | 'label' => __( 'Active theme' ), |
| | 64 | 'fields' => array() |
| | 65 | ), |
| | 66 | 'wp-themes' => array( |
| | 67 | 'label' => __( 'Other themes' ), |
| | 68 | 'show_count' => true, |
| | 69 | 'fields' => array() |
| | 70 | ), |
| | 71 | 'wp-mu-plugins' => array( |
| | 72 | 'label' => __( 'Must User Plugins' ), |
| | 73 | 'show_count' => true, |
| | 74 | 'fields' => array() |
| | 75 | ), |
| | 76 | 'wp-plugins-active' => array( |
| | 77 | 'label' => __( 'Active Plugins' ), |
| | 78 | 'show_count' => true, |
| | 79 | 'fields' => array() |
| | 80 | ), |
| | 81 | 'wp-plugins-inactive' => array( |
| | 82 | 'label' => __( 'Inactive Plugins' ), |
| | 83 | 'show_count' => true, |
| | 84 | 'fields' => array() |
| | 85 | ), |
| | 86 | 'wp-server' => array( |
| | 87 | 'label' => 'Server', |
| | 88 | 'description' => __( 'The options shown below relate to your server setup. If changes are required, you may need your web host\'s assistance.' ), |
| | 89 | 'fields' => array() |
| | 90 | ), |
| | 91 | 'wp-database' => array( |
| | 92 | 'label' => __( 'Database' ), |
| | 93 | 'fields' => array() |
| | 94 | ), |
| | 95 | 'wp-constants' => array( |
| | 96 | 'label' => __( 'WordPress constants' ), |
| | 97 | 'description' => __( 'These values represent values set in your websites code which affect WordPress in various ways that may be of importance when seeking help with your site.' ), |
| | 98 | 'fields' => array( |
| | 99 | array( |
| | 100 | 'label' => 'WP_DEBUG', |
| | 101 | 'value' => ( ! defined( 'WP_DEBUG' ) ? __( 'Undefined' ) : ( WP_DEBUG ? __( 'Enabled' ) : __( 'Disabled' ) ) ) |
| | 102 | ), |
| | 103 | array( |
| | 104 | 'label' => __( 'WordPress memory limit' ), |
| | 105 | 'value' => ( ! defined( 'WP_MAX_MEMORY_LIMIT' ) ? __( 'Undefined' ) : WP_MAX_MEMORY_LIMIT ) |
| | 106 | ), |
| | 107 | array( |
| | 108 | 'label' => 'WP_DEBUG_DISPLAY', |
| | 109 | 'value' => ( ! defined( 'WP_DEBUG_DISPLAY' ) ? __( 'Undefined' ) : ( WP_DEBUG_DISPLAY ? __( 'Enabled' ) : __( 'Disabled' ) ) ) |
| | 110 | ), |
| | 111 | array( |
| | 112 | 'label' => 'WP_DEBUG_LOG', |
| | 113 | 'value' => ( ! defined( 'WP_DEBUG_LOG' ) ? __( 'Undefined' ) : ( WP_DEBUG_LOG ? __( 'Enabled' ) : __( 'Disabled' ) ) ) |
| | 114 | ), |
| | 115 | array( |
| | 116 | 'label' => 'SCRIPT_DEBUG', |
| | 117 | 'value' => ( ! defined( 'SCRIPT_DEBUG' ) ? __( 'Undefined' ) : ( SCRIPT_DEBUG ? __( 'Enabled' ) : __( 'Disabled' ) ) ) |
| | 118 | ), |
| | 119 | array( |
| | 120 | 'label' => 'WP_CACHE', |
| | 121 | 'value' => ( ! defined( 'WP_CACHE' ) ? __( 'Undefined' ) : ( WP_CACHE ? __( 'Enabled' ) : __( 'Disabled' ) ) ) |
| | 122 | ), |
| | 123 | array( |
| | 124 | 'label' => 'CONCATENATE_SCRIPTS', |
| | 125 | 'value' => ( ! defined( 'CONCATENATE_SCRIPTS' ) ? __( 'Undefined' ) : ( CONCATENATE_SCRIPTS ? __( 'Enabled' ) : __( 'Disabled' ) ) ) |
| | 126 | ), |
| | 127 | array( |
| | 128 | 'label' => 'COMPRESS_SCRIPTS', |
| | 129 | 'value' => ( ! defined( 'COMPRESS_SCRIPTS' ) ? __( 'Undefined' ) : ( COMPRESS_SCRIPTS ? __( 'Enabled' ) : __( 'Disabled' ) ) ) |
| | 130 | ), |
| | 131 | array( |
| | 132 | 'label' => 'COMPRESS_CSS', |
| | 133 | 'value' => ( ! defined( 'COMPRESS_CSS' ) ? __( 'Undefined' ) : ( COMPRESS_CSS ? __( 'Enabled' ) : __( 'Disabled' ) ) ) |
| | 134 | ), |
| | 135 | array( |
| | 136 | 'label' => 'WP_LOCAL_DEV', |
| | 137 | 'value' => ( ! defined( 'WP_LOCAL_DEV' ) ? __( 'Undefined' ) : ( WP_LOCAL_DEV ? __( 'Enabled' ) : __( 'Disabled' ) ) ) |
| | 138 | ) |
| | 139 | ) |
| | 140 | ) |
| | 141 | ); |
| | 142 | |
| | 143 | if ( is_multisite() ) { |
| | 144 | $network_query = new WP_Network_Query(); |
| | 145 | $network_ids = $network_query->query( array( |
| | 146 | 'fields' => 'ids', |
| | 147 | 'number' => 100, |
| | 148 | 'no_found_rows' => false, |
| | 149 | ) ); |
| | 150 | |
| | 151 | $site_count = 0; |
| | 152 | foreach ( $network_ids as $network_id ) { |
| | 153 | $site_count += get_blog_count( $network_id ); |
| | 154 | } |
| | 155 | |
| | 156 | $info['wp-core']['fields'][] = array( |
| | 157 | 'label' => __( 'User Count' ), |
| | 158 | 'value' => get_user_count() |
| | 159 | ); |
| | 160 | $info['wp-core']['fields'][] = array( |
| | 161 | 'label' => __( 'Site Count' ), |
| | 162 | 'value' => $site_count |
| | 163 | ); |
| | 164 | $info['wp-core']['fields'][] = array( |
| | 165 | 'label' => __( 'Network Count' ), |
| | 166 | 'value' => $network_query->found_networks |
| | 167 | ); |
| | 168 | } else { |
| | 169 | $user_count = count_users(); |
| | 170 | |
| | 171 | $info['wp-core']['fields'][] = array( |
| | 172 | 'label' => __( 'User Count' ), |
| | 173 | 'value' => $user_count['total_users'] |
| | 174 | ); |
| | 175 | } |
| | 176 | |
| | 177 | // Populate the server debug fields |
| | 178 | $info['wp-server']['fields'][] = array( |
| | 179 | 'label' => _( 'Server architecture' ), |
| | 180 | 'value' => ( ! function_exists( 'php_uname' ) ? __( 'Unable to determine architecture' ) : php_uname( 'm' ) ) |
| | 181 | ); |
| | 182 | $info['wp-server']['fields'][] = array( |
| | 183 | 'label' => __( 'PHP Version' ), |
| | 184 | 'value' => phpversion() |
| | 185 | ); |
| | 186 | $info['wp-server']['fields'][] = array( |
| | 187 | 'label' => __( 'PHP SAPI' ), |
| | 188 | 'value' => php_sapi_name() |
| | 189 | ); |
| | 190 | $info['wp-server']['fields'][] = array( |
| | 191 | 'label' => __( 'PHP max input variables' ), |
| | 192 | 'value' => ini_get( 'max_input_vars' ) |
| | 193 | ); |
| | 194 | $info['wp-server']['fields'][] = array( |
| | 195 | 'label' => __( 'PHP time limit' ), |
| | 196 | 'value' => ini_get( 'max_execution_time' ) |
| | 197 | ); |
| | 198 | $info['wp-server']['fields'][] = array( |
| | 199 | 'label' => __( 'PHP memory limit' ), |
| | 200 | 'value' => ini_get( 'memory_limit' ) |
| | 201 | ); |
| | 202 | $info['wp-server']['fields'][] = array( |
| | 203 | 'label' => __( 'Upload max filesize' ), |
| | 204 | 'value' => ini_get( 'upload_max_filesize' ) |
| | 205 | ); |
| | 206 | $info['wp-server']['fields'][] = array( |
| | 207 | 'label' => __( 'PHP post max size' ), |
| | 208 | 'value' => ini_get( 'post_max_size' ) |
| | 209 | ); |
| | 210 | |
| | 211 | $cURL = curl_version(); |
| | 212 | $info['wp-server']['fields'][] = array( |
| | 213 | 'label' => __( 'cURL Version' ), |
| | 214 | 'value' => sprintf( '%s %s', $cURL['version'], $cURL['ssl_version'] ) |
| | 215 | ); |
| | 216 | |
| | 217 | $info['wp-server']['fields'][] = array( |
| | 218 | 'label' => __( 'SUHOSIN installed' ), |
| | 219 | 'value' => ( ( extension_loaded('suhosin') || ( defined( 'SUHOSIN_PATCH' ) && constant( 'SUHOSIN_PATCH' ) ) ) ? __( 'Yes' ) : __( 'No' ) ) |
| | 220 | ); |
| | 221 | |
| | 222 | $info['wp-server']['fields'][] = array( |
| | 223 | 'label' => __( 'Is the Imagick library available' ), |
| | 224 | 'value' => ( extension_loaded( 'imagick' ) ? __( 'Yes' ) : __( 'No' ) ) |
| | 225 | ); |
| | 226 | |
| | 227 | |
| | 228 | // Populate the database debug fields. |
| | 229 | if ( is_resource( $wpdb->dbh ) ) { |
| | 230 | # Old mysql extension |
| | 231 | $extension = 'mysql'; |
| | 232 | } else if ( is_object( $wpdb->dbh ) ) { |
| | 233 | # mysqli or PDO |
| | 234 | $extension = get_class( $wpdb->dbh ); |
| | 235 | } else { |
| | 236 | # Who knows? |
| | 237 | $extension = null; |
| | 238 | } |
| | 239 | |
| | 240 | if ( method_exists( $wpdb, 'db_version' ) ) { |
| | 241 | $server = $wpdb->db_version(); |
| | 242 | } else { |
| | 243 | $server = null; |
| | 244 | } |
| | 245 | |
| | 246 | if ( isset( $wpdb->use_mysqli ) && $wpdb->use_mysqli ) { |
| | 247 | $client_version = mysqli_get_client_version(); |
| | 248 | } else { |
| | 249 | if ( preg_match( '|[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}|', mysql_get_client_info(), $matches ) ) { |
| | 250 | $client_version = $matches[0]; |
| | 251 | } else { |
| | 252 | $client_version = null; |
| | 253 | } |
| | 254 | } |
| | 255 | |
| | 256 | $info['wp-database']['fields'][] = array( |
| | 257 | 'label' => __( 'Extension' ), |
| | 258 | 'value' => $extension |
| | 259 | ); |
| | 260 | $info['wp-database']['fields'][] = array( |
| | 261 | 'label' => __( 'Server version' ), |
| | 262 | 'value' => $server |
| | 263 | ); |
| | 264 | $info['wp-database']['fields'][] = array( |
| | 265 | 'label' => __( 'Client version' ), |
| | 266 | 'value' => $client_version |
| | 267 | ); |
| | 268 | $info['wp-database']['fields'][] = array( |
| | 269 | 'label' => __( 'Database user' ), |
| | 270 | 'value' => $wpdb->dbuser, |
| | 271 | 'private' => true |
| | 272 | ); |
| | 273 | $info['wp-database']['fields'][] = array( |
| | 274 | 'label' => __( 'Database host' ), |
| | 275 | 'value' => $wpdb->dbhost, |
| | 276 | 'private' => true |
| | 277 | ); |
| | 278 | $info['wp-database']['fields'][] = array( |
| | 279 | 'label' => __( 'Database table' ), |
| | 280 | 'value' => $wpdb->dbname, |
| | 281 | 'private' => true |
| | 282 | ); |
| | 283 | $info['wp-database']['fields'][] = array( |
| | 284 | 'label' => __( 'Database prefix' ), |
| | 285 | 'value' => $wpdb->prefix |
| | 286 | ); |
| | 287 | |
| | 288 | |
| | 289 | // List must use plugins if there are any |
| | 290 | $mu_plugins = get_mu_plugins(); |
| | 291 | |
| | 292 | foreach ( $mu_plugins AS $plugin_path => $plugin ) { |
| | 293 | $info['wp-mu-plugins']['fields'][] = array( |
| | 294 | 'label' => $plugin['Name'], |
| | 295 | // translators: %1$s: Plugin version number. %2$s: Plugin author name. |
| | 296 | 'value' => sprintf( __( 'version %1$s by %2$s' ), $plugin['Version'], $plugin['Author'] ) |
| | 297 | ); |
| | 298 | } |
| | 299 | |
| | 300 | |
| | 301 | // List all available plugins |
| | 302 | $plugins = get_plugins(); |
| | 303 | |
| | 304 | foreach ( $plugins AS $plugin_path => $plugin ) { |
| | 305 | $plugin_part = ( is_plugin_active( $plugin_path ) ) ? 'wp-plugins-active' : 'wp-plugins-inactive'; |
| | 306 | |
| | 307 | $info[ $plugin_part ]['fields'][] = array( |
| | 308 | 'label' => $plugin['Name'], |
| | 309 | // translators: %1$s: Plugin version number. %2$s: Plugin author name. |
| | 310 | 'value' => sprintf( __( 'version %1$s by %2$s' ), $plugin['Version'], $plugin['Author'] ) |
| | 311 | ); |
| | 312 | } |
| | 313 | |
| | 314 | |
| | 315 | // Populate the section for the currently active theme |
| | 316 | $active_theme = wp_get_theme(); |
| | 317 | $info['wp-active-theme']['fields'] = array( |
| | 318 | array( |
| | 319 | 'label' => __( 'Name' ), |
| | 320 | 'value' => $active_theme->Name |
| | 321 | ), |
| | 322 | array( |
| | 323 | 'label' => __( 'Version' ), |
| | 324 | 'value' => $active_theme->Version |
| | 325 | ), |
| | 326 | array( |
| | 327 | 'label' => __( 'Author' ), |
| | 328 | 'value' => wp_kses( $active_theme->Author, array() ) |
| | 329 | ), |
| | 330 | array( |
| | 331 | 'label' => __( 'Author website' ), |
| | 332 | 'value' => $active_theme->offsetGet( 'Author URI' ) |
| | 333 | ), |
| | 334 | array( |
| | 335 | 'label' => __( 'Parent theme' ), |
| | 336 | 'value' => ( $active_theme->parent_Theme ?: __( 'Not a child theme' ) ) |
| | 337 | ) |
| | 338 | ); |
| | 339 | |
| | 340 | // Populate a list of all themes available in the install |
| | 341 | $all_themes = wp_get_themes(); |
| | 342 | |
| | 343 | foreach ( $all_themes AS $theme_slug => $theme ) { |
| | 344 | // Ignore the currently active theme from the list of all themes. |
| | 345 | if ( $active_theme->stylesheet == $theme_slug ) { |
| | 346 | continue; |
| | 347 | } |
| | 348 | |
| | 349 | $info['wp-themes']['fields'][] = array( |
| | 350 | // translators: %1$s: Theme name. %2$s: Theme slug. |
| | 351 | 'label' => sprintf( '%1$s (%2$s)', $theme->Name, $theme_slug ), |
| | 352 | // translators: %1$s Theme version number. %2$s: Theme author name. |
| | 353 | 'value' => sprintf( 'version %1$s by %2$s', $theme->Version, wp_kses( $theme->Author, array() ) ) |
| | 354 | ); |
| | 355 | } |
| | 356 | |
| | 357 | |
| | 358 | |
| | 359 | /** |
| | 360 | * Add or modify new debug sections. |
| | 361 | * |
| | 362 | * Plugin or themes may wish to introduce their own debug information without creating additional admin pages for this |
| | 363 | * kind of information as it is rarely needed, they can then utilize this filter to introduce their own sections. |
| | 364 | * |
| | 365 | * This filter intentionally does not include the fields introduced by core as those should always be un-modified |
| | 366 | * and reliable for support related scenarios, take note that the core fields will take priority if a filtered value |
| | 367 | * is trying to use the same array keys. |
| | 368 | * |
| | 369 | * Array keys added by core are all prefixed with `wp-`, plugins and themes are encouraged to use their own slug as |
| | 370 | * a prefix, both for consistency as well as avoiding key collisions. |
| | 371 | * |
| | 372 | * @since 4.9.0 |
| | 373 | * |
| | 374 | * @param array $args { |
| | 375 | * The debug information to be added to the core information page. |
| | 376 | * |
| | 377 | * @type string $label The title for this section of the debug output. |
| | 378 | * @type string $description Optional. A description for your information section which may contain basic HTML |
| | 379 | * markup: `em`, `strong` and `a` for linking to documentation or putting emphasis. |
| | 380 | * @type boolean $show_count Options. If set to `true` the amount of fields will be included in the title for |
| | 381 | * this section. |
| | 382 | * @type array $fields { |
| | 383 | * An associative array containing the data to be displayed. |
| | 384 | * |
| | 385 | * @type string $label The label for this piece of information. |
| | 386 | * @type string $value The output that is of interest for this field. |
| | 387 | * @type boolean $private Optional. If set to `true` the field will not be included in the copy-paste text area |
| | 388 | * on top of the page, allowing you to show, for example, API keys here. |
| | 389 | * } |
| | 390 | * } |
| | 391 | */ |
| | 392 | $external_info = apply_filters( 'debug_information', array() ); |
| | 393 | |
| | 394 | // Merge the core and external debug fields |
| | 395 | $info = array_merge( $external_info, $info ); |
| | 396 | ?> |
| | 397 | |
| | 398 | <div class="wrap"> |
| | 399 | <h1 class="wp-heading-inline"> |
| | 400 | <?php echo esc_html( $title ); ?> |
| | 401 | </h1> |
| | 402 | |
| | 403 | <div class="notice notice-info"> |
| | 404 | <p> |
| | 405 | <?php esc_html_e( 'The system information shown below can also be copied and pasted into support requests such as on the WordPress.org forums, or to your theme and plugin developers.' ); ?> |
| | 406 | </p> |
| | 407 | <p> |
| | 408 | <button type="button" class="button button-primary" onclick="document.getElementById('system-information-copy-wrapper').style.display = 'block'; this.style.display = 'none';"><?php esc_html_e( 'Show copy and paste field' ); ?></button> |
| | 409 | |
| | 410 | <div id="system-information-copy-wrapper" style="display: none;"> |
| | 411 | <textarea id="system-information-copy-field" class="widefat" rows="10">` |
| | 412 | <?php |
| | 413 | foreach( $info as $section => $details ) { |
| | 414 | if ( empty( $details['fields'] ) ) { |
| | 415 | continue; |
| | 416 | } |
| | 417 | |
| | 418 | printf( |
| | 419 | "### %s%S ###\n\n", |
| | 420 | $details['label'], |
| | 421 | ( isset( $details['show_count'] ) && $details['show_count'] ? sprintf( ' (%d)', count( $details['fields'] ) ) : '' ) |
| | 422 | ); |
| | 423 | |
| | 424 | foreach( $details['fields'] as $field ) { |
| | 425 | if ( isset( $field['private'] ) && true === $field['private'] ) { |
| | 426 | continue; |
| | 427 | } |
| | 428 | |
| | 429 | printf( |
| | 430 | "%s: %s\n", |
| | 431 | $field['label'], |
| | 432 | $field['value'] |
| | 433 | ); |
| | 434 | } |
| | 435 | echo "\n"; |
| | 436 | } |
| | 437 | ?> |
| | 438 | `</textarea> |
| | 439 | <?php esc_html_e( 'Some information may be filtered out from the list you are about to copy, this is information we consider private, and is not meant to be shared in a public forum.' ); ?> |
| | 440 | <br> |
| | 441 | <button type="button" class="button button-primary" onclick="document.getElementById('system-information-copy-field').select();"><?php esc_html_e( 'Mark field for copying' ); ?></button> |
| | 442 | </div> |
| | 443 | </p> |
| | 444 | </div> |
| | 445 | |
| | 446 | <div id="system-information-table-of-contents"> |
| | 447 | <?php |
| | 448 | $toc = array(); |
| | 449 | |
| | 450 | foreach( $info AS $section => $details ) { |
| | 451 | if ( empty( $details['fields'] ) ) { |
| | 452 | continue; |
| | 453 | } |
| | 454 | |
| | 455 | $toc[] = sprintf( |
| | 456 | '<a href="#%s">%s</a>', |
| | 457 | esc_attr( $section ), |
| | 458 | esc_html( $details['label'] ) |
| | 459 | ); |
| | 460 | } |
| | 461 | |
| | 462 | echo implode( ' | ', $toc ); |
| | 463 | ?> |
| | 464 | </div> |
| | 465 | |
| | 466 | <?php |
| | 467 | foreach ( $info AS $section => $details ) { |
| | 468 | if ( ! isset( $details['fields'] ) || empty( $details['fields'] ) ) { |
| | 469 | continue; |
| | 470 | } |
| | 471 | |
| | 472 | printf( |
| | 473 | '<h2 id="%s">%s%s</h2>', |
| | 474 | esc_attr( $section ), |
| | 475 | esc_html( $details['label'] ), |
| | 476 | ( isset( $details['show_count'] ) && $details['show_count'] ? sprintf( ' (%d)', count( $details['fields'] ) ) : '' ) |
| | 477 | ); |
| | 478 | |
| | 479 | if ( isset( $details['description'] ) && ! empty( $details['description'] ) ) { |
| | 480 | printf( |
| | 481 | '<p>%s</p>', |
| | 482 | wp_kses( $details['description'], array( |
| | 483 | 'a' => array( |
| | 484 | 'href' => true |
| | 485 | ), |
| | 486 | 'strong' => true, |
| | 487 | 'em' => true, |
| | 488 | ) ) |
| | 489 | ); |
| | 490 | } |
| | 491 | ?> |
| | 492 | <table class="widefat striped"> |
| | 493 | <tbody> |
| | 494 | <?php |
| | 495 | foreach ( $details['fields'] as $field ) { |
| | 496 | printf( |
| | 497 | '<tr><td>%s</td><td>%s</td></tr>', |
| | 498 | esc_html( $field['label'] ), |
| | 499 | esc_html( $field['value'] ) |
| | 500 | ); |
| | 501 | } |
| | 502 | ?> |
| | 503 | </tbody> |
| | 504 | </table> |
| | 505 | <a href="#system-information-table-of-contents"><?php esc_html_e( 'Return to table of contents' ); ?></a> |
| | 506 | <?php |
| | 507 | } |
| | 508 | ?> |
| | 509 | |
| | 510 | </div> |
| | 511 | |
| | 512 | <?php |
| | 513 | include( ABSPATH . 'wp-admin/admin-footer.php' ); |