Remove enqueue of wp_plupload_default_settings() from admin_enqueue_scripts(). For now, it needs to be enqueued selectively when needed. see #19910.

git-svn-id: http://core.svn.wordpress.org/trunk@20230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Callbacks for custom headers and custom backgrounds registered through add_theme_support() are now wp-head-callback, admin-head-callback, and admin-preview-callback. see #19910.



git-svn-id: http://core.svn.wordpress.org/trunk@20231 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Theme Customizer: Improve WP_Customize_Setting->check_capabilities(). Add support for arrays in WP_Customize_Setting->capability and WP_Customize_Setting->theme_supports. Don't bail when WP_Customize_Setting->capability is empty. see #19910.

git-svn-id: http://core.svn.wordpress.org/trunk@20232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Sanitize Theme URI and Author URI in WP_Theme with esc_url_raw. Escape with esc_url on display. see #20103.

git-svn-id: http://core.svn.wordpress.org/trunk@20233 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Pass post_type through sanitize_key() instead of sanitize_user(). Fixes #20202.

For consistency with the registration API and because it does less work.


git-svn-id: http://core.svn.wordpress.org/trunk@20234 1a063a9b-81f0-0310-95a4-ce76da25c4cd
We use colon as the case separator.


git-svn-id: http://core.svn.wordpress.org/trunk@20235 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Visually merge a plugin with its update notice. Same applies to themes in the network admin. Move from 'update automatically' to 'update now'. fixes #20273.



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

git-svn-id: http://core.svn.wordpress.org/trunk@20237 1a063a9b-81f0-0310-95a4-ce76da25c4cd
WP_Theme::get_allowed_on_network() doesn't take a blog_id argument. props duck_. Restore static declaration accidentally removed in [20193]. see #20103.



git-svn-id: http://core.svn.wordpress.org/trunk@20238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Remove unused $field_no_prefix variable and associated documentation from sanitize_user_field(). Fixes #20274.


git-svn-id: http://core.svn.wordpress.org/trunk@20239 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Introduce display_header_text(). props chipbennett for initial patch. see #18887.



git-svn-id: http://core.svn.wordpress.org/trunk@20240 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Use display_header_text() in custom-header.php. Rework the UI to be a 'Show header text' checkbox (rather than radio buttons). Remove lame 'blank' hack for no-JS -- checkboxes work without JS. Move 'Select a Color' to a link like it is for custom background. Nearby code cleanup. see #18887.



git-svn-id: http://core.svn.wordpress.org/trunk@20241 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Tidy up sanity checks in theme.dev.js. props DH-Shredder, fixes #19815.



git-svn-id: http://core.svn.wordpress.org/trunk@20242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Properly intercept the main form being submitted when checking for the display-header-text checkbox. see #18887.

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

git-svn-id: http://core.svn.wordpress.org/trunk@20244 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Remove dead code from the Links widget. Props pavelevap, SergeyBiryukov. Fixes #19179.

The widget() method isn't called on the admin screen.


git-svn-id: http://core.svn.wordpress.org/trunk@20245 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Only pass arguments from the deprecated add_custom_background() or add_custom_image_header() to add_theme_support() if the argument was actually supplied. With [20212], default argument values (like wp-head-callback=_custom_background_cb) only work for arguments that were not explicitly set, so don't set empty values. see #20249.

git-svn-id: http://core.svn.wordpress.org/trunk@20246 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Don't use class="code" for the captions textareas as it resets RTL, see #18311

git-svn-id: http://core.svn.wordpress.org/trunk@20247 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Theme Customizer: Numerous API refinements and bugfixes. Add a theme_supports check for header_textcolor. see #19910.

* prepare_controls() now removes any settings and sections that return false for check_capabilities().
* Added maybe_render() methods to both settings and sections that call the protected render() methods.
* Stop firing front-end preview functionality when rendering the controls.
* Merged the WP_Customize_Setting->_render_type() method into WP_Customize_Setting->render().
* Removed the 'customize_render_control-' hook; use 'customize_render_setting' instead.
* Added a  property to sections and settings so they no longer rely on the  global. Hooray for dependency injection.
* Shifted calls to WP_Customize_Setting->enqueue() to the 'customize_controls_enqueue_scripts' action.
* Added a theme_supports check for the header_textcolor setting.

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

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