Skip to content

Commit 5da5f85

Browse files
committed
Fix performance issue for content restriction addon
1 parent 73662c3 commit 5da5f85

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

includes/functions.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ function wpum_get_pages( $force = false ) {
2828
$pages = $transient;
2929
} else {
3030
$available_pages = get_pages( [
31-
'post_status' => 'publish,private',
32-
] );
31+
'post_status' => 'publish,private',
32+
'wpum_restrict_bypass' => true,
33+
] );
3334
if ( ! empty( $available_pages ) ) {
3435
foreach ( $available_pages as $page ) {
3536
$pages[] = array(

0 commit comments

Comments
 (0)