Edit File by line
/home/zeestwma/richards.../wp-conte.../plugins/jetpack/modules/shortcod...
File: shortcode-utils.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Shared utility functions for Jetpack shortcodes.
[2] Fix | Delete
*
[3] Fix | Delete
* @package automattic/jetpack
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
use Automattic\Jetpack\Status\Request;
[7] Fix | Delete
[8] Fix | Delete
if ( ! function_exists( 'jetpack_shortcodes_should_hook_pre_kses' ) ) {
[9] Fix | Delete
/**
[10] Fix | Delete
* Determine if shortcodes should hook on pre_kses.
[11] Fix | Delete
*
[12] Fix | Delete
* @param bool $force_recheck Whether to force a re-check of the request. Defaults to false.
[13] Fix | Delete
*
[14] Fix | Delete
* @return bool True if shortcodes should hook on pre_kses, false otherwise.
[15] Fix | Delete
*/
[16] Fix | Delete
function jetpack_shortcodes_should_hook_pre_kses( $force_recheck = false ) {
[17] Fix | Delete
static $is_frontend;
[18] Fix | Delete
[19] Fix | Delete
if ( $force_recheck || null === $is_frontend ) {
[20] Fix | Delete
$is_frontend = Request::is_frontend( false );
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
$should_hook = ! $is_frontend;
[24] Fix | Delete
[25] Fix | Delete
/**
[26] Fix | Delete
* Filters whether shortcodes should hook on pre_kses.
[27] Fix | Delete
*
[28] Fix | Delete
* @since 15.0
[29] Fix | Delete
*
[30] Fix | Delete
* @param bool $should_hook Whether shortcodes should hook on pre_kses.
[31] Fix | Delete
*/
[32] Fix | Delete
return apply_filters( 'jetpack_shortcodes_should_hook_pre_kses', $should_hook );
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
[36] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function