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/sitepres.../classes/utilitie.../admin
File: wpml-admin-pagination-factory.php
<?php
[0] Fix | Delete
[1] Fix | Delete
class WPML_Admin_Pagination_Factory {
[2] Fix | Delete
/**
[3] Fix | Delete
* @var int
[4] Fix | Delete
*/
[5] Fix | Delete
private $items_per_page;
[6] Fix | Delete
[7] Fix | Delete
public function __construct( $items_per_page ) {
[8] Fix | Delete
$this->items_per_page = $items_per_page;
[9] Fix | Delete
}
[10] Fix | Delete
[11] Fix | Delete
/**
[12] Fix | Delete
* @return WPML_Admin_Pagination_Render
[13] Fix | Delete
*/
[14] Fix | Delete
public function create( $total_items, $page_param_name = 'paged' ) {
[15] Fix | Delete
$pagination = new WPML_Admin_Pagination();
[16] Fix | Delete
$pagination->set_total_items( $total_items );
[17] Fix | Delete
$pagination->set_items_per_page( $this->items_per_page );
[18] Fix | Delete
$pagination->set_page_param_name($page_param_name);
[19] Fix | Delete
[20] Fix | Delete
$page = 1;
[21] Fix | Delete
if ( isset( $_GET[ $page_param_name ] ) ) {
[22] Fix | Delete
$page = filter_var( $_GET[ $page_param_name ], FILTER_SANITIZE_NUMBER_INT );
[23] Fix | Delete
}
[24] Fix | Delete
$pagination->set_current_page( $page );
[25] Fix | Delete
[26] Fix | Delete
$template = new WPML_Twig_Template_Loader(
[27] Fix | Delete
array(
[28] Fix | Delete
WPML_PLUGIN_PATH . '/templates/pagination'
[29] Fix | Delete
)
[30] Fix | Delete
);
[31] Fix | Delete
[32] Fix | Delete
return new WPML_Admin_Pagination_Render( $template->get_template(), $pagination );
[33] Fix | Delete
}
[34] Fix | Delete
}
[35] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function