Change WordPress user roles and capabilities › Forums › Bug Reports › Network Admin page error, due to ET_BUILDER_DIR in fake_divi_post_type_load() › Reply To: Network Admin page error, due to ET_BUILDER_DIR in fake_divi_post_type_load()
06/02/2018 at 03:01 #4584
Thanks for this report.
Yes, this piece of code is needed to provide access to custom post type ‘et_pb_layout’ user capabilities at User Role Editor page when we force it to use own capabilities (‘edit_et_pb_layouts’, etc.) instead of ‘post’ like.
It seems that it stopped working after of some Divi theme update. I changed line
require ET_BUILDER_DIR . ‘layouts.php’;
This change will be available with upcoming version 4.41