Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93
/home/sportsfe.../httpdocs/wp-conte.../plugins/sitepres.../lib/twig/src/Node
File: EmbedNode.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/*
[2] Fix | Delete
* This file is part of Twig.
[3] Fix | Delete
*
[4] Fix | Delete
* (c) Fabien Potencier
[5] Fix | Delete
*
[6] Fix | Delete
* For the full copyright and license information, please view the LICENSE
[7] Fix | Delete
* file that was distributed with this source code.
[8] Fix | Delete
*/
[9] Fix | Delete
namespace WPML\Core\Twig\Node;
[10] Fix | Delete
[11] Fix | Delete
use WPML\Core\Twig\Compiler;
[12] Fix | Delete
use WPML\Core\Twig\Node\Expression\AbstractExpression;
[13] Fix | Delete
use WPML\Core\Twig\Node\Expression\ConstantExpression;
[14] Fix | Delete
/**
[15] Fix | Delete
* Represents an embed node.
[16] Fix | Delete
*
[17] Fix | Delete
* @author Fabien Potencier <fabien@symfony.com>
[18] Fix | Delete
*/
[19] Fix | Delete
class EmbedNode extends \WPML\Core\Twig\Node\IncludeNode
[20] Fix | Delete
{
[21] Fix | Delete
// we don't inject the module to avoid node visitors to traverse it twice (as it will be already visited in the main module)
[22] Fix | Delete
public function __construct($name, $index, \WPML\Core\Twig\Node\Expression\AbstractExpression $variables = null, $only = \false, $ignoreMissing = \false, $lineno, $tag = null)
[23] Fix | Delete
{
[24] Fix | Delete
parent::__construct(new \WPML\Core\Twig\Node\Expression\ConstantExpression('not_used', $lineno), $variables, $only, $ignoreMissing, $lineno, $tag);
[25] Fix | Delete
$this->setAttribute('name', $name);
[26] Fix | Delete
// to be removed in 2.0, used name instead
[27] Fix | Delete
$this->setAttribute('filename', $name);
[28] Fix | Delete
$this->setAttribute('index', $index);
[29] Fix | Delete
}
[30] Fix | Delete
protected function addGetTemplate(\WPML\Core\Twig\Compiler $compiler)
[31] Fix | Delete
{
[32] Fix | Delete
$compiler->write('$this->loadTemplate(')->string($this->getAttribute('name'))->raw(', ')->repr($this->getTemplateName())->raw(', ')->repr($this->getTemplateLine())->raw(', ')->string($this->getAttribute('index'))->raw(')');
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
\class_alias('WPML\\Core\\Twig\\Node\\EmbedNode', 'WPML\\Core\\Twig_Node_Embed');
[36] Fix | Delete
[37] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function