Commit 44093b0 1 parent 74fe7c7 commit 44093b0 Copy full SHA for 44093b0
File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 3
3
/*
4
4
Plugin Name: RRZE Legal
5
5
Plugin URI: https://gitlab.rrze.fau.de/rrze-webteam/rrze-legal
6
- Version: 2.7.13
6
+ Version: 2.7.14
7
7
Description: Legal Mandatory Information & GDPR.
8
8
Author: RRZE Webteam
9
9
Author URI: https://www.rrze.fau.de
@@ -250,10 +250,11 @@ function loaded()
250
250
}
251
251
// Trigger the 'loaded' method of the main plugin instance.
252
252
plugin ()->loaded ();
253
- // Check system requirements and store any error messages .
254
- if ($ error = systemRequirements ()) {
253
+ // Check system requirements.
254
+ if (systemRequirements ()) {
255
255
// If there is an error, add an action to display an admin notice with the error message.
256
- add_action ('admin_init ' , function () use ($ error ) {
256
+ add_action ('admin_init ' , function () {
257
+ $ error = systemRequirements ();
257
258
// Check if the current user has the capability to activate plugins.
258
259
if (current_user_can ('activate_plugins ' )) {
259
260
// Get plugin data to retrieve the plugin's name.
You can’t perform that action at this time.
0 commit comments