Skip to content

Commit f2a90c8

Browse files
authored
Merge pull request #94 from BeAPI/fix/prevent-fatal
fix prevent fatal from dnh_register_notice()
2 parents b3c176d + 1c76c2a commit f2a90c8

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog ##
22

3+
## 2.1.4 - 25 Sept 2023
4+
* Prevent fatal after update
5+
36
## 2.1.3 - 21 Sept 2023
47
* Compat to PHP 8.1 change singleton functions declarations
58

bea-media-analytics.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/*
33
Plugin Name: BEA - Media Analytics
4-
Version: 2.1.3
4+
Version: 2.1.4
55
Plugin URI: https://github.com/BeAPI/bea-media-analytics
66
Description: Find where and how media are used across your site.
77
Author: Be API Technical team
@@ -35,7 +35,7 @@
3535
}
3636

3737
// Plugin constants
38-
define( 'BEA_MEDIA_ANALYTICS_VERSION', '2.1.3' );
38+
define( 'BEA_MEDIA_ANALYTICS_VERSION', '2.1.4' );
3939
define( 'BEA_MEDIA_ANALYTICS_MIN_PHP_VERSION', '5.6' );
4040

4141
// Plugin URL and PATH

classes/plugin.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ public function plugin_admin_notices() {
3939
return;
4040
}
4141
add_action( 'admin_init', function () {
42-
dnh_register_notice( sprintf( 'bea_media_analytics_activated_notice_%s', BEA_MEDIA_ANALYTICS_VERSION ), 'updated', _x( 'As BEA - Media Analytics plugin has been activated, the process of indexing contents will silently launch himself soon.', 'Admin notice', 'bea-media-analytics' ) );
42+
if ( function_exists( 'dnh_register_notice' ) ) {
43+
dnh_register_notice( sprintf( 'bea_media_analytics_activated_notice_%s', BEA_MEDIA_ANALYTICS_VERSION ), 'updated', _x( 'As BEA - Media Analytics plugin has been activated, the process of indexing contents will silently launch himself soon.', 'Admin notice', 'bea-media-analytics' ) );
44+
}
4345
} );
4446
}
4547
}

readme.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ Donate link: http://paypal.me/BeAPI
44
Tags: find, media, usage, find media, analytics
55
Requires at least: 4.6
66
Requires php: 5.6
7-
Tested up to: 4.9.3
8-
Stable tag: 2.1.2
7+
Tested up to: 6.1.3
8+
Stable tag: 2.1.4
99
License: GPLv3 or later
1010
License URI: https://github.com/BeAPI/bea-media-analytics/blob/master/LICENSE.md
1111

0 commit comments

Comments
 (0)