[theme-reviewers] Shaan WP Theme

Simon Prosser pross at pross.org.uk
Mon Jan 3 15:06:16 UTC 2011


@Otto https://gist.github.com/763539

This could be a check for blank newlines between php tags only in funcions.php
Ive tested it and it appears to work, care to test anyone?

On 3 January 2011 14:08, Chip Bennett <chip at chipbennett.net> wrote:
> And removing unnecessary closing-opening PHP tags is pretty much always a
> good idea. They're completely unnecessary, and are bound to create problems.
> Chip
>
> On Mon, Jan 3, 2011 at 7:57 AM, Jay <furcifer at furcifer.me> wrote:
>>
>> Blank lines be the devil, if you use an editor like Php Designer it has an
>> option to automaticly remove all blank lines.
>>
>> "Otto" <otto at ottodestruct.com> wrote:
>>
>> >On Mon, Jan 3, 2011 at 5:29 AM, Pritam P Hans <pritam.hans at gmail.com>
>> >wrote:
>> >> Hi friends,
>> >>
>> >> A very happy new year to all. One of my WP themes (Shaan --
>> >> http://wordpress.org/extend/themes/shaan) has been recently included
>> >in the
>> >> theme repository. I have received a two complaints regarding not
>> >being able
>> >> to log in to WP after installing the theme. Is it an error with the
>> >theme?
>> >> Can you please help me solve the issue?
>> >
>> >
>> >Your main problem is this:
>> >
>> ><?php //Retrieve Theme Options Data
>> >global $options;
>> >$options = get_option('p2h_theme_options');
>> >?>
>> >
>> ><?php
>> >$functions_path = TEMPLATEPATH . '/functions/';
>> >//Theme Options
>> >require_once ($functions_path . 'theme-options.php');
>> >...
>> >
>> >See how it has the ?> then the empty line, then the <?php again? That
>> >will cause it to output a single blank line, which will break the
>> >login process because of the cookies being unable to be sent.
>> >
>> >The functions.php file should never, ever, ever, ever produce output
>> >on inclusion.
>> >
>> >-Otto
>> >_______________________________________________
>> >theme-reviewers mailing list
>> >theme-reviewers at lists.wordpress.org
>> >http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>> --
>> Mobile, wolf is mobile.
>> Http://furcifer.net
>> _______________________________________________
>> 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
>
>



-- 
My Blog: http://www.pross.org.uk/
Plugins : http://www.pross.org.uk/plugins/
Themes: http://wordpress.org/extend/themes/profile/pross


More information about the theme-reviewers mailing list