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/wordpres.../admin/tracking
File: class-tracking-theme-data.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WPSEO plugin file.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WPSEO\Admin\Tracking
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Represents the theme data.
[8] Fix | Delete
*/
[9] Fix | Delete
class WPSEO_Tracking_Theme_Data implements WPSEO_Collection {
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* Returns the collection data.
[13] Fix | Delete
*
[14] Fix | Delete
* @return array The collection data.
[15] Fix | Delete
*/
[16] Fix | Delete
public function get() {
[17] Fix | Delete
$theme = wp_get_theme();
[18] Fix | Delete
[19] Fix | Delete
return [
[20] Fix | Delete
'theme' => [
[21] Fix | Delete
'name' => $theme->get( 'Name' ),
[22] Fix | Delete
'url' => $theme->get( 'ThemeURI' ),
[23] Fix | Delete
'version' => $theme->get( 'Version' ),
[24] Fix | Delete
'author' => [
[25] Fix | Delete
'name' => $theme->get( 'Author' ),
[26] Fix | Delete
'url' => $theme->get( 'AuthorURI' ),
[27] Fix | Delete
],
[28] Fix | Delete
'parentTheme' => $this->get_parent_theme( $theme ),
[29] Fix | Delete
'blockTemplateSupport' => current_theme_supports( 'block-templates' ),
[30] Fix | Delete
'isBlockTheme' => function_exists( 'wp_is_block_theme' ) && wp_is_block_theme(),
[31] Fix | Delete
],
[32] Fix | Delete
];
[33] Fix | Delete
}
[34] Fix | Delete
[35] Fix | Delete
/**
[36] Fix | Delete
* Returns the name of the parent theme.
[37] Fix | Delete
*
[38] Fix | Delete
* @param WP_Theme $theme The theme object.
[39] Fix | Delete
*
[40] Fix | Delete
* @return string|null The name of the parent theme or null.
[41] Fix | Delete
*/
[42] Fix | Delete
private function get_parent_theme( WP_Theme $theme ) {
[43] Fix | Delete
if ( is_child_theme() ) {
[44] Fix | Delete
return $theme->get( 'Template' );
[45] Fix | Delete
}
[46] Fix | Delete
[47] Fix | Delete
return null;
[48] Fix | Delete
}
[49] Fix | Delete
}
[50] Fix | Delete
[51] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function