button filter fix
This commit is contained in:
parent
abd6231fc7
commit
727c9d8c35
@ -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 );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user