Quantcast
Viewing all articles
Browse latest Browse all 119658

Metalscorpion on "[Plugin: WP Page Widget] Incompatibility with Black Studio TinyMCE widget"

Hello Marco Chiesi!

We accept remove the pw_admin_head function in next revision, and then the code check compatibility will in your Black Studio TinyMCE plugin.
Today, I upgraded both plugins to latest version. Remove pw_admin_head function in our plugin. Replace the compatibility check case in Black Studio TinyMCE plugin, line 118:
// Compatibility for WP Page Widget plugin
if (is_plugin_active('wp-page-widget/wp-page-widgets.php') && ( $pagenow == "post-new.php" || $pagenow == "post.php" )) {
$load_editor = true;
}

by:
// Compatibility for WP Page Widget plugin
if (is_plugin_active('wp-page-widgets/wp-page-widgets.php') && ( in_array($pagenow, array('post-new.php', 'post.php')) || (($pagenow == 'edit-tags.php') && isset($_GET['action']) && $_GET['action'] == 'edit') || ( in_array($pagenow, array('admin.php')) && (($_GET['page'] == 'pw-front-page') || ($_GET['page'] == 'pw-search-page')) )) ) {
$load_editor = true;
}

Then both plugins are Great Works on everywhere! So we should change the code in both plugins by this way.

How do you think?

Cho - CodeAndMore


Viewing all articles
Browse latest Browse all 119658

Trending Articles