WPIntell

Source evidence

Conflict with User Editor Pro

Dashboard Welcome for Beaver Builder · support · 2017-06-30T19:53:00+00:00

complaintsentiment
mediumseverity
0.92relevance
3replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

6 / 34 rows with source links

17.6% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

28 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
r083r7 unresolved
User Editor Pro allows users to select which meta boxes to disable. This includes disabling them on the pages, posts, or dashboard pages. When Dashboard Welcome for Beaver Builder is active all these meta boxes that are selected to be hidden are displayed. When I deactivate Dashboard Welcome for Beaver Builder everything works. Tested by only having both these plugins installed. I like both plugins but User Editor Pro https://www.role-editor.com/ provides an important functional part for the site. Dashboard Welcome for BB is nice to have but will have to let it go if I can’t resolve this. Hope these two can work together soon. File classes/class-dw-admin.php, line #355. BB_Power_Dashboard_Admin::get_current_role() method modifies global WordPress variable $current_user (removes a role from it) without having a reason for that. Take attention that $current_user is used by many other plugins and WordPress core itself. $user here contains a reference to a global $current_user. You should work with copy of $user->roles array at your method, do not send it to unshift() directly. I suggest you replace: $user = wp_get_current_user(); $roles = array_shift( $user->roles ); with $user = wp_get_current_user(); $roles = $user->roles; $roles = array_shift( $roles ); This way you leave $current_user->roles array unchanged. Original code removes a role from it, so my plugin can not apply access rule set for that role, as current user does have it after your intervention. Pay attention on init_hooks(), line #131: if ( ! is_admin() && ! class_exists( 'FLBuilder' ) ) { return; } Your code tries to set action with FLBuilder::register_layout_styles_scripts even when FLBilder does not exist, but user open wp-admin/index.php I think you have to use logic OR operator here instead of AND: if ( ! is_admin() || ! class_exists( 'FLBuilder' ) ) { Hey guys, just wanted to check in and see if this conflict has been resolved before trying to use the plugin again.

Comments

3 shown
r083r7 2017-07-01T01:28:00+00:00

I like both plugins but User Editor Pro https://www.role-editor.com/ provides an important functional part for the site. Dashboard Welcome for BB is nice to have but will have to let it go if I can’t resolve this. Hope these two can work together soon.

Vladimir Garagulya 2017-07-01T01:49:00+00:00

File classes/class-dw-admin.php, line #355. BB_Power_Dashboard_Admin::get_current_role() method modifies global WordPress variable $current_user (removes a role from it) without having a reason for that. Take attention that $current_user is used by many other plugins and WordPress core itself. $user here contains a reference to a global $current_user. You should work with copy of $user->roles array at your method, do not send it to unshift() directly. I suggest you replace: $user = wp_get_current_user(); $roles = array_shift( $user->roles ); with $user = wp_get_current_user(); $roles = $user->roles; $roles = array_shift( $roles ); This way you leave $current_user->roles array unchanged. Original code removes a role from it, so my plugin can not apply access rule set for that role, as current user does have it after your intervention. Pay attention on init_hooks(), line #131: if ( ! is_admin() && ! class_exists( 'FLBuilder' ) ) { return; } Your code tries to set action with FLBuilder::register_layout_styles_scripts even when FLBilder does not exist, but user open wp-admin/index.php I think you have to use logic OR operator here instead of AND: if ( ! is_admin() || ! class_exists( 'FLBuilder' ) ) {

r083r7 2017-09-04T07:37:00+00:00

Hey guys, just wanted to check in and see if this conflict has been resolved before trying to use the plugin again.