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.../trunk/includes/function.../themes
File: getters.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Functions for Theme Getters
[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
* Return the theme id.
[13] Fix | Delete
*
[14] Fix | Delete
* @param int $theme_id
[15] Fix | Delete
*
[16] Fix | Delete
* @return int
[17] Fix | Delete
*/
[18] Fix | Delete
function pum_get_theme_id( $theme_id = 0 ) {
[19] Fix | Delete
if ( ! empty( $theme_id ) && is_numeric( $theme_id ) ) {
[20] Fix | Delete
$_theme_id = $theme_id;
[21] Fix | Delete
} elseif ( is_object( pum()->current_theme ) && is_numeric( pum()->current_theme->ID ) ) {
[22] Fix | Delete
$_theme_id = pum()->current_theme->ID;
[23] Fix | Delete
} else {
[24] Fix | Delete
$_theme_id = 0;
[25] Fix | Delete
}
[26] Fix | Delete
[27] Fix | Delete
return (int) apply_filters( 'pum_get_theme_id', (int) $_theme_id, $theme_id );
[28] Fix | Delete
}
[29] Fix | Delete
[30] Fix | Delete
/**
[31] Fix | Delete
* @param int $theme_id
[32] Fix | Delete
*
[33] Fix | Delete
* @return array
[34] Fix | Delete
*/
[35] Fix | Delete
function pum_get_theme_generated_styles( $theme_id = 0 ) {
[36] Fix | Delete
$theme = pum_get_theme( $theme_id );
[37] Fix | Delete
[38] Fix | Delete
if ( ! pum_is_theme_object( $theme ) ) {
[39] Fix | Delete
return [];
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
return $theme->get_generated_styles();
[43] Fix | Delete
}
[44] Fix | Delete
[45] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function