Skip to content

Commit 6d7fa4c

Browse files
committed
Changed: call WP native functions with root namespace.
1 parent 73f04d1 commit 6d7fa4c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/Processor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ public function matchParameterValue($match, $value)
448448

449449
// If a scalar passes a run through wp_kses_post.
450450
if ($matchType == 'general_xss' && is_scalar($value) && function_exists('wp_kses_post')) {
451-
return $value != @wp_kses_post($value);
451+
return $value != @\wp_kses_post($value);
452452
}
453453

454454
// If a scalar passes a run through inline_js_xss.

src/Request.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ public function getShortcodeAtts($value)
365365

366366
// Merge together if the shortcode occurs more than once.
367367
if (isset($return[$shortcode[2]])) {
368-
$atts = @shortcode_parse_atts($shortcode[3]);
368+
$atts = @\shortcode_parse_atts($shortcode[3]);
369369
foreach ($atts as $key => $value) {
370370
if (isset($return[$shortcode[2]][$key])) {
371371
$return[$shortcode[2]][$key] .= $value;
@@ -374,7 +374,7 @@ public function getShortcodeAtts($value)
374374
}
375375
}
376376
} else {
377-
$return[$shortcode[2]] = @shortcode_parse_atts($shortcode[3]);
377+
$return[$shortcode[2]] = @\shortcode_parse_atts($shortcode[3]);
378378
}
379379
}
380380

0 commit comments

Comments
 (0)