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.../includes/admin
File: class-wws-admin-notifications.php
<?php
[0] Fix | Delete
[1] Fix | Delete
// Preventing to direct access
[2] Fix | Delete
defined( 'ABSPATH' ) OR die( 'Direct access not acceptable!' );
[3] Fix | Delete
[4] Fix | Delete
class WWS_Admin_Notifications {
[5] Fix | Delete
[6] Fix | Delete
public function __construct() {
[7] Fix | Delete
add_action( 'admin_notices', array( $this, 'plugin_update_notification' ) );
[8] Fix | Delete
add_action( 'wws_admin_notifications', array( $this, 'save_settings_notifications' ), 20 );
[9] Fix | Delete
add_action( 'wws_admin_notifications', array( $this, 'review_notification' ), 25 );
[10] Fix | Delete
}
[11] Fix | Delete
[12] Fix | Delete
public function save_settings_notifications() {
[13] Fix | Delete
if ( isset( $_POST['wws_edit_multi_account_submit'] )
[14] Fix | Delete
|| isset( $_POST['wws_add_multi_account_submit'] )
[15] Fix | Delete
|| isset( $_GET['wws_multi_account_delete'] ) ) {
[16] Fix | Delete
?>
[17] Fix | Delete
<div class="notice notice-success is-dismissible">
[18] Fix | Delete
<p><?php esc_html_e( 'Settings saved.', 'wc-wws' ) ?></p>
[19] Fix | Delete
</div>
[20] Fix | Delete
<?php
[21] Fix | Delete
}
[22] Fix | Delete
if ( isset( $_POST['wws_layout'] ) ) {
[23] Fix | Delete
?>
[24] Fix | Delete
<div class="notice notice-success is-dismissible">
[25] Fix | Delete
<p><?php wp_kses_post( printf( __( 'Settings saved. If you changed the layout then please go to <a href="%s">Manage Support Persons</a> to add or modify the support persons.', 'wc-wws' ), admin_url( 'admin.php?page=wc-whatsapp-support&tab=manage_support_persons' ) ) ) ?></p>
[26] Fix | Delete
</div>
[27] Fix | Delete
<?php
[28] Fix | Delete
}
[29] Fix | Delete
}
[30] Fix | Delete
[31] Fix | Delete
public function review_notification() {
[32] Fix | Delete
if ( 'yes' !== get_option( 'wws_admin_plugin_review' ) ) {
[33] Fix | Delete
require_once WWS_PLUGIN_PATH . 'includes/admin/views/notifications/admin-review.php';
[34] Fix | Delete
}
[35] Fix | Delete
}
[36] Fix | Delete
[37] Fix | Delete
public function plugin_update_notification() {
[38] Fix | Delete
if ( 'yes' !== get_option( 'wws_plugin_update_notice_status' ) ) {
[39] Fix | Delete
require_once WWS_PLUGIN_PATH . 'includes/admin/views/notifications/view-admin-update-plugin-notice.php';
[40] Fix | Delete
}
[41] Fix | Delete
}
[42] Fix | Delete
[43] Fix | Delete
} // end of class WWS_Admin_Notifications
[44] Fix | Delete
[45] Fix | Delete
$wws_admin_notifications = new WWS_Admin_Notifications;
[46] Fix | Delete
[47] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function