This is what I did:

add_custom_image_header('', 'fit_admin_header_style');
and there's no warning any more.

Now the question still is how come this didn't came in regular WordPress
install?

Thanks Otto, sometimes long hours and not enough of sleep can make this
happen. My fault this was indeed.

Emil

*Emil Uzelac* | ThemeID | T: 224-444-0006 | Twitter: @EmilUzelac | E:
[email protected] | http://themeid.com
Make everything as simple as possible, but not simpler. - Albert Einstein



On Mon, Mar 7, 2011 at 10:57 AM, Otto <[email protected]> wrote:

> This code is wrong:
>
> add_custom_image_header('header_style', 'fit_admin_header_style');
>
> What is "header_style" referring to? There's no header_style function
> anywhere in the code you gave.
>
> -Otto
>
>
>
> On Mon, Mar 7, 2011 at 4:47 AM, Emil Uzelac <[email protected]> wrote:
> > I understand that, the question is why there's no error when this is used
> in
> > a site that isn't multi and all works just fine, even with debug on and
> > testings as well.
> > If the code isn't right, then it would not work or would display the same
> or
> > similar errors on a standard blog.
> >
> > I have to disagree with you on this one sorry, there must be something
> else
> > that I am either doing wrong or not seeing.
> >
> > Thanks,
> > Emil
> >
> > *Emil Uzelac* | ThemeID | T: 224-444-0006 | Twitter: @EmilUzelac | E:
> > [email protected] | http://themeid.com
> > Make everything as simple as possible, but not simpler. - Albert Einstein
> >
> >
> >
> > On Mon, Mar 7, 2011 at 4:17 AM, Stas Sușcov <[email protected]> wrote:
> >
> >> În data de Lu, 07-03-2011 la 03:29 -0600, Emil Uzelac a scris:
> >> > Hey Guys,
> >> >
> >> > Quick question. I am testing multisite on a fresh install, no
> upgrades.
> >> Site
> >> > is located at example.com/dev/ so it is not a sub-domain. Now the
> Theme
> >> that
> >> > I am working on works great on non-multisite, however when activated
> in
> >> > multisite it gives me this error:
> >> >
> >> > Warning: call_user_func_array() [function.call-user-func-array]: First
> >> > argument is expected to be a valid callback, 'header_style' was given
> in
> >> > /dev/wp-includes/plugin.php on line 395
> >> >
> >> > This is http://pastebin.com/VFQV1ijB what I have in functions.php and
> >> > http://pastebin.com/9exbQBy0 in header.php.
> >> >
> >> > Once again this happens only if I activate the Theme in multisite.
> >> > Of course everything works well if add_custom_image_header is removed
> >> from
> >> > functions.php
> >> >
> >> > I am sure that this looks like an issue from my end, but need to check
> >> with
> >> > you first.
> >> >
> >> > PS No plugins installed, not a single one.
> >>
> >> `header_style` should be a valid callback as warning says. In common
> >> words it should be a callable function/static method.
> >>
> >> For a complete reference, check the codex page:
> >>
> >>
> http://codex.wordpress.org/Function_Reference/add_custom_image_header#Examples
> >>
> >> _______________________________________________
> >> wp-testers mailing list
> >> [email protected]
> >> http://lists.automattic.com/mailman/listinfo/wp-testers
> >>
> > _______________________________________________
> > wp-testers mailing list
> > [email protected]
> > http://lists.automattic.com/mailman/listinfo/wp-testers
> >
> _______________________________________________
> wp-testers mailing list
> [email protected]
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
_______________________________________________
wp-testers mailing list
[email protected]
http://lists.automattic.com/mailman/listinfo/wp-testers

Reply via email to