Change WordPress user roles and capabilities Forums Bug Reports Metabox check but not functional on editor profil Reply To: Metabox check but not functional on editor profil

#5908
Vladimir
Keymaster

Quick workaround:
Open plugins/user-role-editor-pro/pro/includes/classes/meta-boxes.php and add this element


'pageparentdiv'=>'page-attributes'

to $data array at get_gutenberg_components_former_meta_boxes() method, line #288,
so instead of current


    private function get_gutenberg_components_former_meta_boxes() {
    
        $data = array(
            'categorydiv'=>'taxonomy-panel-category',
            'commentstatusdiv'=>'discussion-panel',
            'postexcerpt'=>'post-excerpt',  
            'postimagediv'=>'featured-image',
            'tagsdiv-post_tag'=>'taxonomy-panel-post_tag',  
            'slugdiv'=>'post-link'
        );
        
        return $data;        
    }
    // end of get_gutenberg_components_former_meta_boxes()

it should be


    private function get_gutenberg_components_former_meta_boxes() {
    
        $data = array(
            'categorydiv'=>'taxonomy-panel-category',
            'commentstatusdiv'=>'discussion-panel',
            'postexcerpt'=>'post-excerpt',  
            'postimagediv'=>'featured-image',
            'tagsdiv-post_tag'=>'taxonomy-panel-post_tag',  
            'slugdiv'=>'post-link',
            'pageparentdiv'=>'page-attributes'
        );
        
        return $data;        
    }
    // end of get_gutenberg_components_former_meta_boxes()

It resolves the issue. This fix will be included into the next update.