[wp-hackers] Re: $single
David Chait
cgcode at chait.net
Wed Jun 16 17:30:03 UTC 2004
Yeah, I agree on both points.
For page_type, I'm not sure what's needed more than home, single, archive --
in terms of raw usage. Maybe a secondary variable to get more specific, but
then again for people like me, if it isn't home or single, it's archive...
;)
I'd love to see a single global $wp or such. I'd also like to see the
current approach of 'shoehorning' current table state into $wpdb undone,
where it really wants to be in a $wp or $page object. Keep $wpdb clean.
I'm sure I'll have much more to comment on as I migrate from 1.0alpha to
1.3alpha... ;)
-d
> Message: 4
> Date: Tue, 15 Jun 2004 23:22:36 -0600
> From: Alex King <alex at alexking.org>
> Subject: Re: [wp-hackers] $single
> To: hackers at wordpress.org
> Message-ID: <2D61E803-BF55-11D8-AEC3-000D9368D632 at alexking.org>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> I'd rather have one 'page_type' variable than a bunch of binary
> variables.
>
> On a related note (and as I've mentioned previously on the other list),
> I'd like to see us develop a $wp or $page object that stores the WP
> context. There are a number of benefits to this approach, some of the
> big ones
More information about the hackers
mailing list