isset( $wp_version ) ? sanitize_text_field( $wp_version ) : null, 'multisite' => is_multisite(), 'environment_type' => function_exists( 'wp_get_environment_type' ) ? sanitize_text_field( wp_get_environment_type() ) : null, // Local API configuration only; this does not claim HTTP reachability. 'rest_api_registered' => function_exists( 'rest_api_loaded' ) && false !== has_action( 'parse_request', 'rest_api_loaded' ), 'rest_url_prefix' => function_exists( 'rest_get_url_prefix' ) ? sanitize_text_field( rest_get_url_prefix() ) : null, ); return array( 'nodes' => array( new Node( 'wordpress:installation', 'wordpress', 'system', 'WordPress', 'unknown', 0, $metadata ) ), 'edges' => array() ); } }