Fix undefined array key warning
This commit is contained in:
parent
4788573335
commit
0154155d83
@ -1072,9 +1072,9 @@ if ( ! current_user_can( 'manage_options' ) ) {
|
||||
global $current_user, $pagenow;
|
||||
|
||||
// Only affect media library on admin side
|
||||
if(
|
||||
'admin-ajax.php' != $pagenow ||
|
||||
$_REQUEST['action'] != 'query-attachments'
|
||||
if (
|
||||
'admin-ajax.php' !== $pagenow ||
|
||||
( $_REQUEST['action'] ?? 0 ) !== 'query-attachments'
|
||||
) {
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user