From 727c9d8c3533099e7609fa34b0d1acd7065b1183 Mon Sep 17 00:00:00 2001 From: joshp Date: Sat, 13 Mar 2021 02:13:46 -0500 Subject: [PATCH] button filter fix --- authMgrPlus/plugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authMgrPlus/plugin.php b/authMgrPlus/plugin.php index 6b0f7c0..ddcff1e 100644 --- a/authMgrPlus/plugin.php +++ b/authMgrPlus/plugin.php @@ -168,7 +168,7 @@ function amp_ajax_button_check( $actions, $keyword ) { // define restricted buttons $restricted_buttons = array('delete', 'edit'); if ( 'YOURLS_PRIVATE_INFOS' === true ) - array_push( $restricted_buttons, 'stats'); + $restricted_buttons += ['stats']; $restricted_buttons = yourls_apply_filter( 'amp_restricted_buttons', $restricted_buttons );