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.../inc
File: class-wpseo-shortlinker.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* WPSEO plugin file.
[2] Fix | Delete
*
[3] Fix | Delete
* @package WPSEO
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
/**
[7] Fix | Delete
* Helps with creating shortlinks in the plugin.
[8] Fix | Delete
*/
[9] Fix | Delete
class WPSEO_Shortlinker {
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* Builds a URL to use in the plugin as shortlink.
[13] Fix | Delete
*
[14] Fix | Delete
* @param string $url The URL to build upon.
[15] Fix | Delete
*
[16] Fix | Delete
* @return string The final URL.
[17] Fix | Delete
*/
[18] Fix | Delete
public function build_shortlink( $url ) {
[19] Fix | Delete
return YoastSEO()->helpers->short_link->build( $url );
[20] Fix | Delete
}
[21] Fix | Delete
[22] Fix | Delete
/**
[23] Fix | Delete
* Returns a version of the URL with a utm_content with the current version.
[24] Fix | Delete
*
[25] Fix | Delete
* @param string $url The URL to build upon.
[26] Fix | Delete
*
[27] Fix | Delete
* @return string The final URL.
[28] Fix | Delete
*/
[29] Fix | Delete
public static function get( $url ) {
[30] Fix | Delete
return YoastSEO()->helpers->short_link->get( $url );
[31] Fix | Delete
}
[32] Fix | Delete
[33] Fix | Delete
/**
[34] Fix | Delete
* Echoes a version of the URL with a utm_content with the current version.
[35] Fix | Delete
*
[36] Fix | Delete
* @param string $url The URL to build upon.
[37] Fix | Delete
*
[38] Fix | Delete
* @return void
[39] Fix | Delete
*/
[40] Fix | Delete
public static function show( $url ) {
[41] Fix | Delete
YoastSEO()->helpers->short_link->show( $url );
[42] Fix | Delete
}
[43] Fix | Delete
[44] Fix | Delete
/**
[45] Fix | Delete
* Gets the shortlink's query params.
[46] Fix | Delete
*
[47] Fix | Delete
* @return array The shortlink's query params.
[48] Fix | Delete
*/
[49] Fix | Delete
public static function get_query_params() {
[50] Fix | Delete
return YoastSEO()->helpers->short_link->get_query_params();
[51] Fix | Delete
}
[52] Fix | Delete
}
[53] Fix | Delete
[54] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function