diff --git a/ossdl-cdn.php b/ossdl-cdn.php index 60e7c15b..20934b40 100644 --- a/ossdl-cdn.php +++ b/ossdl-cdn.php @@ -132,6 +132,8 @@ function scossdl_off_options() { update_option('ossdl_off_include_dirs', $_POST['ossdl_off_include_dirs'] == '' ? 'wp-content,wp-includes' : $_POST['ossdl_off_include_dirs']); update_option('ossdl_off_exclude', $_POST['ossdl_off_exclude']); update_option('ossdl_cname', $_POST['ossdl_cname']); + if ( !isset( $_POST[ 'ossdl_https' ] ) ) + $_POST[ 'ossdl_https' ] = 0; update_option('ossdl_https', (int)$_POST['ossdl_https']); if ( isset( $_POST[ 'ossdlcdn' ] ) ) { $ossdlcdn = 1; @@ -163,7 +165,7 @@ function scossdl_off_options() { -
+
/ please.
Example: %2$s.', 'wp-super-cache' ), get_option( 'siteurl' ), $example_cdn_uri ); ?>
diff --git a/wp-cache.php b/wp-cache.php index 973cd7ed..0b5a9e92 100644 --- a/wp-cache.php +++ b/wp-cache.php @@ -1704,7 +1704,11 @@ function wp_cache_edit_max_time () { } elseif ( $valid_nonce ) { // clock wp_clear_scheduled_hook( 'wp_cache_gc' ); $cache_schedule_type = 'time'; - if ( !isset( $_POST[ 'cache_scheduled_time' ] ) || $_POST[ 'cache_scheduled_time' ] == '' ) + if ( !isset( $_POST[ 'cache_scheduled_time' ] ) || + $_POST[ 'cache_scheduled_time' ] == '' || + 5 != strlen( $_POST[ 'cache_scheduled_time' ] ) || + ":" != substr( $_POST[ 'cache_scheduled_time' ], 2, 1 ) + ) $_POST[ 'cache_scheduled_time' ] = '00:00'; $cache_scheduled_time = $_POST[ 'cache_scheduled_time' ]; $schedules = wp_get_schedules(); @@ -1753,12 +1757,12 @@ function wp_cache_edit_max_time () { echo ''; echo ''; echo ''; - echo "\n"; + echo "\n"; echo "\n"; echo '
" . __( "seconds", 'wp-super-cache' ) . "
" . __( "seconds", 'wp-super-cache' ) . "
" . __( 'How long should cached pages remain fresh? Set to 0 to disable garbage collection. A good starting point is 3600 seconds.', 'wp-super-cache' ) . "
' . __( 'Scheduler', 'wp-super-cache' ) . ''; - echo ""; + echo ""; echo ''; - echo ""; + echo ""; $schedules = wp_get_schedules(); echo "
" . __( "seconds", 'wp-super-cache' ) . '
' . __( 'Check for stale cached files every interval seconds.', 'wp-super-cache' ) . "
" . __( "seconds", 'wp-super-cache' ) . '
' . __( 'Check for stale cached files every interval seconds.', 'wp-super-cache' ) . "
" . __( "HH:MM", 'wp-super-cache' ) . "
" . __( 'Check for stale cached files at this time (UTC) or starting at this time every interval below.', 'wp-super-cache' ) . "
" . __( "HH:MM", 'wp-super-cache' ) . "
" . __( 'Check for stale cached files at this time (UTC) or starting at this time every interval below.', 'wp-super-cache' ) . "