Change WordPress user roles and capabilities › Forums › Bug Reports › Metabox check but not functional on editor profil
Tagged: metabox, page attributes
- This topic has 4 replies, 2 voices, and was last updated 5 years, 3 months ago by Vladimir.
-
AuthorPosts
-
29/08/2019 at 15:02 #5902Addiction AgencyParticipant
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,
Gislaine29/08/2019 at 15:25 #5903VladimirKeymasterHi,
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.
04/09/2019 at 13:16 #5906Addiction AgencyParticipantHi Vladimir,
Thank you. Here is the video : https://drive.google.com/file/d/1H17DBlqBGzVYY1XGwhgbCP-iUqUkvDdL/view
Can you help us ?
Thank you,
Gislaine04/09/2019 at 15:25 #5907VladimirKeymasterHi 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.
04/09/2019 at 15:54 #5908VladimirKeymasterQuick 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 currentprivate 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.
-
AuthorPosts
- You must be logged in to reply to this topic.