Multisite imcompatible (and less)
-
Dear folks,
this plugin is multisite incompatible.
One example would be a query like
“UPDATE wp_posts SET post_parent = %d, menu_order = %d WHERE ID = %d”
( see \F4\TREE\Tree\Hooks::ajax_move_tree_post )
Actually this is very dangerous in a multi-site because you edit things on a complete different table.
This is also dangerous for single-sites because when the db-prefix has changed, then you update a very different table that has nothing to do with the current WordPress that the user works with.In addition:
In \F4\TREE\Core\Helpers::get_settings you set [ 0 => post, 1 => page ] as default value
but in the actual settings section you store [ post => 1, page => 1 ] .
Even worse, when the array contains [ foo ] then all post-types get the tree view.Please let me know if you need someone that helps with the code review.
I stop after 5 minutes and let you know what I found (so far).
- The topic ‘Multisite imcompatible (and less)’ is closed to new replies.