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

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5902
    Addiction Agency
    Participant

    Hello,
    We create a specific editor profil. It didn’t need the field page attributes on left column of page editor. We check it on metaboxes to cancel its visibility on the page editor but it didn’t work: it’s correctly checked on the plug-in but the pages still show attributes page.
    How can we fix it ?
    Thanks for your help,
    Gislaine

    #5903
    Vladimir
    Keymaster

    Hi,

    Can you record short video with settings you made? Or send admin credentials to support [at-sign] role-editor.com in order I can look at your settings on-line.

    #5906
    Addiction Agency
    Participant

    Hi Vladimir,
    Thank you. Here is the video : https://drive.google.com/file/d/1H17DBlqBGzVYY1XGwhgbCP-iUqUkvDdL/view
    Can you help us ?
    Thank you,
    Gislaine

    #5907
    Vladimir
    Keymaster

    Hi Gislaine,

    I confirm the issue. It stopped work somehow for the related Gutenberg sidebar sections.

    I will try to find a solution and publish a fix.

    Thanks for your help.

    #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.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.