Commit Graph

1130 Commits

Author SHA1 Message Date
Daryl Koopersmith
2441d98446 Prevent JS events from being garbage collected when a media.view.Modal is re-rendered. see #21390, #21776.
git-svn-id: http://core.svn.wordpress.org/trunk@21771 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-06 09:19:03 +00:00
Daryl Koopersmith
43fc38330a Adds UI for media modal toolbars, buttons, and the selected item(s) status.
Currently uses actions for inserting media into a post as an example (hence the raw text). To test a workflow that supports multiple selection, run the following in your browser's JavaScript console:

	wp.media({ multiple: true });

see #21390, #21808.



git-svn-id: http://core.svn.wordpress.org/trunk@21769 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-06 07:46:15 +00:00
Bot (Assets)
51a2425fe8 Compress scripts/styles: -3.5-21751.
git-svn-id: http://core.svn.wordpress.org/trunk@21751 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-04 21:59:25 +00:00
Andrew Nacin
daef59322c Modify a few jQuery selectors to prevent overflows and lagging. Todo, rewrite wp-lists and improve all of these selectors.
props SergeyBiryukov. fixes #21106 for trunk. see #21152.



git-svn-id: http://core.svn.wordpress.org/trunk@21737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-04 20:27:14 +00:00
Bot (Assets)
c087b7dd77 Compress scripts/styles: 3.5-alpha-21727.
git-svn-id: http://core.svn.wordpress.org/trunk@21727 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-04 05:07:20 +00:00
Daryl Koopersmith
fefc19f7be Do not instantiate a Plupload instance when the wp-plupload bridge has neither a browse button nor a dropzone. fixes #21707.
git-svn-id: http://core.svn.wordpress.org/trunk@21722 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-04 04:10:00 +00:00
Daryl Koopersmith
b1a748dfd8 jQuery 1.8.1 final. Also restores jQuery.noConflict(). props ocean90, fixes #21736.
git-svn-id: http://core.svn.wordpress.org/trunk@21695 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-09-01 20:47:07 +00:00
Bot (Assets)
a2d6299fb7 Compress scripts/styles: 3.5-alpha-21694.
git-svn-id: http://core.svn.wordpress.org/trunk@21694 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-31 21:59:26 +00:00
Daryl Koopersmith
b9bbe5bb99 Add wp.media(), a function to create a default media workflow.
This will be the main entry point for basic media development, and should hopefully help less experienced developers wrangle the new media APIs.

If you would like to see the new UI, navigate to the post editor and run the following in your browser's Javascript console:

	wp.media();

Well, that certainly feels a lot nicer to type.

see #21390.


git-svn-id: http://core.svn.wordpress.org/trunk@21692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-31 20:44:02 +00:00
Bot (Assets)
9bd2e882ee Compress scripts/styles: 3.5-alpha-21690.
git-svn-id: http://core.svn.wordpress.org/trunk@21690 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-31 18:59:24 +00:00
Daryl Koopersmith
e2be7ec824 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
2012-08-31 18:38:32 +00:00
Bot (Assets)
064a570aa7 Compress scripts/styles: 3.5-alpha-21684.
git-svn-id: http://core.svn.wordpress.org/trunk@21684 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-31 06:59:25 +00:00
Daryl Koopersmith
c217397faa 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
2012-08-31 04:54:23 +00:00
Bot (Assets)
e0835b5fc4 Compress scripts/styles: 3.5-alpha-21663.
git-svn-id: http://core.svn.wordpress.org/trunk@21663 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-30 04:09:57 +00:00
Andrew Nacin
f0b3d7c66b jQuery 1.8.1-not-quite-final. fixes #21736.
git-svn-id: http://core.svn.wordpress.org/trunk@21658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-30 02:05:08 +00:00
Andrew Nacin
939b818bf9 jQuery UI 1.9 RC.
Adds Tooltip, Menu, and Spinner.
Autocomplete depends on Menu.
Renames Effects files.

1.9 final is expected next week.
see #21736.



git-svn-id: http://core.svn.wordpress.org/trunk@21657 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-30 01:49:47 +00:00
Daryl Koopersmith
c2e9648620 Improve consistency in wp.Uploader callbacks; pass file objects to all handlers. see #21390.
git-svn-id: http://core.svn.wordpress.org/trunk@21656 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-29 19:56:42 +00:00
Andrew Nacin
25f8e61ddb Remove Jcrop non-minified files. see #20728.
git-svn-id: http://core.svn.wordpress.org/trunk@21648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-28 18:03:52 +00:00
Andrew Nacin
e5848ee150 Set jQuery Color to be a dependency for wp-lists, rather than enqueueing it everywhere.
Any plugin wishing to use jQuery color animations must set jquery-color as a dependency
(or enqueue it).

Remove the un-minified version of jQuery Color.

props scribu.
fixes #21692.



git-svn-id: http://core.svn.wordpress.org/trunk@21646 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-28 17:51:35 +00:00
Andrew Nacin
7ec559fe8a Update Jcrop to 0.9.10. Includes touch support. fixes #20728.
git-svn-id: http://core.svn.wordpress.org/trunk@21633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-27 23:37:03 +00:00
Andrew Nacin
1af0737e0f Update jQuery Color Animations plugin to 2.1.0. Props gnarf. fixes #21692.
git-svn-id: http://core.svn.wordpress.org/trunk@21632 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-27 23:27:14 +00:00
Daryl Koopersmith
0015503c26 Allow elements within a wp.Uploader dropzone to be repositioned when the drag-over class is added. fixes #21705.
git-svn-id: http://core.svn.wordpress.org/trunk@21630 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-27 22:20:23 +00:00
Andrew Nacin
aec38ee1af Remove Prototype and script.aculo.us from core.
Continue to register them, pulling from ajax.googleapis.com. This is only being done for backwards compatibility;
libraries in use will continue to be local sources.

In the process, update to the latest versions of Prototype (1.7.1, June 5) and script.aculo.us (1.9.0, from 2010).

props helenyhou.
fixes #21661, #16664, #16665.



git-svn-id: http://core.svn.wordpress.org/trunk@21593 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-23 00:51:08 +00:00
Andrew Nacin
2710bcade1 Switch to .min for compressed JS and CSS files.
* This moves our "development" versions from .dev.js to .js (same for css).
 * The compressed version then moves from .js to .min.js (same for css).

By switching to the standard .min convention, it sets expectations for developers,
and works nicely with existing tools such as ack.

fixes #21633.



git-svn-id: http://core.svn.wordpress.org/trunk@21592 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-23 00:04:18 +00:00
Daryl Koopersmith
5bf22749a3 Please welcome Underscore.js and Backbone.js to core. fixes #21664.
git-svn-id: http://core.svn.wordpress.org/trunk@21591 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-22 22:24:20 +00:00
Ryan Boren
d7f724070e jQuery 1.8.0 and jQuery UI 1.8.23. Props c3mdigital. see #21532
git-svn-id: http://core.svn.wordpress.org/trunk@21590 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-22 21:20:15 +00:00
Bot (Assets)
245cb4acba Compress scripts/styles: 3.5-alpha-21587.
git-svn-id: http://core.svn.wordpress.org/trunk@21587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-22 18:58:32 +00:00
Andrew Ozz
82d27641a5 Fix tabbing from the title to the editor on the Edit Post screen, see #21173
git-svn-id: http://core.svn.wordpress.org/trunk@21586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-22 18:29:42 +00:00
Bot (Assets)
4ce88d3d0f Compress scripts/styles: 3.5-alpha-21580. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@21580 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-22 02:58:28 +00:00
Andrew Ozz
d2f6b4559f Disable the (fake) image resizing in WebKit and Opera in TinyMCE 3.5.6, fix dragging image with caption in Firefox, see #21173
git-svn-id: http://core.svn.wordpress.org/trunk@21576 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-22 01:47:53 +00:00
Bot (Assets)
e1a28534d0 Compress scripts/styles: 3.5-alpha-21546. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@21546 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-19 00:58:19 +00:00
Andrew Ozz
b35ac4a005 Update TinyMCE to 3.5.6, see #21173
git-svn-id: http://core.svn.wordpress.org/trunk@21545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-18 23:24:27 +00:00
Andrew Ozz
90679de970 Revert [21495]. Discussed in dev-chat: it's better if the themes implement this or something similar.
git-svn-id: http://core.svn.wordpress.org/trunk@21532 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-15 21:21:51 +00:00
Andrew Ozz
ed1698e29b Better editor background, take one, see #21536
git-svn-id: http://core.svn.wordpress.org/trunk@21495 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-10 07:11:03 +00:00
azaozz
cb618f5858 TinyMCE: fix typo in button tooltips.
git-svn-id: http://core.svn.wordpress.org/trunk@21468 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-07 03:28:20 +00:00
bumpbot
81286bad53 Compress scripts/styles: 3.5-alpha-21419.
git-svn-id: http://core.svn.wordpress.org/trunk@21419 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-03 22:58:18 +00:00
azaozz
3fc7495aca Quicktags: don't call the callback on pressing the access key when a button is not visible, see #21460
git-svn-id: http://core.svn.wordpress.org/trunk@21418 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-03 21:47:58 +00:00
bumpbot
fce47c7cef Compress scripts/styles: 3.5-alpha-21416. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@21416 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-03 18:58:19 +00:00
azaozz
f56f339aaf TinyMCE: revert Firefox shortcuts to match all other browsers (Alt+Shift+letter), fix the labels for the shortcuts, update description in wp-mce-help, fixes #21197
git-svn-id: http://core.svn.wordpress.org/trunk@21415 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-03 18:12:45 +00:00
bumpbot
50b0511449 Compress scripts/styles: 3.5-alpha-21382.
git-svn-id: http://core.svn.wordpress.org/trunk@21382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-01 02:58:20 +00:00
koopersmith
b779aff50a When the browser property is not provided to wp.Uploader, hide Plupload's auto-created file input and call Plupload's disableBrowse. see #21437, [21379].
git-svn-id: http://core.svn.wordpress.org/trunk@21380 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-01 02:27:18 +00:00
koopersmith
83f2d7dc6e Make the browser property in wp.Uploader optional. fixes #21437.
git-svn-id: http://core.svn.wordpress.org/trunk@21379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-08-01 01:10:13 +00:00
bumpbot
67ac9ee9a1 Compress scripts/styles: 3.5-alpha-21360. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@21360 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-29 22:58:19 +00:00
azaozz
8dfdf4565a TinyMCE shortcuts: revert to Alt + Shift + letter for WebKit and Ctrl + Alt + letter (Command + Option + letter) in Firefox, see #21197
git-svn-id: http://core.svn.wordpress.org/trunk@21359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-29 21:08:58 +00:00
bumpbot
020cb0fd5a Compress scripts/styles: 3.5-alpha-21348.
git-svn-id: http://core.svn.wordpress.org/trunk@21348 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 22:58:21 +00:00
azaozz
523ae5d425 Update ImgAreaSelect to 0.9.9 that fixes IE7 stack overflow error, props c3mdigital, fixes #21363, fixes #21348 for trunk
git-svn-id: http://core.svn.wordpress.org/trunk@21347 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 22:43:04 +00:00
azaozz
d4e0c684d3 Bail out themes and plugins that have copied code from core and don't maintain it by requiring class-wp-editor.php in wp-langs.php, fixes #21350 for trunk
git-svn-id: http://core.svn.wordpress.org/trunk@21345 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 19:59:29 +00:00
ryan
fdae8f9b42 Fix some spelling errors. Props thee17. fixes #21191
git-svn-id: http://core.svn.wordpress.org/trunk@21333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-25 18:06:13 +00:00
azaozz
34535097b7 Remove nearly all tabindex attributes from the admin, leaving them only where absolutely necessary (for now that's only the toolbar).
Add tabindex="-1" for the menu images links to avoid double tab stops there when the menu is expanded.

Fix/add auto-focus on the first input fields on the Add/Edit Post, all taxonomy, all edit taxonomy, Log In and Edit Comment screens.

See #21340.

git-svn-id: http://core.svn.wordpress.org/trunk@21311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-24 00:15:15 +00:00
bumpbot
63df9ad5e0 Compress scripts/styles: 3.5-alpha-21309.
git-svn-id: http://core.svn.wordpress.org/trunk@21309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-23 22:58:26 +00:00
azaozz
4a9e3f4297 Fix internal linking search spinner position, fixes #21351
git-svn-id: http://core.svn.wordpress.org/trunk@21306 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-23 22:18:28 +00:00
bumpbot
e5fcf53e85 Compress scripts/styles: 3.5-alpha-21304.
git-svn-id: http://core.svn.wordpress.org/trunk@21304 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-23 00:58:20 +00:00
azaozz
d0e8c4becd Add tabbing from Title directly to the textarea when the Text editor is active, fixes #20834
git-svn-id: http://core.svn.wordpress.org/trunk@21303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-22 23:05:58 +00:00
bumpbot
a47dcdfcb9 Compress scripts/styles: 3.5-alpha-21301. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@21301 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-22 02:58:18 +00:00
azaozz
2309fcb9d7 TinyMCE: fix tabbig in and out of the editor, fixes #20834
git-svn-id: http://core.svn.wordpress.org/trunk@21300 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-22 02:33:53 +00:00
bumpbot
1cdf4c0dce Compress scripts/styles: 3.5-alpha-21273. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@21273 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-14 02:58:20 +00:00
azaozz
7c8ff1e3ca TinyMCE: add the Alt + W shortcut only when DFW is loaded and Alt + G only when MCE fullscreen is loaded, fixes #21197
git-svn-id: http://core.svn.wordpress.org/trunk@21272 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-14 01:46:54 +00:00
bumpbot
1243f0f34c Compress scripts/styles: 3.5-alpha-21269. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@21269 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-13 00:58:19 +00:00
azaozz
544b4a1a25 TinyMCE: update the keyboard shortcuts: Alt + letter for Firefox and WebKit, Alt + Shift + letter for IE and Opera, add shortcut for DFW (Alt + W), see #21214, fixes #21197, fixes #17992
git-svn-id: http://core.svn.wordpress.org/trunk@21266 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-13 00:26:49 +00:00
bumpbot
4a5816348c Compress scripts/styles: 3.5-alpha-21255. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@21255 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-10 02:58:25 +00:00
azaozz
90deeab136 TinyMCE: when pressing Enter while an image with caption is selected, fix moving the caret in a new paragraph under it, fix opening the Image Properties popup in IE9, see #21173
git-svn-id: http://core.svn.wordpress.org/trunk@21254 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-10 02:31:30 +00:00
bumpbot
f40ddd4ecc Compress scripts/styles: 3.5-alpha-21233. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@21233 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-08 22:58:20 +00:00
azaozz
851db96416 TinyMCE: don't throw fatal errors for malformed/invalid image caption shortcodes, props SergeyBiryukov, see #21145
git-svn-id: http://core.svn.wordpress.org/trunk@21232 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-08 21:11:23 +00:00
bumpbot
0230a753ec Compress scripts/styles: 3.5-alpha-21229. TinyMCE updated.
git-svn-id: http://core.svn.wordpress.org/trunk@21229 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-07 16:58:20 +00:00
azaozz
54294ad174 Update TinyMCE to 3.5.4.1, fixes #21173
git-svn-id: http://core.svn.wordpress.org/trunk@21228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-07 16:22:53 +00:00
markjaquith
813ca40b2f Switch "HTML" tab to "Text" in DFW mode. Update documentation and inline comments to refer to the "Text" tab or mode instead of "HTML". see #20993
git-svn-id: http://core.svn.wordpress.org/trunk@21212 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-05 15:28:13 +00:00
bumpbot
de9d8299d8 Compress scripts/styles: 3.5-alpha-21206.
git-svn-id: http://core.svn.wordpress.org/trunk@21206 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-04 06:58:20 +00:00
markjaquith
28af5a0be7 Change a jQuery selector to work around a change in jQuery 1.7.2 related to some class names containing colons. props SergeyBiryukov. fixes #21106 for trunk. see #21152
git-svn-id: http://core.svn.wordpress.org/trunk@21205 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-07-04 05:58:28 +00:00
markjaquith
96698d6e05 Update some of the TinyMCE help text to be more accurate. Props SergeyBiryukov. fixes #21108
git-svn-id: http://core.svn.wordpress.org/trunk@21182 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-29 17:47:41 +00:00
bumpbot
b624dd94d5 Compress scripts/styles: 3.5-alpha-21148.
git-svn-id: http://core.svn.wordpress.org/trunk@21148 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-26 21:50:58 +00:00
nacin
69112517ed Refresh nonces in the customizer. props koopersmith. see #20876.
git-svn-id: http://core.svn.wordpress.org/trunk@21135 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-26 18:48:18 +00:00
ryan
2f3839da9c Pinking shears
git-svn-id: http://core.svn.wordpress.org/trunk@21070 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-12 19:27:41 +00:00
bumpbot
19ccdf7b41 Compress scripts/styles: 3.4-RC2-21055.
git-svn-id: http://core.svn.wordpress.org/trunk@21055 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-11 21:28:44 +00:00
nacin
64b9b4f940 Do not specify background-image: none when a user removes a custom background
on a theme that has a default background image.

The onus is on the theme to omit the default background-image from style.css,
to allow the user to remove the default background image. Or, the theme can
specify a background-image for the body selector, as long as they then zero
it out for body.custom-background, like so:

{{{
body {
	background-image: url( ... );
}
body.custom-background {
	background-image: none;
}
}}}

This allows the theme to be compatible with the custom background feature
but also gracefully degrade if the background feature is disabled.

This is the same behavior as 3.3; setting a default image has simply been
made more prominent in 3.4. Reverts [21013], also parts of [21001].
see #20448 for change and discussion history.

see #20132, which will now be marked as invalid.

Also, per previous changes in #20448, the custom-background class should not
be shown when only a default color is in use.

fixes #20448.



git-svn-id: http://core.svn.wordpress.org/trunk@21054 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-11 21:25:05 +00:00
bumpbot
7812d7ba2f Compress scripts/styles: 3.4-RC2-21036.
git-svn-id: http://core.svn.wordpress.org/trunk@21036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-09 15:58:24 +00:00
ryan
4fbec0661f Fix comment hotkeys for FF and IE. Props azaozz, SergeyBiryukov. fixes #20885
git-svn-id: http://core.svn.wordpress.org/trunk@21035 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-09 15:57:11 +00:00
bumpbot
e04cfd76f5 Compress scripts/styles: 3.4-RC2-21034.
git-svn-id: http://core.svn.wordpress.org/trunk@21034 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-08 23:02:40 +00:00
koopersmith
6c273ba9e4 Theme Customizer: Separate message url from preview url in customizer JS Previewer and PreviewFrame objects. fixes #20892.
git-svn-id: http://core.svn.wordpress.org/trunk@21033 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-08 22:59:48 +00:00
bumpbot
dce23895de Compress scripts/styles: 3.4-RC2-21030.
git-svn-id: http://core.svn.wordpress.org/trunk@21030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-08 18:58:24 +00:00
ryan
f826e49a72 Customizer: fix stuck urls and preview white screens after repeated save and activates. Props koopersmith. fixes #20868
git-svn-id: http://core.svn.wordpress.org/trunk@21029 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-08 18:52:44 +00:00
ryan
69ad7a68ff Customizer: Redirect back to referrer. If referrer is a front end page, load that page in the customizer preview. Props nacin, koopersmith. fixes #20877
git-svn-id: http://core.svn.wordpress.org/trunk@21028 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-08 18:45:12 +00:00
bumpbot
3f729457f4 Compress scripts/styles: 3.4-RC2-21026.
git-svn-id: http://core.svn.wordpress.org/trunk@21026 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-07 22:58:22 +00:00
ryan
6e0e62a063 Customizer: Add keyup events to sync textarea values. Props koopersmith. fixes #20879
git-svn-id: http://core.svn.wordpress.org/trunk@21024 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-07 22:00:59 +00:00
bumpbot
d356284803 Compress scripts/styles: 3.4-RC1-21017.
git-svn-id: http://core.svn.wordpress.org/trunk@21017 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-07 01:31:49 +00:00
ryan
07140847b2 Namespace the customize request arg to prevent collision with plugins and themes. Props nacin. fixes #20862
git-svn-id: http://core.svn.wordpress.org/trunk@21016 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-07 01:29:57 +00:00
bumpbot
d15f104e4b Compress scripts/styles: 3.4-RC1-21015.
git-svn-id: http://core.svn.wordpress.org/trunk@21015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-06 21:51:13 +00:00
koopersmith
14f04132af Theme Customizer: Fix scrolling on iOS and Kindle Fire. props azaozz, helenyhou. fixes #20805.
Also fixes uploader UIs on iOS and Kindle Fire by improving wp.Uploader.
Adds mobile viewport specifications.
Moves scrollbar back to fixed positioning.


git-svn-id: http://core.svn.wordpress.org/trunk@21014 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-06 21:45:17 +00:00
ryan
d7a9a9a231 Don't resurrect a removed default image when changing colors in the Customizer. Props koopersmith, nacin. fixes #20448
git-svn-id: http://core.svn.wordpress.org/trunk@21013 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-06 21:24:22 +00:00
bumpbot
a17441a7e3 Compress scripts/styles: 3.4-RC1-21011.
git-svn-id: http://core.svn.wordpress.org/trunk@21011 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-06 20:58:20 +00:00
nacin
98b61d9a17 Theme Customizer: Block non-existent or non-allowed themes, unless the non-allowed theme is the active theme. Support a user having edit_theme_options xor switch_themes. fixes #20852.
git-svn-id: http://core.svn.wordpress.org/trunk@21010 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-06 20:34:24 +00:00
bumpbot
d35556e69a Compress scripts/styles: 3.4-RC1-20989.
git-svn-id: http://core.svn.wordpress.org/trunk@20989 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-04 15:58:26 +00:00
ryan
e69299af51 Theme Customizer: Fix race condition in previewer and use message channels. Props koopersmith. fixes #20811
git-svn-id: http://core.svn.wordpress.org/trunk@20988 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-04 15:51:46 +00:00
bumpbot
9b23e86b63 Compress scripts/styles: 3.4-RC1-20979.
git-svn-id: http://core.svn.wordpress.org/trunk@20979 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-02 01:58:27 +00:00
azaozz
cb71d2fe62 Fix notice in wp_read_image_metadata() when EXIF ISOSpeedRatings is array, props nacin, fixes #20807
git-svn-id: http://core.svn.wordpress.org/trunk@20978 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-02 01:39:00 +00:00
bumpbot
ba20e754d1 Compress scripts/styles: 3.4-RC1-20970.
git-svn-id: http://core.svn.wordpress.org/trunk@20970 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-01 15:58:23 +00:00
ryan
c4d5b1806e Theme Customizer: Reduce reliance on fixed positioning and make sidebar UI flexible. Props koopersmith, ocean90, helenyhou. fixes #20799
git-svn-id: http://core.svn.wordpress.org/trunk@20969 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-06-01 15:48:09 +00:00
nacin
b698913b10 Move customize-controls CSS and JS to wp-admin. fixes #20785.
git-svn-id: http://core.svn.wordpress.org/trunk@20960 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-30 20:11:04 +00:00
bumpbot
c8485f2a1b Compress scripts/styles: 3.4-beta4-20941.
git-svn-id: http://core.svn.wordpress.org/trunk@20941 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 20:58:28 +00:00
koopersmith
c2c3f2ba7f Theme Customizer: Don't expand theme title if there are no details to show. props nacin, fixes #20757, see #19910.
git-svn-id: http://core.svn.wordpress.org/trunk@20940 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 20:47:55 +00:00
bumpbot
78f3c9a8e6 Compress scripts/styles: 3.4-beta4-20937.
git-svn-id: http://core.svn.wordpress.org/trunk@20937 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2012-05-26 18:58:28 +00:00