[wp-hackers] Removing wp_admin_css from login only

DD32 wordpress at dd32.id.au
Thu Jan 15 11:36:00 GMT 2009


2009/1/15 Jeremy Visser <jeremy.visser at gmail.com>:
> I haven't looked at that part of the WP codebase in years, and it's
> downright scary. I mean, take a look at this snippet:
>
>        $ver = $this->registered[$handle]->ver ?
>                $this->registered[$handle]->ver : $this->default_version;
>        if ( isset($this->args[$handle]) )
>                $ver .= '&amp;' . $this->args[$handle];
>
> I don't know what it is, but it's not poetry. (Nothing personal against
> whoever wrote it -- I can't really talk, can I?)

Whats so bad about that?

Set $ver to the current item's 'ver' if set, else to the current
default version, If there are also extra args defined for the current
script/style, append it to $ver

Its hard to judge based on a small sniplet if you do not understand
how the greater glass is working, The same can be said for the Rewrite
Class or the query class in most cases..


More information about the wp-hackers mailing list