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/contact-.../includes
File: capabilities.php
<?php
[0] Fix | Delete
[1] Fix | Delete
add_filter( 'map_meta_cap', 'wpcf7_map_meta_cap', 10, 4 );
[2] Fix | Delete
[3] Fix | Delete
function wpcf7_map_meta_cap( $caps, $cap, $user_id, $args ) {
[4] Fix | Delete
$meta_caps = array(
[5] Fix | Delete
'wpcf7_edit_contact_form' => WPCF7_ADMIN_READ_WRITE_CAPABILITY,
[6] Fix | Delete
'wpcf7_edit_contact_forms' => WPCF7_ADMIN_READ_WRITE_CAPABILITY,
[7] Fix | Delete
'wpcf7_read_contact_form' => WPCF7_ADMIN_READ_CAPABILITY,
[8] Fix | Delete
'wpcf7_read_contact_forms' => WPCF7_ADMIN_READ_CAPABILITY,
[9] Fix | Delete
'wpcf7_delete_contact_form' => WPCF7_ADMIN_READ_WRITE_CAPABILITY,
[10] Fix | Delete
'wpcf7_delete_contact_forms' => WPCF7_ADMIN_READ_WRITE_CAPABILITY,
[11] Fix | Delete
'wpcf7_manage_integration' => 'manage_options',
[12] Fix | Delete
'wpcf7_submit' => 'read',
[13] Fix | Delete
);
[14] Fix | Delete
[15] Fix | Delete
$meta_caps = apply_filters( 'wpcf7_map_meta_cap', $meta_caps );
[16] Fix | Delete
[17] Fix | Delete
$caps = array_diff( $caps, array_keys( $meta_caps ) );
[18] Fix | Delete
[19] Fix | Delete
if ( isset( $meta_caps[$cap] ) ) {
[20] Fix | Delete
$caps[] = $meta_caps[$cap];
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
return $caps;
[24] Fix | Delete
}
[25] Fix | Delete
[26] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function