[theme-reviewers] Need help with theme option page

Jonny wp at stormfire.eu
Fri Mar 15 19:51:30 UTC 2013


Ryan this is completely needless, especially as one of WP's finest already saw fit to answer the question.

ZOOM ZOOM

On 15 Mar 2013, at 18:45, Ryan Van Etten <ryanve at gmail.com> wrote:

> There is a great tool called Google for troubleshooting errors ;)
> 
> @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
> 
> _______________________________________________
> 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/96d5badf/attachment.htm>


More information about the theme-reviewers mailing list