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/wordpres.../admin/tracking
File: class-tracking-default-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 default data.
[8] Fix | Delete
*/
[9] Fix | Delete
class WPSEO_Tracking_Default_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
return [
[18] Fix | Delete
'siteTitle' => get_option( 'blogname' ),
[19] Fix | Delete
'@timestamp' => (int) gmdate( 'Uv' ),
[20] Fix | Delete
'wpVersion' => $this->get_wordpress_version(),
[21] Fix | Delete
'homeURL' => home_url(),
[22] Fix | Delete
'adminURL' => admin_url(),
[23] Fix | Delete
'isMultisite' => is_multisite(),
[24] Fix | Delete
'siteLanguage' => get_bloginfo( 'language' ),
[25] Fix | Delete
'gmt_offset' => get_option( 'gmt_offset' ),
[26] Fix | Delete
'timezoneString' => get_option( 'timezone_string' ),
[27] Fix | Delete
'migrationStatus' => get_option( 'yoast_migrations_free' ),
[28] Fix | Delete
'countPosts' => $this->get_post_count( 'post' ),
[29] Fix | Delete
'countPages' => $this->get_post_count( 'page' ),
[30] Fix | Delete
];
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
/**
[34] Fix | Delete
* Returns the number of posts of a certain type.
[35] Fix | Delete
*
[36] Fix | Delete
* @param string $post_type The post type return the count for.
[37] Fix | Delete
*
[38] Fix | Delete
* @return int The count for this post type.
[39] Fix | Delete
*/
[40] Fix | Delete
protected function get_post_count( $post_type ) {
[41] Fix | Delete
$count = wp_count_posts( $post_type );
[42] Fix | Delete
if ( isset( $count->publish ) ) {
[43] Fix | Delete
return $count->publish;
[44] Fix | Delete
}
[45] Fix | Delete
return 0;
[46] Fix | Delete
}
[47] Fix | Delete
[48] Fix | Delete
/**
[49] Fix | Delete
* Returns the WordPress version.
[50] Fix | Delete
*
[51] Fix | Delete
* @return string The version.
[52] Fix | Delete
*/
[53] Fix | Delete
protected function get_wordpress_version() {
[54] Fix | Delete
global $wp_version;
[55] Fix | Delete
[56] Fix | Delete
return $wp_version;
[57] Fix | Delete
}
[58] Fix | Delete
}
[59] Fix | Delete
[60] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function