Marco Cimmino
Forum Replies Created
-
Forum: Plugins
In reply to: Cimy Navigatorof course this is the right behavior:
when you click on a category child then the current IS that child, so you print all previous levels and same levels that both have ul_class_same_level’ => “sideList”
as you specified in the code, there are NO children of “sovata”, because when selected it became at the current level, understood?solutions are multiple:
the best one that I have in mind is to check if the selected category has a parent or not, if yes initialize $params array in a different way.Forum: Plugins
In reply to: attribute_escape() versus $wpdb->escape()no WordPress just do the contrary, escapes everything if magic_quotes is tuned off.
from wp-settings.php:
// Escape with wpdb.
$_GET = add_magic_quotes($_GET );
$_POST = add_magic_quotes($_POST );
$_COOKIE = add_magic_quotes($_COOKIE);
$_SERVER = add_magic_quotes($_SERVER);in fact I even don’t know why is needed to escape everything before querying when WordPress do it anyway.
I had the same problem with an old WordPress 2.0.1 and MichaelEr solution didn’t work, so I upgraded to 2.2.1 and solved the problem
Forum: Plugins
In reply to: the_posts() and get_pages() filters are totally brokenyes the problem is exactly this, should be used array_splice instead of unset, wordpress start from element number [0] hardcoded and no holes should be left in the array.
Forum: Plugins
In reply to: the_posts() and get_pages() filters are totally brokenprobably I have understood, unset cannot be done because the first element of the array become [1] and probably wordpress is hardcoded to start from 0… Will try to change that.