10up / distributor

Share content between your websites.
https://distributorplugin.com
GNU General Public License v2.0
629 stars 154 forks source link

Incompatibility with Ninja Forms: Removes editor styling #287

Closed PaddyWhacks closed 3 years ago

PaddyWhacks commented 5 years ago

Whenever the distributor is activated, it breaks the styling of editor for Ninja Forms. Before and after pictures attached.

before after

robcain commented 4 years ago

Hi,

I have the same issue. Distributor V 1.5.0 stable + Ninja Forms 3.4.24.3 + WP 5.4.2

Distributor plugin, seems to cause Ninja plugin NOT to queue/load some of its admin css - vis:

https://mywebsite.com/wp-content/plugins/ninja-forms/assets/css/normalize.scss https://mywebsite.com/wp-content/plugins/ninja-forms/assets/css/builder.css?ver=3.4.24.3 .ninja-forms-app #wpcontent * { box-sizing: border-box; }

PS: retest with Distributor 1.6.0 - same issue.

A fix for this would be very much appreciated. Thanks.

robcain commented 4 years ago

OK. I think I've found the issue: vis:

file: includes/syndicated-post-ui.php line: 146 function: add_linked_class

... if ( 'post.php' !== $pagenow && 'post-new.php' !== $pagenow ) { return ''; // Must stick to docblock, cannot return void. } ...

Replacing the above code with:

... if ( 'post.php' !== $pagenow && 'post-new.php' !== $pagenow ) { return $classes; } ...

HOWEVER, I have NOT been able to determine what effect this suggested fix is likely to have on the functionality of the distributor plugin itself - there must have been a reason for the original code (and the original code comment there), unless it was just a mistake - but I'm uncertain.

I wonder if one of the developers could please take a look at this - in particular my suggested fix, to see what (negative) impact this might actually have.

I desperately need to use this plugin in a new development project and I would very much appreciate some assistance. Many thanks.

dinhtungdu commented 3 years ago

@robcain Thank you for the report and research. To me, this is a bug too. Do you want to open a PR to fix this issue?

robcain commented 3 years ago

hi @dinhtungdu Thanks for the response. I agree, it seems better classified as a bug. I'd rather someone else just managed the fix without my further involvement. Many thanks. :)