[theme-reviewers] Need help with theme option page

Ryan Van Etten ryanve at gmail.com
Fri Mar 15 18:45:30 UTC 2013


There is a great tool called Google <https://www.google.com/> for
troubleshooting errors ;)

@ryanve <http://twitter.com/ryanve>


On Fri, Mar 15, 2013 at 12:52 PM, Otto <otto at ottodestruct.com> wrote:

> "Undefined index" are pretty much always where you're using a
> variable's value without first testing if the variable is actually set
> or not.
>
> So if you have something like this:
>
> if ( $_REQUEST['action'] == 'whatever' )
>
> Then you need to modify it to this:
>
> if ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] == 'whatever' )
>
> -Otto
>
>
>
> On Fri, Mar 15, 2013 at 11:36 AM, Carla Izumi Bamford
> <decadent.muse.org at gmail.com> wrote:
> > I'm trying to debug my function.php which is for the option page.
> > And I need some help figuring this out.
> >
> > Notice: Undefined index: action in
> >
> /home/sites/heteml/users47/0/0/0/000/web/work/wordpress/wp-content/themes/simplenotes/functions.php
> > on line 187
> _______________________________________________
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20130315/67ab89f8/attachment.htm>


More information about the theme-reviewers mailing list