Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit 727c9d8

Browse files
committed
button filter fix
1 parent abd6231 commit 727c9d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

authMgrPlus/plugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ function amp_ajax_button_check( $actions, $keyword ) {
168168
// define restricted buttons
169169
$restricted_buttons = array('delete', 'edit');
170170
if ( 'YOURLS_PRIVATE_INFOS' === true )
171-
array_push( $restricted_buttons, 'stats');
171+
$restricted_buttons += ['stats'];
172172

173173
$restricted_buttons = yourls_apply_filter( 'amp_restricted_buttons', $restricted_buttons );
174174

0 commit comments

Comments
 (0)