| Server IP : 54.36.91.62 / Your IP : 216.73.216.15 Web Server : Apache System : Linux webm021.cluster127.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64 User : uxhactp ( 169076) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/uxhactp/www/wp-content/plugins/visualcomposer/visualcomposer/Modules/Assets/ |
Upload File : |
<?php
namespace VisualComposer\Modules\Assets;
if (!defined('ABSPATH')) {
header('Status: 403 Forbidden');
header('HTTP/1.1 403 Forbidden');
exit;
}
use WP_Scripts;
class VcwbWpScripts extends WP_Scripts
{
protected $localizedHandles = [];
/**
* @codingStandardsIgnoreStart
*
* @param bool|array $handles
* @param bool $group
*
* @return array
*/
public function do_items($handles = false, $group = false)
{
/*
* If nothing is passed, print the queue. If a string is passed,
* print that item. If an array is passed, print those items.
*/
$handles = false === $handles ? $this->queue : (array)$handles;
$this->all_deps($handles);
foreach ($this->to_do as $key => $handle) {
if (!in_array($handle, $this->done, true) && isset($this->registered[ $handle ])) {
/*
* Attempt to process the item. If successful,
* add the handle to the done array.
*
* Unset the item from the to_do array.
*/
$result = $this->do_item($handle, $group);
if ($result) {
$this->done[] = $handle;
}
if (!$result && strpos($handle, 'vcv:') === 0) {
continue; // keep script in to_do if it is vcv:
}
unset($this->to_do[ $key ]);
}
}
return $this->done;
}
public function do_item($handle, $group = false)
{
if ($group !== 1 && strpos($handle, 'vcv:') === 0) {
// it starts from vcv:
return false;
}
return parent::do_item($handle, $group);
}
public function localize($handle, $objectName, $l10n)
{
// Avoid multiple localizations for same handle objectName in case when inner items (HFS, global template, etc), initiate localization for same handle
if (vcvenv('ENQUEUE_INNER_ASSETS') && isset($this->localizedHandles[ $handle ][ $objectName ])) {
// This handle was already localized before, skip
return true;
}
if (!isset($this->localizedHandles[ $handle ])) {
$this->localizedHandles[ $handle ] = [];
}
if (!isset($this->localizedHandles[ $handle ][ $objectName ])) {
$this->localizedHandles[ $handle ][ $objectName ] = true;
}
return parent::localize($handle, $objectName, $l10n);
}
}