Some php notices on 3.9.1
-
Hi Shelkie,
Thanks for the update. I’m using wordpress 3.9.1 and the plugin seems to be working fine.
Only a few php notices. (I have all php notices turned on)
It would be great if you could fix the notices in another update.
I have fixed them myself but I’m not such a good php coder so im not sure this is good practice.See the notices and my fixes below:
Notice: get_themes is deprecated since version 3.4
– I fixed this one by changingget_themes()
on line 2151 towp_get_themes()
.Notice: Undefined variable: post_type
– I fixed this one by declaring an blank variable on line 695:
if (empty($post_type)) {$post_type = '';}
Notice: Undefined index: taxonomy
– I fixed this one by checking if the taxonomy is set before using the switch on line 833
if (isset($args['taxonomy']))
I commented out my fixes in the plugin so you can see the errors here:
https://www.dev-xpat.nl
https://hb.dev-xpat.nlIf you want me te send you de plugin file with my fixes let me know.
thnx.
- The topic ‘Some php notices on 3.9.1’ is closed to new replies.