The value sent from Button “Save All Changes”
-
Hi,
I found the value sent from the button “Save All Changes” was “Save All Changes”, but this value must be inconsistent with localized button string “Save All Changes”.
This issue will cause the button “Save All Changes” doesn’t work if this button’s string was localized (for any language).
admin\partials\nginx-helper-general-options.php, line 45.
Original Code:
if ( isset( $all_inputs['smart_http_expire_save'] ) && 'Save All Changes' === $all_inputs['smart_http_expire_save'] ) {Suggested Code:
if ( isset( $all_inputs['smart_http_expire_save'] ) && __( 'Save All Changes', 'nginx-helper' ) === $all_inputs['smart_http_expire_save'] ) {Or, don’t verify this value sent from this button.
Regards,
Alex
The topic ‘The value sent from Button “Save All Changes”’ is closed to new replies.