File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 3939
4040if ( 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>. ' ,
You can’t perform that action at this time.
0 commit comments