get_option( 'home' ), 'site_url' => get_option( 'siteurl' ), 'version' => BDTUPK_VER, 'wp_version' => get_bloginfo( 'version' ), 'wp_multisite' => is_multisite(), 'wp_memory_limit' => $wp_memory_limit, 'wp_debug_mode' => ( defined( 'WP_DEBUG' ) && WP_DEBUG ), 'wp_cron' => ! ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ), 'language' => get_locale(), 'external_object_cache' => wp_using_ext_object_cache(), 'php_version' => phpversion(), 'php_post_max_size' => self::readable_num( ini_get( 'post_max_size' ) ), 'php_max_execution_time' => ini_get( 'max_execution_time' ), 'php_max_input_vars' => ini_get( 'max_input_vars' ), 'curl_version' => $curl_version, 'suhosin_installed' => extension_loaded( 'suhosin' ), 'max_upload_size' => wp_max_upload_size(), 'default_timezone' => date_default_timezone_get(), 'fsockopen_or_curl_enabled' => ( function_exists( 'fsockopen' ) || function_exists( 'curl_init' ) ), 'soapclient_enabled' => class_exists( 'SoapClient' ), 'domdocument_enabled' => class_exists( 'DOMDocument' ), 'gzip_enabled' => is_callable( 'gzopen' ), 'mbstring_enabled' => extension_loaded( 'mbstring' ), ); } /** * Get timezone string. * * Retrieve timezone string from the WordPress database. * * @since 1.0.0 * @access public * @static * * @return string Timezone string. */ public static function get_timezone_string() { $current_offset = (float) get_option( 'gmt_offset' ); $timezone_string = get_option( 'timezone_string' ); // Create a UTC+- zone if no timezone string exists. if ( empty( $timezone_string ) ) { if ( $current_offset < 0 ) { $timezone_string = 'UTC' . $current_offset; } else { $timezone_string = 'UTC+' . $current_offset; } } return $timezone_string; } /** * Build a localized comment count string for front-end display. * * Single translatable pattern so locales can reorder words (e.g. "Comments: %s"). * Always escape with esc_html() (or esc_attr() for attributes) when outputting. * * @param int $post_id Post ID. Use 0 for the current post in The Loop. * @return string Unescaped translated string. */ public static function get_formatted_comments_count( $post_id = 0 ) { $comment_count = (int) get_comments_number( $post_id ); return sprintf( /* translators: %s: number of comments */ _n( '%s comment', '%s comments', $comment_count, 'ultimate-post-kit' ), number_format_i18n( $comment_count ) ); } /** * Localized numeric comment count only (no word label). For icon-only meta. * * @param int $post_id Post ID. Use 0 for the current post in The Loop. * @return string */ public static function get_localized_comment_count( $post_id = 0 ) { return number_format_i18n( (int) get_comments_number( $post_id ) ); } }