Fixed typo in variable name . Props @patrickebates.
Added replacement for MySQL WEEK.
Merge branch master with latest.
Merged with WordPres trunk r24706-r24727.
Merged with WordPress trunk r24728-r24731.
Fixes comment meta box on posts. Comments now display ( if there are any ). This fixes one of the last known bugs in Nami, at the moment.
Drop time precision after seconds in datetime2. Breaks compatibility with exports importing back into WordPress and some services. Also has implications for incompatibility with plugins built for WordPress specifically.
wp_roles init needs to be called before populate_roles in order to have the wp_*_user_roles option set with the correct blog id.
Change all instances of bigint to int for improved performance.  Will worry about the max limit when someone reaches 2 billion posts or comments in a single site...
Check for sqlsrv extension rather than mysql.  Also, return the actual SQL version from the DB server.
Update theme twentythirteen to the WordPress 3.6 release version
We're in the wpdb class already. Use the , instead.
Added explicit column name to version lookup.
Convert version number to a usable data type.
Removed deprecated row count logic.
Optimized post count retrieval.
Updated set_found_posts to check new COUNT method
MAX is faster than TOP with an ORDER BY when retrieving post dates.
Revert "MAX is faster than TOP with an ORDER BY when retrieving post dates." and recommit with props to @patrickebates.

This reverts commit 0ca4d23f8e4292a765895e0b720f84cad8eb4ccd.
MAX is faster than TOP with an ORDER BY when retrieving post dates. props to @patrickebates for this fix.