noxbane
Forum Replies Created
-
Forum: Plugins
In reply to: [Debug Bar Console] Doesn't Work on Some ServersI should note, the server it works on is running PHP version: 5.2.17.
The one it does not work on is using PHP version: 5.3.22Forum: Plugins
In reply to: [Widget Logic] Upgrade Error: in_array() expects parameter 2 to be arrayNo I didnt, but I added it and it now works:
global $post; if ( ($post) && !in_array(39,get_post_ancestors($post)) && !in_array(42,get_post_ancestors($post)) ) return true;Oddly enough, I never had it before and it worked fine before the 3.5 upgrade. Ah well, I’m just glad it works now. Many thanks.
Forum: Plugins
In reply to: [Widget Logic] Upgrade Error: in_array() expects parameter 2 to be arrayHi Alan,
Thank you very much for going above and beyond and researching this for us. I wish all plugin authors were so willing to help.
Your fix worked great for my second example. However it doesn’t for the first.
Specifically, changing this:
if ( !in_array(39,get_post_ancestors($post)) && !in_array(42,get_post_ancestors($post)) ) return true;to this:
if ( ($post) && !in_array(39,get_post_ancestors($post)) && !in_array(42,get_post_ancestors($post)) ) return true;will get rid of the error, but now that particular widget will never show at all.
Do you have any idea why this would be?