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.../public_h.../wp-conte.../plugins/wordpres.../admin/menu
File: class-replacevar-field.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WPSEO plugin file.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WPSEO\Admin\Menu
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Renders a single replacement variable field.
[8] Fix | Delete
*/
[9] Fix | Delete
class WPSEO_Replacevar_Field {
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* Forms instance.
[13] Fix | Delete
*
[14] Fix | Delete
* @var Yoast_Form Yoast
[15] Fix | Delete
*/
[16] Fix | Delete
private $yform;
[17] Fix | Delete
[18] Fix | Delete
/**
[19] Fix | Delete
* The id for the hidden field.
[20] Fix | Delete
*
[21] Fix | Delete
* @var string
[22] Fix | Delete
*/
[23] Fix | Delete
private $field_id;
[24] Fix | Delete
[25] Fix | Delete
/**
[26] Fix | Delete
* The label for the field.
[27] Fix | Delete
*
[28] Fix | Delete
* @var string
[29] Fix | Delete
*/
[30] Fix | Delete
private $label;
[31] Fix | Delete
[32] Fix | Delete
/**
[33] Fix | Delete
* The page type for the context of the recommended replace vars.
[34] Fix | Delete
*
[35] Fix | Delete
* @var string
[36] Fix | Delete
*/
[37] Fix | Delete
private $page_type_recommended;
[38] Fix | Delete
[39] Fix | Delete
/**
[40] Fix | Delete
* The page type for the context of the editor specific replace vars.
[41] Fix | Delete
*
[42] Fix | Delete
* @var string
[43] Fix | Delete
*/
[44] Fix | Delete
private $page_type_specific;
[45] Fix | Delete
[46] Fix | Delete
/**
[47] Fix | Delete
* Constructs the object.
[48] Fix | Delete
*
[49] Fix | Delete
* @param Yoast_Form $yform Yoast forms.
[50] Fix | Delete
* @param string $field_id The field id.
[51] Fix | Delete
* @param string $label The field label.
[52] Fix | Delete
* @param string $page_type_recommended The page type for the context of the recommended replace vars.
[53] Fix | Delete
* @param string $page_type_specific The page type for the context of the editor specific replace vars.
[54] Fix | Delete
*/
[55] Fix | Delete
public function __construct( Yoast_Form $yform, $field_id, $label, $page_type_recommended, $page_type_specific ) {
[56] Fix | Delete
$this->yform = $yform;
[57] Fix | Delete
$this->field_id = $field_id;
[58] Fix | Delete
$this->label = $label;
[59] Fix | Delete
$this->page_type_recommended = $page_type_recommended;
[60] Fix | Delete
$this->page_type_specific = $page_type_specific;
[61] Fix | Delete
}
[62] Fix | Delete
[63] Fix | Delete
/**
[64] Fix | Delete
* Renders a div for the react application to mount to, and hidden inputs where
[65] Fix | Delete
* the app should store it's value so they will be properly saved when the form
[66] Fix | Delete
* is submitted.
[67] Fix | Delete
*
[68] Fix | Delete
* @return void
[69] Fix | Delete
*/
[70] Fix | Delete
public function render() {
[71] Fix | Delete
$this->yform->hidden( $this->field_id, $this->field_id );
[72] Fix | Delete
[73] Fix | Delete
printf(
[74] Fix | Delete
'<div
[75] Fix | Delete
data-react-replacevar-field
[76] Fix | Delete
data-react-replacevar-field-id="%1$s"
[77] Fix | Delete
data-react-replacevar-field-label="%2$s"
[78] Fix | Delete
data-react-replacevar-page-type-recommended="%3$s"
[79] Fix | Delete
data-react-replacevar-page-type-specific="%4$s"></div>',
[80] Fix | Delete
esc_attr( $this->field_id ),
[81] Fix | Delete
esc_attr( $this->label ),
[82] Fix | Delete
esc_attr( $this->page_type_recommended ),
[83] Fix | Delete
esc_attr( $this->page_type_specific )
[84] Fix | Delete
);
[85] Fix | Delete
}
[86] Fix | Delete
}
[87] Fix | Delete
[88] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function