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;
|
global $current_user, $pagenow;
|
||||||
|
|
||||||
// Only affect media library on admin side
|
// Only affect media library on admin side
|
||||||
if(
|
if (
|
||||||
'admin-ajax.php' != $pagenow ||
|
'admin-ajax.php' !== $pagenow ||
|
||||||
$_REQUEST['action'] != 'query-attachments'
|
( $_REQUEST['action'] ?? 0 ) !== 'query-attachments'
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user