+ More helper functions for the database class. wesql::query_row('query') will return array(0 => first_column, 1 => second_column..), query_assoc() will return an array of associative results, query_all will return an array of these associative arrays (with multiple results, if any), and query_rows() does the same with numeric arrays. (Class-DB.php)

* Just showing that you can save 200 bytes of code just by using query_all instead of regular wesql code, and cache_get_data with a callback instead of a cache_put_data fallback. (Subs-Editor.php)

@ Of course, you don't HAVE to use all of these shortcuts... They may use a bit more RAM and CPU time (but not much!), so I wouldn't recommend them on critical areas; you can always use the old code if you want. But anywhere else..? Be my guest. Enjoy the freedom.
! Prevent duplicate calls to add_css_file() from adding the same file twice. I guess there could be situations where it's desirable, but until someone gives me a proper use case, I'll just prevent it, making it possible to include your file as many times as you may need it, without having to keep track of it. (Subs-Cache.php)
* Another of these useless rewrites I've been working on for weeks... Some rarely called pages (move topic, report post, etc.) well declaring their CSS in the main CSS files, which I've always found to be quite rude. They're now getting their very own file, 'pages.css', yippie. (TEMPLATES: Errors, Login, Mailer, Merge, MoveTopic, Poll, Post, Split;

- #whoisviewing isn't used, AFAIK. (sections.css)

@ The change only reduces CSS filesize by about 300 gzipped bytes (or 1.3KB unzipped), but it's still a good thing to do. It's totally worth the extra work.
- Forgot to remove #fatal_error. (sections.css)
- A year ago, Pete removed the ability to put menus into the sidebar (although I honestly can't remember our discussion and motivation for doing so but I'm going to assume that I agreed on that point), but he forgot to remove lots of related things. So I'm removing all .left_menu styles, which it turns out, make the sidebar menus look actually better when they're gone, so... No reason to keep them in. Also removing sidebar menu separators. You can still have sidebar menus by hardcoding the feature into Subs-Menu.php, but I won't do that for now. (GenericMenu.template.php, Wilde/extra.css, Wine/extra.css, Wuthering/extra.css, extra.rtl.css, sections.css)
- Removed some bad styling for the admin quick search area. (Wilde/mana.css, Wuthering/mana.css)
- Remove a redundant selector. (extra.ie6.css)
* Saved more bytes in CSS: (sections.css)

  Posting icons are only shown to members
  Inline post moderation checkboxes are only shown to members (if they can see them)
  #index_common_stats isn't shown if show_stats_index is disabled
  YouTube embed styling isn't shown if embedding is disabled
+ You can now use array_insert() on multi-dimensional arrays. I'm pretty happy with that one, as it only cost me 250 more bytes of PHP, and no extra functions. I'm sure someone else wrote a one-liner to do the same at some point, but I haven't found it, so you're stuck with my algorithm. (Subs.php)

@ For instance: array_insert(array('hello' => 'world', 'sub' => array('multi' => array('foobar' => false))), 'sub>multi>foobar', $my_array) should add $my_array right before the 'foobar' entry. Patent pending.
@ This is a noticeable overhaul of some of the main menu mechanisms...

* Rewrote main menu template to use recursion. While there's nothing to account for depth levels beyond what we currently have, it's still cleaner, clearer and shorter than the previous version. Saves 150 bytes of PHP, which is nice. (index.template.php)

* Moved some of the main menu's top entries (media gallery, member list) to sub-entries of the 'home' menu. Also moved the Logout button to the 'profile' menu. (Subs.php, index.css, index.english.php)

* Renamed 'sub_items' to just 'items' in the main menu. (Subs.php, index.template.php)

* Renamed array_insert's 'parent>child' relationships to 'parent child'. I thought of '>' for CSS inheritance reasons, but really, CSS already has simple spaces for inheritance, so why bother... (Subs.php)

- Saved a few CSS bytes by hiding login/register rules from members, and logout rules from guests. (index.css)

- Removed the 'Search' button from the header, since it's (1) obvious it's a search box given it's icon, (2) already there in the search popup that shows up when you click the input box. (index.template.php)
- Removed 'latest smiley sets' feature. Let's be realistic, it'll never be activated. I've got more important things to do... (ManageSmileys.template.php, ManageScheduledTasks.english.php)

! If for some reason the sidebar-type menu should get activated, it should at least get moved to the actual sidebar, rather than the main area... (Subs-Menu.php)

! Forgot the opening h4. (index.template.php)

* Random commenazi. (Post.template.php)
- Removed assets/bbc folder for simplicity, simplified BBC button URLs (i.e. removed the ability to just specify a button name, you'll now have to provide a fully qualified URL), moved bbc/sprite.png to the root (which makes for a shorter URL hardcoded on all pages where you can post), and the textarea resize handle to the buttons folder, because, whatever. (assets/bbc.png, Class-Editor.php, editor.css, sections.css)

- Removed assets/theme folder for simplicity, moved bg.jpg to the root, actions.png to buttons (because that's what they are), and menurow.gif to the same, because, again, whatever. (assets/theme, Wilde/extra.css, Wine/extra.css, Wuthering/extra.css)
* Replaced PNG versions of the language flags with GIF versions. This saves over 1.2KB of gzipped data, for very similar results. Seriously, if you can spot the differences, you're good. (And no, I don't want you on my team. Get off my lawn.) (core/languages/Flag.*.png)

* Made it so that if you want to replace them with PNG versions, you still can. i.e., if you want to use the GIF versions on a currently running Wedge board, you'll have to manually remove the PNG files from the language folders. (Subs-Cache.php)
* Similarly, replaced contacts.png with contacts.gif -- it's using the same palette so there is NO difference at all visually, and it saves a hundred bytes. Gosh. PNG may be the winner overall, but GIF really is great at a lot of things on small files. (contacts.*, index.member.css)
- Forgot to remove contacts.png... Actually, I uploaded members.gif in its stead. I'll be leaving that one in here, even though it's a duplicate file, because I'm still planning to use it at one point. Sorry for the mixup. (contacts.png)
! Alcohol is bad, as John reminded me. (Who.template.php)
Merge remote-tracking branch 'upstream/master'