Skip to content

Commit d4ff144

Browse files
fix: php
1 parent b560789 commit d4ff144

File tree

2 files changed

+3
-20
lines changed

2 files changed

+3
-20
lines changed

inc/admin.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,6 +2113,9 @@ private function get_dashboard_strings() {
21132113
'medium_optimization' => __( '🤓 We are on the right track, <strong>{ratio}</strong> squeezed.', 'optimole-wp' ),
21142114
'big_optimization' => __( '❤️❤️❤️ Our moles just nailed it, this one is <strong>{ratio}</strong> smaller.', 'optimole-wp' ),
21152115
],
2116+
'csat' => [
2117+
'close' => __( 'Close', 'optimole-wp' ),
2118+
],
21162119
'cron_error' => sprintf( /* translators: 1 is code to disable cron, 2 value of the constant */ __( 'It seems that you have the %1$s constant defined as %2$s. The offloading process uses cron events to offload the images in the background. Please remove the constant from your wp-config.php file in order for the offloading process to work.', 'optimole-wp' ), '<code>DISABLE_WP_CRON</code>', '<code>true</code>' ),
21172120
'cancel' => __( 'Cancel', 'optimole-wp' ),
21182121
'optimization_status' => [

inc/settings.php

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@ public function __construct() {
172172
}
173173
}
174174
}
175-
176-
add_action( 'init', [ $this, 'register_settings' ] );
177175
}
178176

179177
/**
@@ -734,24 +732,6 @@ public function get_raw_settings() {
734732
return get_option( $this->namespace, false );
735733
}
736734

737-
/**
738-
* Get settings for CSAT.
739-
*
740-
* @return void
741-
*/
742-
public function register_settings() {
743-
register_setting(
744-
'optml_settings',
745-
'optml_csat',
746-
[
747-
'type' => 'string',
748-
'sanitize_callback' => 'sanitize_text_field',
749-
'show_in_rest' => true,
750-
'default' => '{}',
751-
]
752-
);
753-
}
754-
755735

756736
/**
757737
* Clear cache.

0 commit comments

Comments
 (0)