Skip to content

Commit eb70bd8

Browse files
authored
Update anonymous-bbpress.php
1 parent 7d70720 commit eb70bd8

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

anonymous-bbpress.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,26 @@
33
Plugin Name: Anonymous bbPress
44
Plugin URI: https://www.littlebizzy.com/plugins/anonymous-bbpress
55
Description: Anonymous bbPress guest posting
6-
Version: 1.1.0
6+
Version: 1.1.1
7+
Requires PHP: 7.0
78
Author: LittleBizzy
89
Author URI: https://www.littlebizzy.com
910
License: GPLv3
1011
License URI: https://www.gnu.org/licenses/gpl-3.0.html
1112
GitHub Plugin URI: littlebizzy/anonymous-bbpress
1213
Primary Branch: main
13-
Requires PHP: 7.0
1414
*/
1515

16-
// Disable WordPress.org updates for this plugin
17-
add_filter('gu_override_dot_org', function ($overrides) {
16+
// prevent direct access
17+
if ( ! defined( 'ABSPATH' ) ) {
18+
exit;
19+
}
20+
21+
// disable wordpress.org updates for this plugin
22+
add_filter( 'gu_override_dot_org', function( $overrides ) {
1823
$overrides[] = 'anonymous-bbpress/anonymous-bbpress.php';
1924
return $overrides;
20-
});
25+
}, 999 );
2126

2227
/**
2328
* Initialize the plugin.

0 commit comments

Comments
 (0)