PATH:
home
/
bnathsfovv
/
porterbrookclinic.org.uk
/
wp-includes
<?php /** * WP_MatchesMapRegex helper class * * @package WordPress * @since 4.7.0 */ /** * Helper class to remove the need to use eval to replace $matches[] in query strings. * * @since 2.9.0 */ #[AllowDynamicProperties] class WP_MatchesMapRegex { /** * store for matches * * @var array */ private $_matches; /** * store for mapping result * * @var string */ public $output; /** * subject to perform mapping on (query string containing $matches[] references * * @var string */ private $_subject; /** * regexp pattern to match $matches[] references * * @var string */ public $_pattern = '(\$matches\[[1-9]+[0-9]*\])'; // Magic number. /** * constructor * * @param string $subject subject if regex * @param array $matches data to use in map */ public function __construct( $subject, $matches ) { $this->_subject = $subject; $this->_matches = $matches; $this->output = $this->_map(); } /** * Substitute substring matches in subject. * * static helper function to ease use * * @param string $subject subject * @param array $matches data used for substitution * @return string */ public static function apply( $subject, $matches ) { $result = new WP_MatchesMapRegex( $subject, $matches ); return $result->output; } /** * do the actual mapping * * @return string */ private function _map() { $callback = array( $this, 'callback' ); return preg_replace_callback( $this->_pattern, $callback, $this->_subject ); } /** * preg_replace_callback hook * * @param array $matches preg_replace regexp matches * @return string */ public function callback( $matches ) { $index = (int) substr( $matches[0], 9, -1 ); return ( isset( $this->_matches[ $index ] ) ? urlencode( $this->_matches[ $index ] ) : '' ); } }
[+]
..
[+]
fonts
[-] fonts.php
[edit]
[+]
ID3
[-] class-wp-theme.php
[edit]
[-] class-wp-block-patterns-registry.php
[edit]
[+]
blocks
[-] class-wp-recovery-mode-email-service.php
[edit]
[-] class-requests.php
[edit]
[-] class-wp-http-ixr-client.php
[edit]
[-] block-template-utils.php
[edit]
[-] class-IXR.php
[edit]
[+]
Text
[-] theme.json
[edit]
[-] theme-i18n.json
[edit]
[+]
build
[-] class-wp-textdomain-registry.php
[edit]
[+]
Requests
[-] class-wp-text-diff-renderer-table.php
[edit]
[-] feed-atom.php
[edit]
[-] robots-template.php
[edit]
[-] revision.php
[edit]
[-] class-wp-list-util.php
[edit]
[+]
sodium_compat
[-] class-walker-nav-menu.php
[edit]
[-] class-wp-recovery-mode.php
[edit]
[+]
block-supports
[-] class-walker-page.php
[edit]
[-] block-template.php
[edit]
[+]
rest-api
[-] view-transitions.php
[edit]
[+]
customize
[-] shortcodes.php
[edit]
[-] class-wp.php
[edit]
[-] meta.php
[edit]
[-] class-wp-block-metadata-registry.php
[edit]
[+]
theme-compat
[+]
php-compat
[-] class.wp-styles.php
[edit]
[-] ms-site.php
[edit]
[-] class-wp-http-cookie.php
[edit]
[-] bookmark.php
[edit]
[-] post-thumbnail-template.php
[edit]
[-] theme-templates.php
[edit]
[-] class-wp-post.php
[edit]
[-] deprecated.php
[edit]
[-] class-wp-text-diff-renderer-inline.php
[edit]
[-] theme.php
[edit]
[-] class-wp-roles.php
[edit]
[-] class-wp-block-bindings-registry.php
[edit]
[-] class-wp-block-parser-block.php
[edit]
[-] locale.php
[edit]
[-] class-wp-block-list.php
[edit]
[+]
IXR
[-] class-wp-http-requests-hooks.php
[edit]
[+]
images
[-] registration.php
[edit]
[-] class-snoopy.php
[edit]
[-] class-wp-block-template.php
[edit]
[+]
abilities-api
[+]
SimplePie
[-] l10n.php
[edit]
[-] class-phpass.php
[edit]
[-] general-template.php
[edit]
[+]
PHPMailer
[-] embed-template.php
[edit]
[-] class-wp-recovery-mode-cookie-service.php
[edit]
[-] class-wp-walker.php
[edit]
[-] feed-rss2.php
[edit]
[-] cron.php
[edit]
[-] class-wp-http-response.php
[edit]
[+]
css
[-] connectors.php
[edit]
[-] class-wp-duotone.php
[edit]
[-] version.php
[edit]
[-] class-wp-block-type.php
[edit]
[+]
html-api
[-] class-wp-block.php
[edit]
[-] class-wp-site.php
[edit]
[+]
widgets
[-] class-wp-paused-extensions-storage.php
[edit]
[-] nav-menu-template.php
[edit]
[-] class-walker-category-dropdown.php
[edit]
[-] admin-bar.php
[edit]
[-] class-phpmailer.php
[edit]
[-] link-template.php
[edit]
[-] class-json.php
[edit]
[-] feed-rss2-comments.php
[edit]
[+]
style-engine
[-] post-formats.php
[edit]
[-] pluggable.php
[edit]
[-] class-wp-customize-nav-menus.php
[edit]
[-] class-wp-connector-registry.php
[edit]
[-] feed-rdf.php
[edit]
[-] option.php
[edit]
[-] post-template.php
[edit]
[-] class-wp-http-requests-response.php
[edit]
[+]
sitemaps
[-] class-wp-taxonomy.php
[edit]
[-] class-wp-widget-factory.php
[edit]
[-] class-wp-block-pattern-categories-registry.php
[edit]
[+]
block-bindings
[-] class-wp-speculation-rules.php
[edit]
[-] wp-db.php
[edit]
[-] class-wp-recovery-mode-key-service.php
[edit]
[-] class-wp-image-editor-gd.php
[edit]
[-] class-wp-icons-registry.php
[edit]
[+]
certificates
[-] registration-functions.php
[edit]
[-] class-wp-matchesmapregex.php
[edit]
[-] media.php
[edit]
[-] class-wp-user-meta-session-tokens.php
[edit]
[-] class-wp-role.php
[edit]
[-] canonical.php
[edit]
[+]
interactivity-api
[-] class-wp-http-curl.php
[edit]
[-] class-wp-http-streams.php
[edit]
[-] class-wp-term.php
[edit]
[-] sitemaps.php
[edit]
[-] class-wp-block-supports.php
[edit]
[-] category-template.php
[edit]
[+]
assets
[-] class-wp-application-passwords.php
[edit]
[-] class-wp-http.php
[edit]
[-] post.php
[edit]
[-] class-wp-tax-query.php
[edit]
[-] class-wp-user.php
[edit]
[-] class-wp-simplepie-sanitize-kses.php
[edit]
[-] ms-functions.php
[edit]
[-] load.php
[edit]
[-] style-engine.php
[edit]
[-] class-wp-session-tokens.php
[edit]
[-] class-wp-classic-to-block-menu-converter.php
[edit]
[-] date.php
[edit]
[-] class-wp-dependency.php
[edit]
[-] ms-deprecated.php
[edit]
[-] http.php
[edit]
[-] class-wp-locale.php
[edit]
[-] class-wp-block-type-registry.php
[edit]
[-] bookmark-template.php
[edit]
[-] class-wp-token-map.php
[edit]
[-] taxonomy.php
[edit]
[-] block-bindings.php
[edit]
[+]
php-ai-client
[+]
ai-client
[-] class-wp-block-templates-registry.php
[edit]
[-] ms-default-filters.php
[edit]
[-] class-http.php
[edit]
[-] block-i18n.json
[edit]
[+]
block-patterns
[-] ms-network.php
[edit]
[-] class.wp-dependencies.php
[edit]
[+]
js
[-] vars.php
[edit]
[-] theme-previews.php
[edit]
[-] rewrite.php
[edit]
[-] category.php
[edit]
[+]
pomo
[-] template.php
[edit]
[-] class-wp-dependencies.php
[edit]
[-] class-wp-recovery-mode-link-service.php
[edit]
[-] atomlib.php
[edit]
[-] default-filters.php
[edit]
[-] kses.php
[edit]
[-] class-avif-info.php
[edit]
[-] media-template.php
[edit]
[-] class-wp-block-styles-registry.php
[edit]
[-] template-canvas.php
[edit]
[-] author-template.php
[edit]
[-] ai-client.php
[edit]
[-] class-wp-post-type.php
[edit]
[-] update.php
[edit]
[+]
l10n
[-] widgets.php
[edit]
[-] ms-files.php
[edit]
[-] class-wp-locale-switcher.php
[edit]
[-] global-styles-and-settings.php
[edit]
[-] blocks.php
[edit]