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/clone/wp-conte.../plugins/popup-ma.../includes/function.../themes
File: conditionals.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Functions for Theme Conditionals
[2] Fix | Delete
*
[3] Fix | Delete
* @package PUM
[4] Fix | Delete
* @copyright Copyright (c) 2023, Code Atlantic LLC
[5] Fix | Delete
*/
[6] Fix | Delete
[7] Fix | Delete
if ( ! defined( 'ABSPATH' ) ) {
[8] Fix | Delete
exit; // Exit if accessed directly
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* Checks if the $theme is valid.
[13] Fix | Delete
*
[14] Fix | Delete
* @param mixed|PUM_Model_Theme $theme
[15] Fix | Delete
*
[16] Fix | Delete
* @return bool
[17] Fix | Delete
*/
[18] Fix | Delete
function pum_is_theme( $theme ) {
[19] Fix | Delete
return is_object( $theme ) && is_numeric( $theme->ID ) && $theme->is_valid();
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
/**
[23] Fix | Delete
* Tests a given value to see if its a valid Theme model.
[24] Fix | Delete
*
[25] Fix | Delete
* @param mixed|PUM_Model_Theme $theme
[26] Fix | Delete
*
[27] Fix | Delete
* @return bool
[28] Fix | Delete
*/
[29] Fix | Delete
function pum_is_theme_object( $theme ) {
[30] Fix | Delete
return is_a( $theme, 'PUM_Model_Theme' );
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function