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/redux-fr.../sample/sections/advanced...
File: field-sanitizing.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Redux Framework field sanitizing config.
[2] Fix | Delete
* For full documentation, please visit: http://devs.redux.io/
[3] Fix | Delete
*
[4] Fix | Delete
* @package Redux Framework
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
defined( 'ABSPATH' ) || exit;
[8] Fix | Delete
[9] Fix | Delete
Redux::set_section(
[10] Fix | Delete
$opt_name,
[11] Fix | Delete
array(
[12] Fix | Delete
'title' => esc_html__( 'Field Sanitizing', 'your-textdomain-here' ),
[13] Fix | Delete
'id' => 'sanitizing',
[14] Fix | Delete
// phpcs:ignore
[15] Fix | Delete
// 'desc' => esc_html__( 'For full documentation on sanitizing, visit: ', 'your-textdomain-here' ) . '<a href="https://devs.redux.io/configuration/fields/sanitizing/" target="_blank">https://devs.redux.io/configuration/fields/sanitizing/</a>',
[16] Fix | Delete
'subsection' => true,
[17] Fix | Delete
'fields' => array(
[18] Fix | Delete
array(
[19] Fix | Delete
'id' => 'opt-text-uppercase',
[20] Fix | Delete
'type' => 'text',
[21] Fix | Delete
'title' => esc_html__( 'Text Option - Force Uppercase', 'your-textdomain-here' ),
[22] Fix | Delete
'subtitle' => esc_html__( 'Uses the strtoupper function to force all uppercase characters.', 'your-textdomain-here' ),
[23] Fix | Delete
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
[24] Fix | Delete
'sanitize' => array( 'strtoupper' ),
[25] Fix | Delete
'default' => 'Force Uppercase',
[26] Fix | Delete
),
[27] Fix | Delete
array(
[28] Fix | Delete
'id' => 'opt-text-sanitize-title',
[29] Fix | Delete
'type' => 'text',
[30] Fix | Delete
'title' => esc_html__( 'Text Option - Sanitize Title', 'your-textdomain-here' ),
[31] Fix | Delete
'subtitle' => esc_html__( 'Uses the WordPress sanitize_title function to format text.', 'your-textdomain-here' ),
[32] Fix | Delete
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
[33] Fix | Delete
'sanitize' => array( 'sanitize_title' ),
[34] Fix | Delete
'default' => 'Sanitize This Title',
[35] Fix | Delete
),
[36] Fix | Delete
array(
[37] Fix | Delete
'id' => 'opt-text-custom-sanitize',
[38] Fix | Delete
'type' => 'text',
[39] Fix | Delete
'title' => esc_html__( 'Text Option - Custom Sanitize', 'your-textdomain-here' ),
[40] Fix | Delete
'subtitle' => esc_html__( 'Uses the custom function redux_custom_sanitize to capitalize every other letter.', 'your-textdomain-here' ),
[41] Fix | Delete
'desc' => esc_html__( 'This is the description field, again good for additional info.', 'your-textdomain-here' ),
[42] Fix | Delete
'sanitize' => array( 'redux_custom_sanitize' ),
[43] Fix | Delete
'default' => 'Sanitize This Text',
[44] Fix | Delete
),
[45] Fix | Delete
),
[46] Fix | Delete
)
[47] Fix | Delete
);
[48] Fix | Delete
[49] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function