Skip to content

Commit d864d9e

Browse files
committed
Fix function prefixes to avoid clash
1 parent 0c1b2b2 commit d864d9e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

genesis-js-no-js.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,20 @@
3939

4040
if ( version_compare( PHP_VERSION, '7.1', '<' ) ) {
4141
if ( current_user_can( 'activate_plugins' ) ) {
42-
add_action( 'admin_init', 'plugin_slug_deactivate' );
43-
add_action( 'admin_notices', 'plugin_slug_deactivation_notice' );
42+
add_action( 'admin_init', 'genesis_js_no_js_deactivate' );
43+
add_action( 'admin_notices', 'genesis_js_no_js_deactivation_notice' );
4444

4545
/**
4646
* Deactivate the plugin.
4747
*/
48-
function plugin_slug_deactivate() {
48+
function genesis_js_no_js_deactivate() {
4949
deactivate_plugins( plugin_basename( __FILE__ ) );
5050
}
5151

5252
/**
5353
* Show deactivation admin notice.
5454
*/
55-
function plugin_slug_deactivation_notice() {
55+
function genesis_js_no_js_deactivation_notice() {
5656
$notice = sprintf(
5757
// Translators: 1: Required PHP version, 2: Current PHP version.
5858
'<strong>Plugin name</strong> requires PHP %1$s to run. This site uses %2$s, so the plugin has been <strong>deactivated</strong>.',

0 commit comments

Comments
 (0)