Fix min row height in .widefat, see #21324

git-svn-id: http://core.svn.wordpress.org/trunk@21671 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Have wp_script_is() and wp_style_is() accept 'enqueued', as it reads better than 'queue' and is consistent with 'registered'. fixes #21741.



git-svn-id: http://core.svn.wordpress.org/trunk@21672 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Compress scripts/styles: 3.5-alpha-21673.

git-svn-id: http://core.svn.wordpress.org/trunk@21673 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Twenty Twelve: add a better permalink markup structure to content-image.php template, for usability when image posts have no title. Props obenland, fixes #21723.


git-svn-id: http://core.svn.wordpress.org/trunk@21674 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Twenty Twelve: go with `echo get_the_date()` here, added in r21670 but reverted accidentally in r21674. Props obenland.


git-svn-id: http://core.svn.wordpress.org/trunk@21675 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Flip Admin Bar search icon, props empireoflight and lessbloat, fixes #20033

git-svn-id: http://core.svn.wordpress.org/trunk@21676 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Update the query strings to refresh the toolbar sprites, props ocean90, see #20033

git-svn-id: http://core.svn.wordpress.org/trunk@21677 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Compress scripts/styles: 3.5-alpha-21678.

git-svn-id: http://core.svn.wordpress.org/trunk@21678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Introduce wp_send_json() to json-encode a variable, print it, and die, for Ajax requests. Effectively replaces WP_Ajax_Response, which was an XML-based response.

Introduce wp_send_json_success() and wp_send_json_error(), which will allow us to fire appropriate done() or fail() callbacks in JS.

props koopersmith. see #21390.



git-svn-id: http://core.svn.wordpress.org/trunk@21679 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Introduce wp_prepare_attachment_for_js(). Prepares an attachment post object to be JSON-encoded and fitted into an Attachment model, for 3.5 media.

props koopersmith. see #21390.



git-svn-id: http://core.svn.wordpress.org/trunk@21680 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Add get-attachment and query-attachments Ajax handlers. props koopersmith. see #21390.



git-svn-id: http://core.svn.wordpress.org/trunk@21681 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Fix a misnamed variable, which caused the query-attachments ajax handler to ignore all input. see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@21682 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Add new media workflow scripts, styles, and templates.


Please note that this commit does not integrate media into the existing UI. If you would like to see the new UI, navigate to the post editor and run the following in your browser's Javascript console:

	new wp.media.controller.Workflow().render().modal.open();


The Javascript is broken up into two files, with the slugs media-models and media-views.

* media-models: The models are UI agnostic, and can be used independent of the views. If you'd like to create custom UIs, this is the script for you.

* media-views: This is the Media Experience. The views (and controllers) depend on the models (which are listed as a dependency and will automatically be included thanks to wp_enqueue_script). The views also require the media templates, media-view styles, and the plupload bridge settings. Perhaps we should create a function to include the whole shebang, but in the meantime...

To include media-views in the admin, run the following PHP in or after 'admin_enqueue_scripts':

	wp_enqueue_script( 'media-views' );
	wp_enqueue_style( 'media-views' );
	wp_plupload_default_settings();
	add_action( 'admin_footer', 'wp_print_media_templates' );

see #21390.



git-svn-id: http://core.svn.wordpress.org/trunk@21683 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Compress scripts/styles: 3.5-alpha-21684.

git-svn-id: http://core.svn.wordpress.org/trunk@21684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Make sure that we always generate random numbers correctly even if the PHP build is slightly broken and truncates large integers.

Fixes #19571 props mdawaffe.


git-svn-id: http://core.svn.wordpress.org/trunk@21685 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Restore the 'allowed_themes' filter.

This filter has wrapped the network-wide themes, outside of the network-wide
allowed function (dating back to MU), hence the unusual placement. This restores
previous behavior; we will introduce new filters to enable greater flexibility.

see #21099.
for trunk.



git-svn-id: http://core.svn.wordpress.org/trunk@21686 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Introduce WP_Screen::in_admin() for determining which admin the screen is in.
Change is_*_admin() to reference in_admin() with fallback to the WP_*_ADMIN constants during early bootstrap. This allows unit tests and ajax handlers to set the admin context.

fixes #21742


git-svn-id: http://core.svn.wordpress.org/trunk@21687 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Fix the adding of link categories through the "Add Link" screen. props yoavf. fixes #21590 for trunk

git-svn-id: http://core.svn.wordpress.org/trunk@21688 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Media JS: Attachments collection API improvements.

Rename watch() and unwatch() to observe() and unobserve(), respectively, to avoid conflicts with Firefox's proprietary Object.prototype.watch method.

Rename validate() to validator(), and changed() to validate(), as the latter will be more frequently used, and better explains its purpose. Also, make the new validate() more concise.

see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@21689 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Compress scripts/styles: 3.5-alpha-21690.

git-svn-id: http://core.svn.wordpress.org/trunk@21690 1a063a9b-81f0-0310-95a4-ce76da25c4cd