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/popup-ma.../trunk/includes/function.../utils
File: format.php
<?php
[0] Fix | Delete
/**
[1] Fix | Delete
* Functions for Format Utility
[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
* @param int $time
[13] Fix | Delete
* @param int|null $current
[14] Fix | Delete
*
[15] Fix | Delete
* @return mixed
[16] Fix | Delete
*/
[17] Fix | Delete
function pum_human_time( $time, $current = null ) {
[18] Fix | Delete
return PUM_Utils_Format::human_time( $time, $current );
[19] Fix | Delete
}
[20] Fix | Delete
[21] Fix | Delete
/**
[22] Fix | Delete
* @param int|float $number
[23] Fix | Delete
* @param string $format
[24] Fix | Delete
*
[25] Fix | Delete
* @return int|string
[26] Fix | Delete
*/
[27] Fix | Delete
function pum_format_number( $number, $format = '' ) {
[28] Fix | Delete
return PUM_Utils_Format::number( $number, $format );
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
/**
[32] Fix | Delete
* @param int|float $number
[33] Fix | Delete
* @param string $format U|human|human-readable
[34] Fix | Delete
*
[35] Fix | Delete
* @return int|string
[36] Fix | Delete
*/
[37] Fix | Delete
function pum_format_time( $number, $format = '' ) {
[38] Fix | Delete
return PUM_Utils_Format::time( $number, $format );
[39] Fix | Delete
}
[40] Fix | Delete
[41] Fix | Delete
/**
[42] Fix | Delete
* Removes <p></p> around URLs
[43] Fix | Delete
*
[44] Fix | Delete
* @param string $content
[45] Fix | Delete
*
[46] Fix | Delete
* @return string
[47] Fix | Delete
*/
[48] Fix | Delete
function pum_unwrap_urls( $content = '' ) {
[49] Fix | Delete
return PUM_Utils_Format::unwrap_urls( $content );
[50] Fix | Delete
}
[51] Fix | Delete
[52] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function