[wp-hackers] Objectifying the browser detection

Chris Coggburn Chris at Coggburn.us
Thu Jul 29 23:24:11 UTC 2004


That would actually make life alot easier, I think that alot of things 
in wordpress need to move to objects.

David House wrote:

>Just a note that maybe we should move the browser detection globals ($is_IE,
>$is_gecko and so on) over to a $ua object or something? Maybe:
>
>class browser {
>  function uastring() { /* returns ua's identifying string */ }
>  var $is_IE;
>  var $is_gecko;
>  var $is_lynx;
>  //etc.
>}
>
>Just for some more global reduction.
>
>----------------------------------------------------------------
>This message was sent using IMP, the Internet Messaging Program.
>
>
>_______________________________________________
>hackers mailing list
>hackers at wordpress.org
>http://wordpress.org/mailman/listinfo/hackers_wordpress.org
>  
>


-- 
Chris Coggburn
http://noderat.com
http://chris.coggburn.us
http://beyonddigital.net




More information about the hackers mailing list