[theme-reviewers] Need help with theme option page

Carla Izumi Bamford decadent.muse.org at gmail.com
Fri Mar 15 20:34:09 UTC 2013


Thanks for the help Otto,
I managed to fix it. :)

Ryan that's what I do first but it doesn't always work out. :)


2013/3/16, Jonny <wp at stormfire.eu>:
> 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
>


More information about the theme-reviewers mailing list