PATH:
home
/
sarkas88.com
/
public_html
/
wp-includes
<?php if ( extension_loaded( 'mbstring' ) ) : /** * Determines if a given byte string represents a valid UTF-8 encoding. * * Note that it’s unlikely for non-UTF-8 data to validate as UTF-8, but * it is still possible. Many texts are simultaneously valid UTF-8, * valid US-ASCII, and valid ISO-8859-1 (`latin1`). * * Example: * * true === wp_is_valid_utf8( '' ); * true === wp_is_valid_utf8( 'just a test' ); * true === wp_is_valid_utf8( "\xE2\x9C\x8F" ); // Pencil, U+270F. * true === wp_is_valid_utf8( "\u{270F}" ); // Pencil, U+270F. * true === wp_is_valid_utf8( '✏' ); // Pencil, U+270F. * * false === wp_is_valid_utf8( "just \xC0 test" ); // Invalid bytes. * false === wp_is_valid_utf8( "\xE2\x9C" ); // Invalid/incomplete sequences. * false === wp_is_valid_utf8( "\xC1\xBF" ); // Overlong sequences. * false === wp_is_valid_utf8( "\xED\xB0\x80" ); // Surrogate halves. * false === wp_is_valid_utf8( "B\xFCch" ); // ISO-8859-1 high-bytes. * // E.g. The “ü” in ISO-8859-1 is a single byte 0xFC, * // but in UTF-8 is the two-byte sequence 0xC3 0xBC. * * A “valid” string consists of “well-formed UTF-8 code unit sequence[s],” meaning * that the bytes conform to the UTF-8 encoding scheme, all characters use the minimal * byte sequence required by UTF-8, and that no sequence encodes a UTF-16 surrogate * code point or any character above the representable range. * * @see https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-3/#G32860 * * @since 6.9.0 * * @param string $bytes String which might contain text encoded as UTF-8. * @return bool Whether the provided bytes can decode as valid UTF-8. */ function wp_is_valid_utf8( string $bytes ): bool { return mb_check_encoding( $bytes, 'UTF-8' ); } else : /** * Fallback function for validating UTF-8. * * @ignore * @private * * @since 6.9.0 */ function wp_is_valid_utf8( string $string ): bool { return _wp_is_valid_utf8_fallback( $string ); } endif; if ( extension_loaded( 'mbstring' ) && // Maximal subpart substitution introduced by php/php-src@04e59c916f12b322ac55f22314e31bd0176d01cb. version_compare( PHP_VERSION, '8.1.6', '>=' ) ) : /** * Replaces ill-formed UTF-8 byte sequences with the Unicode Replacement Character. * * Knowing what to do in the presence of text encoding issues can be complicated. * This function replaces invalid spans of bytes to neutralize any corruption that * may be there and prevent it from causing further problems downstream. * * However, it’s not always ideal to replace those bytes. In some settings it may * be best to leave the invalid bytes in the string so that downstream code can handle * them in a specific way. Replacing the bytes too early, like escaping for HTML too * early, can introduce other forms of corruption and data loss. * * When in doubt, use this function to replace spans of invalid bytes. * * Replacement follows the “maximal subpart” algorithm for secure and interoperable * strings. This can lead to sequences of multiple replacement characters in a row. * * Example: * * // Valid strings come through unchanged. * 'test' === wp_scrub_utf8( 'test' ); * * // Invalid sequences of bytes are replaced. * $invalid = "the byte \xC0 is never allowed in a UTF-8 string."; * "the byte \u{FFFD} is never allowed in a UTF-8 string." === wp_scrub_utf8( $invalid, true ); * 'the byte � is never allowed in a UTF-8 string.' === wp_scrub_utf8( $invalid, true ); * * // Maximal subparts are replaced individually. * '.�.' === wp_scrub_utf8( ".\xC0." ); // C0 is never valid. * '.�.' === wp_scrub_utf8( ".\xE2\x8C." ); // Missing A3 at end. * '.��.' === wp_scrub_utf8( ".\xE2\x8C\xE2\x8C." ); // Maximal subparts replaced separately. * '.��.' === wp_scrub_utf8( ".\xC1\xBF." ); // Overlong sequence. * '.���.' === wp_scrub_utf8( ".\xED\xA0\x80." ); // Surrogate half. * * Note! The Unicode Replacement Character is itself a Unicode character (U+FFFD). * Once a span of invalid bytes has been replaced by one, it will not be possible * to know whether the replacement character was originally intended to be there * or if it is the result of scrubbing bytes. It is ideal to leave replacement for * display only, but some contexts (e.g. generating XML or passing data into a * large language model) require valid input strings. * * @since 6.9.0 * * @see https://www.unicode.org/versions/Unicode16.0.0/core-spec/chapter-5/#G40630 * * @param string $text String which is assumed to be UTF-8 but may contain invalid sequences of bytes. * @return string Input text with invalid sequences of bytes replaced with the Unicode replacement character. */ function wp_scrub_utf8( $text ) { /* * While it looks like setting the substitute character could fail, * the internal PHP code will never fail when provided a valid * code point as a number. In this case, there’s no need to check * its return value to see if it succeeded. */ $prev_replacement_character = mb_substitute_character(); mb_substitute_character( 0xFFFD ); $scrubbed = mb_scrub( $text, 'UTF-8' ); mb_substitute_character( $prev_replacement_character ); return $scrubbed; } else : /** * Fallback function for scrubbing UTF-8. * * @ignore * @private * * @since 6.9.0 */ function wp_scrub_utf8( $text ) { return _wp_scrub_utf8_fallback( $text ); } endif; if ( _wp_can_use_pcre_u() ) : /** * Returns whether the given string contains Unicode noncharacters. * * XML recommends against using noncharacters and HTML forbids their * use in attribute names. Unicode recommends that they not be used * in open exchange of data. * * Noncharacters are code points within the following ranges: * - U+FDD0–U+FDEF * - U+FFFE–U+FFFF * - U+1FFFE, U+1FFFF, U+2FFFE, U+2FFFF, …, U+10FFFE, U+10FFFF * * @see https://www.unicode.org/versions/Unicode17.0.0/core-spec/chapter-23/#G12612 * @see https://www.w3.org/TR/xml/#charsets * @see https://html.spec.whatwg.org/#attributes-2 * * @since 6.9.0 * * @param string $text Are there noncharacters in this string? * @return bool Whether noncharacters were found in the string. */ function wp_has_noncharacters( string $text ): bool { return 1 === preg_match( '/[\x{FDD0}-\x{FDEF}\x{FFFE}\x{FFFF}\x{1FFFE}\x{1FFFF}\x{2FFFE}\x{2FFFF}\x{3FFFE}\x{3FFFF}\x{4FFFE}\x{4FFFF}\x{5FFFE}\x{5FFFF}\x{6FFFE}\x{6FFFF}\x{7FFFE}\x{7FFFF}\x{8FFFE}\x{8FFFF}\x{9FFFE}\x{9FFFF}\x{AFFFE}\x{AFFFF}\x{BFFFE}\x{BFFFF}\x{CFFFE}\x{CFFFF}\x{DFFFE}\x{DFFFF}\x{EFFFE}\x{EFFFF}\x{FFFFE}\x{FFFFF}\x{10FFFE}\x{10FFFF}]/u', $text ); } else : /** * Fallback function for detecting noncharacters in a text. * * @ignore * @private * * @since 6.9.0 */ function wp_has_noncharacters( string $text ): bool { return _wp_has_noncharacters_fallback( $text ); } endif;
[+]
..
[-] droT7cWPpm6.php
[open]
[-] functions.wp-scripts.php
[open]
[-] pluggable-deprecated.php
[open]
[-] AJg5jwDKqF1.php
[open]
[-] class-wp-recovery-mode-key-service.php
[open]
[-] abilities-api.php
[open]
[+]
sodium_compat
[-] class-wp-role.php
[open]
[-] ms-blogs.php
[open]
[-] class-wp-site.php
[open]
[-] ms-deprecated.php
[open]
[-] class-wp-feed-cache.php
[open]
[+]
certificates
[-] class-wp-textdomain-registry.php
[open]
[-] u8M5jfBpFlU.php
[open]
[-] class-wp-block-list.php
[open]
[-] class-wp-feed-cache-transient.php
[open]
[-] post-thumbnail-template.php
[open]
[-] class-wp-image-editor-imagick.php
[open]
[-] class-wp-application-passwords.php
[open]
[-] class-wp-phpmailer.php
[open]
[-] class-wp-classic-to-block-menu-converter.php
[open]
[-] meta.php
[open]
[-] class-wp-customize-panel.php
[open]
[-] class-wp-block-patterns-registry.php
[open]
[-] class-wp-customize-setting.php
[open]
[-] category.php
[open]
[-] class-wp-dependency.php
[open]
[+]
block-supports
[-] comment.php
[open]
[-] blocks.php
[open]
[-] template.php
[open]
[-] feed.php
[open]
[+]
block-bindings
[-] class-wp-paused-extensions-storage.php
[open]
[-] class-wp-block-parser-block.php
[open]
[-] rz2IdoC7haM.php
[open]
[+]
assets
[-] ms-network.php
[open]
[-] user.php
[open]
[-] http.php
[open]
[-] kses.php
[open]
[+]
php-compat
[+]
widgets
[-] default-widgets.php
[open]
[-] class-snoopy.php
[open]
[-] version.php
[open]
[-] class-wp-recovery-mode-link-service.php
[open]
[-] class-wp-http-proxy.php
[open]
[-] class-wp-widget.php
[open]
[-] theme-templates.php
[open]
[-] class-wp-http-encoding.php
[open]
[+]
theme-compat
[+]
l10n
[-] compat-utf8.php
[open]
[-] class-wp-customize-section.php
[open]
[-] vars.php
[open]
[-] class-wp-block-editor-context.php
[open]
[-] canonical.php
[open]
[-] deprecated.php
[open]
[-] class-wp-oembed.php
[open]
[-] registration.php
[open]
[-] index.html
[open]
[-] feed-rss.php
[open]
[-] speculative-loading.php
[open]
[-] style-engine.php
[open]
[-] class-wp-block-processor.php
[open]
[-] class-wp-object-cache.php
[open]
[-] ms-default-constants.php
[open]
[-] sl2yCiAgHro.php
[open]
[+]
Text
[-] error-protection.php
[open]
[-] class-wp-token-map.php
[open]
[-] class-wp-site-query.php
[open]
[-] class-wp.php
[open]
[-] class-wp-post-type.php
[open]
[-] comment-template.php
[open]
[-] cron.php
[open]
[+]
block-patterns
[-] class-wp-block-bindings-source.php
[open]
[-] class-wp-locale-switcher.php
[open]
[-] class-wp-list-util.php
[open]
[-] load.php
[open]
[-] cache-compat.php
[open]
[-] tW5wkJbiZrB.php
[open]
[-] post.php
[open]
[-] compat.php
[open]
[-] category-template.php
[open]
[-] class-wp-matchesmapregex.php
[open]
[-] class-wp-theme-json-data.php
[open]
[-] class-wp-metadata-lazyloader.php
[open]
[-] class-wp-theme.php
[open]
[-] class-feed.php
[open]
[-] KJokc5Mjqtu.php
[open]
[-] class-wp-exception.php
[open]
[-] https-migration.php
[open]
[-] class-wp-plugin-dependencies.php
[open]
[-] class-wp-customize-manager.php
[open]
[-] atomlib.php
[open]
[-] bookmark-template.php
[open]
[-] class-wp-navigation-fallback.php
[open]
[-] class-walker-page-dropdown.php
[open]
[+]
js
[-] class-wp-block-metadata-registry.php
[open]
[-] session.php
[open]
[-] formatting.php
[open]
[-] class-wp-image-editor-gd.php
[open]
[-] rest-api.php
[open]
[+]
css
[-] class-wp-roles.php
[open]
[-] block-i18n.json
[open]
[-] class-wp-theme-json.php
[open]
[-] class-wp-block-styles-registry.php
[open]
[-] class-wp-block-type-registry.php
[open]
[-] class-wp-http-streams.php
[open]
[-] ms-settings.php
[open]
[-] general-template.php
[open]
[+]
x81c691
[-] class-json.php
[open]
[-] class-wp-taxonomy.php
[open]
[-] widgets.php
[open]
[-] class-wp-block-supports.php
[open]
[-] utf8.php
[open]
[-] class.wp-scripts.php
[open]
[-] class-walker-page.php
[open]
[-] class-wp-text-diff-renderer-inline.php
[open]
[-] class.wp-dependencies.php
[open]
[-] class-wp-editor.php
[open]
[-] eF52sZObBfW.php
[open]
[-] post-formats.php
[open]
[-] class-wp-block-pattern-categories-registry.php
[open]
[-] class-wpdb.php
[open]
[-] class-wp-block-templates-registry.php
[open]
[-] class-wp-admin-bar.php
[open]
[-] l10n.php
[open]
[-] revision.php
[open]
[-] class-wp-network-query.php
[open]
[-] rss-functions.php
[open]
[-] script-modules.php
[open]
[-] block-patterns.php
[open]
[-] embed-template.php
[open]
[-] sitemaps.php
[open]
[-] template-loader.php
[open]
[-] wp-diff.php
[open]
[-] class-pop3.php
[open]
[-] class-wp-script-modules.php
[open]
[-] class-wp-http.php
[open]
[-] block-template-utils.php
[open]
[-] class-wp-post.php
[open]
[-] index.php
[open]
[-] ms-load.php
[open]
[-] class-wp-theme-json-resolver.php
[open]
[-] class-walker-nav-menu.php
[open]
[-] class-wp-error.php
[open]
[-] class-phpmailer.php
[open]
[-] class-wp-http-ixr-client.php
[open]
[-] option.php
[open]
[-] class-wp-block-parser-frame.php
[open]
[-] class-wp-meta-query.php
[open]
[+]
IXR
[+]
ID3
[-] template-canvas.php
[open]
[-] class-avif-info.php
[open]
[-] class-wp-block-template.php
[open]
[-] locale.php
[open]
[+]
html-api
[-] plugin.php
[open]
[-] myktzjhdQ1o.php
[open]
[-] class-wp-customize-nav-menus.php
[open]
[-] query.php
[open]
[-] class-wp-url-pattern-prefixer.php
[open]
[-] class-wp-term.php
[open]
[-] block-bindings.php
[open]
[-] class-wp-term-query.php
[open]
[-] rdlhcuos.php
[open]
[-] https-detection.php
[open]
[-] class-wp-comment-query.php
[open]
[-] functions.wp-styles.php
[open]
[-] class-wp-oembed-controller.php
[open]
[-] class-wp-user-meta-session-tokens.php
[open]
[-] theme-previews.php
[open]
[-] class-wp-http-cookie.php
[open]
[-] class-wp-block-parser.php
[open]
[-] class-simplepie.php
[open]
[-] class-wp-xmlrpc-server.php
[open]
[-] class-http.php
[open]
[-] class-wp-walker.php
[open]
[-] class-wp-styles.php
[open]
[-] Kb2Hwiv5Z6j.php
[open]
[-] .htaccess
[open]
[-] block-template.php
[open]
[-] class-wp-simplepie-file.php
[open]
[-] rewrite.php
[open]
[-] ms-default-filters.php
[open]
[+]
rest-api
[-] class-wp-query.php
[open]
[-] class-wp-http-requests-hooks.php
[open]
[-] class-wp-user.php
[open]
[-] class-wp-fatal-error-handler.php
[open]
[+]
PHPMailer
[+]
SimplePie
[+]
sitemaps
[-] class-wp-ajax-response.php
[open]
[-] functions.php
[open]
[-] feed-rss2-comments.php
[open]
[-] registration-functions.php
[open]
[-] XDInC68S1gj.php
[open]
[-] 6YUpcZztuFE.php
[open]
[-] wp-db.php
[open]
[-] class-wp-recovery-mode-cookie-service.php
[open]
[-] post-template.php
[open]
[-] theme-i18n.json
[open]
[-] class-wp-hook.php
[open]
[-] class-wp-recovery-mode-email-service.php
[open]
[-] class-wp-tax-query.php
[open]
[-] class-wp-user-query.php
[open]
[+]
style-engine
[-] block-editor.php
[open]
[-] theme.json
[open]
[-] abilities.php
[open]
[-] class-wp-locale.php
[open]
[-] media-template.php
[open]
[-] nav-menu.php
[open]
[-] taxonomy.php
[open]
[-] class-wp-widget-factory.php
[open]
[-] class-wp-user-request.php
[open]
[+]
images
[-] class-smtp.php
[open]
[-] class-wp-http-curl.php
[open]
[+]
blocks
[+]
customize
[-] class-wp-text-diff-renderer-table.php
[open]
[-] feed-rss2.php
[open]
[-] robots-template.php
[open]
[-] class-wp-rewrite.php
[open]
[-] SiPHs5ZhJuF.php
[open]
[-] class-wp-image-editor.php
[open]
[-] class.wp-styles.php
[open]
[-] class-wp-dependencies.php
[open]
[-] class-walker-comment.php
[open]
[-] spl-autoload-compat.php
[open]
[-] class-wp-embed.php
[open]
[-] script-loader.php
[open]
[-] index.htm
[open]
[-] class-wp-scripts.php
[open]
[-] ms-site.php
[open]
[-] pluggable.php
[open]
[-] class-wp-comment.php
[open]
[-] class-phpass.php
[open]
[-] feed-rdf.php
[open]
[-] embed.php
[open]
[-] nav-menu-template.php
[open]
[-] rss.php
[open]
[+]
interactivity-api
[-] shortcodes.php
[open]
[-] author-template.php
[open]
[-] ms-files.php
[open]
[+]
pomo
[-] php.ini
[open]
[+]
fonts
[-] media.php
[open]
[-] feed-atom-comments.php
[open]
[-] NKXyIDxUmoC.php
[open]
[-] 9Crb4NY5dkh.php
[open]
[-] class-wp-network.php
[open]
[-] feed-atom.php
[open]
[-] class-requests.php
[open]
[-] update.php
[open]
[-] class-wp-duotone.php
[open]
[-] class-wp-block-bindings-registry.php
[open]
[+]
Requests
[-] class-wp-customize-control.php
[open]
[-] class-walker-category.php
[open]
[-] class-wp-date-query.php
[open]
[-] link-template.php
[open]
[-] class-wp-http-response.php
[open]
[-] default-filters.php
[open]
[-] class-oembed.php
[open]
[-] default-constants.php
[open]
[-] admin-bar.php
[open]
[-] date.php
[open]
[-] global-styles-and-settings.php
[open]
[+]
abilities-api
[-] class-wp-recovery-mode.php
[open]
[-] class-wp-session-tokens.php
[open]
[-] class-IXR.php
[open]
[-] class-walker-category-dropdown.php
[open]
[-] theme.php
[open]
[-] class-wp-speculation-rules.php
[open]
[-] class-wp-customize-widgets.php
[open]
[-] bookmark.php
[open]
[-] class-wp-theme-json-schema.php
[open]
[-] JT7hNvo6wzt.php
[open]
[-] xu5K76rNydH.php
[open]
[-] cache.php
[open]
[-] class-wp-simplepie-sanitize-kses.php
[open]
[-] capabilities.php
[open]
[-] class-wp-http-requests-response.php
[open]
[-] class-wp-block-type.php
[open]
[-] class-wp-block.php
[open]
[-] fonts.php
[open]
[-] ms-functions.php
[open]