static function( $show ) { switch ( $show ) { case 'charset': return 'UTF-8'; case 'language': return 'English'; } return $show; }, 'is_multisite' => static function() { if ( \defined( 'WP_TESTS_MULTISITE' ) ) { return (bool) \WP_TESTS_MULTISITE; } return false; }, 'mysql2date' => static function( $format, $date ) { return $date; }, 'number_format_i18n' => null, 'sanitize_text_field' => null, 'site_url' => 'https://www.example.org', 'wp_kses_post' => null, 'wp_parse_args' => static function ( $args, $defaults ) { return \array_merge( $defaults, $args ); }, 'wp_strip_all_tags' => static function( $text, $remove_breaks = false ) { $text = \preg_replace( '@<(script|style)[^>]*?>.*?@si', '', $text ); $text = \strip_tags( $text ); if ( $remove_breaks ) { $text = \preg_replace( '/[\r\n\t ]+/', ' ', $text ); } return \trim( $text ); }, 'wp_slash' => null, 'wp_unslash' => static function( $value ) { return \is_string( $value ) ? \stripslashes( $value ) : $value; }, ] ); } }