- fixed get posts;

This commit is contained in:
nikitozzzzzzz
2017-11-10 16:47:48 +02:00
parent a6c111e49f
commit 5c8b9b10f5
+2 -1
View File
@@ -1022,7 +1022,8 @@ $roles_array = UM()->roles()->get_roles( false, array( 'administrator' ) );
$posts = get_posts( array(
'meta_key' => '_um_custom_access_settings',
'meta_value' => '1',
'fields' => 'ids'
'fields' => 'ids',
'numberposts' => -1
) );
if ( ! empty( $posts ) ) {
foreach ( $posts as $post_id ) {