Skip to content
This repository has been archived by the owner on Feb 23, 2019. It is now read-only.

Save Cloudflare Settings - SSL Update Failure #334

Merged
merged 2 commits into from
Jan 29, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions Extension_CloudFlare_Page_View.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@
'label' => __( 'Cache time:', 'w3-total-cache' ),
'control' => 'textbox',
'description' =>
'How many minutes data retrieved from CloudFlare:' .
'should be stored. Minimum is 1 minute.'
'How many minutes data retrieved from CloudFlare should be stored. Minimum is 1 minute.'
)
);

Expand Down
2 changes: 1 addition & 1 deletion Extension_CloudFlare_SettingsForUi.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ static public function settings_set( $api ) {

// convert checkbox value to on/off
// excetion: rocket loader is not checkbox so contains real value
if ( $settings_key != 'rocket_loader' ) {
if ( $settings_key != 'rocket_loader' && $settings_key != 'ssl' ) {
if ( $current_value == 'on' || $current_value == 'off' ) {
// it's boolean, so control is checkbox - convert it
$value = ( $value == '0' ? 'off' : 'on' );
Expand Down