| Server IP : 81.2.241.106 / Your IP : 216.73.216.165 Web Server : Apache/2.4.67 (Debian) System : Linux tranq-f.bakta.org 5.10.0-45-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64 User : lisky ( 1002) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/lisky/wp-content/plugins/jetpack/modules/verification-tools/ |
Upload File : |
<?php
/**
* Helper functions that are called from API even when module is inactive should be added here.
* This file will be included in module-extras.php.
*
* @package jetpack
*/
if ( ! function_exists( 'jetpack_verification_validate' ) ) {
/**
* Validate jetpack verification codes.
*
* @param array $verification_services_codes - array of verification codes.
*/
function jetpack_verification_validate( $verification_services_codes ) {
foreach ( $verification_services_codes as $key => $code ) {
// Parse html meta tag if it does not look like a valid code.
if ( ! preg_match( '/^[a-z0-9_-]+$/i', $code ) ) {
$code = jetpack_verification_get_code( $code );
}
$code = esc_attr( trim( $code ) );
// limit length to 100 chars.
$code = substr( $code, 0, 100 );
/**
* Fire after each Verification code was validated.
*
* @module verification-tools
*
* @since 3.0.0
*
* @param string $key Verification service name.
* @param string $code Verification service code provided in field in the Tools menu.
*/
do_action( 'jetpack_site_verification_validate', $key, $code );
$verification_services_codes[ $key ] = $code;
}
return $verification_services_codes;
}
}
if ( ! function_exists( 'jetpack_verification_get_code' ) ) {
/**
* Return the code we're trying to verify after decoding.
*
* @param string $code - the code we need to parse.
*/
function jetpack_verification_get_code( $code ) {
$pattern = '/content=["\']?([^"\' ]*)["\' ]/is';
preg_match( $pattern, $code, $match );
if ( $match ) {
return urldecode( $match[1] );
} else {
return false;
}
}
}