I can fiddle my way around PHP and make things work, that is, as long as it is someone else’s code.
Today I was struggling with a WordPress Plugin that refused to behave when I wanted to save changes in it’s Admin panel.
The code just would not behave.
Possibly an issue with the current version?
Anyway, I tracked down the code element.
action="<?php echo $_SERVER['HTTP_HOST'] . '?page=' . basename(__FILE__); ?>&updated=true">
For one thing, this is a security issue, so I updated it to this:
action="<?php echo admin_url( 'admin.php?page=' . plugin_basename( __FILE__ ) ); ?>&updated=true">
But that failed. After 30 mins of madness and frustration, I dropped the “plugin_” from “basename” and all was good.
action="<?php echo admin_url( 'admin.php?page=' . basename( __FILE__ ) ); ?>&updated=true">
What does it mean? I have no idea, I just know it works, and I learned it from Lester Chan. Thanks, Lester!
qZd6sTi http://www.ugg-pas-cher-bottes.net bottes ugg pas cher nMy0qQm
Posted by: tabsImmussy | 02/13/2012 at 03:00 AM
5R5Juz http://bootsnederland.webnode.nl/ 7G8Eeq Uggs nederland,uggs uitverkoop,uggs online bestellen 69% korting! 1C5Fer uggs nederland 9G3Gxf
1G9Ecm http://goedkopeonline.webnode.nl 8Z5Jye uggs bestellen 1Q5Hcv uggs bestellen 4G4Duf
0I5Bpa http://bootscanada.weebly.com 2Y1Jbo uggs canada 1N3Dtv ugg canada 5Z3Iqv
1S0Oay http://bootsonsale.webnode.nl 0C4Heh uggs laarzen 7Z0Rph uggs laarzen 6X4Fly
8B6Epp http://isabell-marant.webnode.fr 6V5Ddv isabelle marant 5Y3Dxx isabelle marant 2E2Njh
Posted by: FesFeceliet | 10/31/2012 at 11:16 AM