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.../clone/wp-conte.../plugins/themify-.../themify/plugin-c...
File: wpmlstrings.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Themify Compatibility Code
[2] Fix | Delete
*
[3] Fix | Delete
* @package Themify
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* WPML String Translation
[8] Fix | Delete
* @link https://wpml.org/
[9] Fix | Delete
*/
[10] Fix | Delete
class Themify_Compat_wpmlstrings {
[11] Fix | Delete
[12] Fix | Delete
static function init() {
[13] Fix | Delete
if ( function_exists( 'icl_register_string' ) ) {
[14] Fix | Delete
self::register_wpml_strings( 'Themify', 'Themify Option', themify_get_data() );
[15] Fix | Delete
}
[16] Fix | Delete
}
[17] Fix | Delete
[18] Fix | Delete
/**
[19] Fix | Delete
* Make dynamic strings in Themify theme available for translation with WPML String Translation
[20] Fix | Delete
* @param $context
[21] Fix | Delete
* @param $name
[22] Fix | Delete
* @param $value
[23] Fix | Delete
* @since 1.5.3
[24] Fix | Delete
*/
[25] Fix | Delete
public static function register_wpml_strings( $context, $name, $value ) {
[26] Fix | Delete
$value = maybe_unserialize( $value );
[27] Fix | Delete
if ( is_array( $value ) ) {
[28] Fix | Delete
foreach ( $value as $k => $v ) {
[29] Fix | Delete
self::register_wpml_strings( $context, $k, $v );
[30] Fix | Delete
}
[31] Fix | Delete
} else {
[32] Fix | Delete
$translatable = array(
[33] Fix | Delete
'setting-footer_text_left',
[34] Fix | Delete
'setting-footer_text_right',
[35] Fix | Delete
'setting-homepage_welcome',
[36] Fix | Delete
'setting-action_text',
[37] Fix | Delete
'setting-default_more_text',
[38] Fix | Delete
);
[39] Fix | Delete
foreach ( array('one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten') as $option ) {
[40] Fix | Delete
$translatable[] = 'setting-slider_images_' . $option . '_title';
[41] Fix | Delete
$translatable[] = 'setting-header_slider_images_' . $option . '_title';
[42] Fix | Delete
$translatable[] = 'setting-footer_slider_images_' . $option . '_title';
[43] Fix | Delete
}
[44] Fix | Delete
if (stripos( $name, 'title_themify-link' ) || in_array( $name, $translatable, true ) ) {
[45] Fix | Delete
icl_register_string( $context, $name, $value );
[46] Fix | Delete
}
[47] Fix | Delete
}
[48] Fix | Delete
}
[49] Fix | Delete
}
[50] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function