| Server IP : 178.212.43.201 / Your IP : 10.100.0.33 Web Server : Apache/2.4.37 (Oracle Linux Server) OpenSSL/1.1.1k System : Linux spa0007.srv.paxillus.pl 5.4.17-2136.355.3.1.el8uek.x86_64 #3 SMP Sat May 9 17:11:55 PDT 2026 x86_64 User : apache ( 48) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/html/paxillus/wp-content/plugins/jetpack/modules/shortcodes/ |
Upload File : |
<?php
/**
* Shared utility functions for Jetpack shortcodes.
*
* @package automattic/jetpack
*/
use Automattic\Jetpack\Status\Request;
if ( ! function_exists( 'jetpack_shortcodes_should_hook_pre_kses' ) ) {
/**
* Determine if shortcodes should hook on pre_kses.
*
* @param bool $force_recheck Whether to force a re-check of the request. Defaults to false.
*
* @return bool True if shortcodes should hook on pre_kses, false otherwise.
*/
function jetpack_shortcodes_should_hook_pre_kses( $force_recheck = false ) {
static $is_frontend;
if ( $force_recheck || null === $is_frontend ) {
$is_frontend = Request::is_frontend( false );
}
$should_hook = ! $is_frontend;
/**
* Filters whether shortcodes should hook on pre_kses.
*
* @since 15.0
*
* @param bool $should_hook Whether shortcodes should hook on pre_kses.
*/
return apply_filters( 'jetpack_shortcodes_should_hook_pre_kses', $should_hook );
}
}