button filter fix

This commit is contained in:
joshp 2021-03-13 02:13:46 -05:00
parent abd6231fc7
commit 727c9d8c35
No known key found for this signature in database
GPG Key ID: 59903022E9AC64FC
1 changed files with 1 additions and 1 deletions

View File

@ -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 );