[wp-hackers] usermeta is missing from wpdb

Otto otto at ottodestruct.com
Thu Aug 23 20:38:40 GMT 2007


Question: Is the var line even necessary? What does adding this
actually gain you?

I thought that the only reason for the var $whataver in a PHP class
was to ensure that the variable name would come back as part of a
request to get_class_vars() or get_object_vars(). Without it, if it's
not set, it won't get returned in those.


On 8/23/07, Peter Westwood <peter.westwood at ftwr.co.uk> wrote:
> Hi Callum,
>
> On 23 Aug 2007, at 18:53, Callum Macdonald wrote:
>
> > Aha, so usermeta is set there, but it's not defined in the wp-
> > db.php file. In which case, it's a very, very simple patch. I've
> > pasted a copy here. Do I need to submit it somehow, or can somebody
> > on the list deal with it? I don't have an SVN account, etc, etc.
> >
> > Cheers - Callum.
> >
> > diff -u wp-db.php.orig wp-db.php
> > --- wp-db.php.orig      2007-08-23 18:51:42.000000000 +0100
> > +++ wp-db.php   2007-08-23 18:51:47.000000000 +0100
> > @@ -34,6 +34,7 @@
> >        var $optiongroups;
> >        var $optiongroup_options;
> >        var $postmeta;
> > +       var $usermeta;
> >        var $charset;
> >        var $collate;
> >
>
> Please raise a ticket on trac [1] and attach a patch and then someone
> will check it in.
>
> [1] http://trac.wordpress.org
>
> Cheers
> westi
> --
> Peter Westwood <peter.westwood at ftwr.co.uk>
> Blog: http://blog.ftwr.co.uk/
> WordPress Plugins: http://blog.ftwr.co.uk/wordpress/
>
>
>
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list