Skip to content

Commit a3257b9

Browse files
authored
Update force-https.php
1 parent c5694a0 commit a3257b9

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Diff for: force-https.php

+6-7
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,25 @@
33
Plugin Name: Force HTTPS
44
Plugin URI: https://www.littlebizzy.com/plugins/force-https
55
Description: HTTPS enforcement for WordPress
6-
Version: 2.0.1
6+
Version: 2.0.2
77
Author: LittleBizzy
88
Author URI: https://www.littlebizzy.com
99
License: GPLv3
1010
License URI: http://www.gnu.org/licenses/gpl-3.0.html
1111
GitHub Plugin URI: littlebizzy/force-https
1212
Primary Branch: master
13-
Prefix: FHTTPS
1413
*/
1514

16-
// Exit if accessed directly
17-
if (!defined('ABSPATH')) {
15+
// prevent direct access
16+
if ( ! defined( 'ABSPATH' ) ) {
1817
exit;
1918
}
2019

21-
// Disable WordPress.org updates for this plugin
22-
add_filter('gu_override_dot_org', function ($overrides) {
20+
// disable wordpress.org updates for this plugin
21+
add_filter( 'gu_override_dot_org', function( $overrides ) {
2322
$overrides[] = 'force-https/force-https.php';
2423
return $overrides;
25-
});
24+
}, 999 );
2625

2726
// Force HTTPS redirection for all non-HTTPS requests
2827
add_action('init', function () {

0 commit comments

Comments
 (0)