Commit Graph

1289 Commits

Author SHA1 Message Date
Andrew Nacin 038439326d Remove unused admin-categories and admin-custom-fields JavaScript files. props ocean90. fixes #23486.
git-svn-id: https://develop.svn.wordpress.org/trunk@23446 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 19:03:59 +00:00
Andrew Nacin b17b5a64e3 Stop using jQuery.live(). props ocean90. see #22975.
git-svn-id: https://develop.svn.wordpress.org/trunk@23444 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 17:46:12 +00:00
Andrew Nacin 746187f768 Update the Iris color picker to version 1.0.3, which stops using the deprecated jQuery.browser property.
props mattwiebe.
fixes #23484.



git-svn-id: https://develop.svn.wordpress.org/trunk@23443 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 17:44:41 +00:00
Mark Jaquith c2945a394f Improve the UX of the Nav Menus screen. Kill the tabs, and change to a
dropdown, unless you have zero or one menus (which is the most common),
in which case you jump right into editing your sole menu.

Do assignment to location using checkboxes in the main menu editing
section instead of the backwards menu => location assignment in a
random meta box.

More to come, but this gets us started.

props lessbloat, DrewAPicture, jkudish. see #23119

git-svn-id: https://develop.svn.wordpress.org/trunk@23441 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-16 04:53:59 +00:00
bumpbot fe6bb0671d Compress scripts/styles: 3.6-alpha-23435.
git-svn-id: https://develop.svn.wordpress.org/trunk@23435 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-15 22:58:45 +00:00
Mark Jaquith bfd0b6fb37 Refactor the Customizer accordion so that it can be used in other locations.
fixes #23449. props lessbloat, aaroncampbell

git-svn-id: https://develop.svn.wordpress.org/trunk@23417 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-14 22:58:04 +00:00
bumpbot 679339ffaa Compress scripts/styles: 3.6-alpha-23400.
git-svn-id: https://develop.svn.wordpress.org/trunk@23400 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 22:58:42 +00:00
Mark Jaquith 6b335f1b6a Allow Backround Image's "select a file" link to be activated by pressing return on the keyboard.
props adamsilverstein. fixes #22606

git-svn-id: https://develop.svn.wordpress.org/trunk@23399 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-08 18:51:19 +00:00
bumpbot 68360b40ab Compress scripts/styles: 3.6-alpha-23386.
git-svn-id: https://develop.svn.wordpress.org/trunk@23386 602fd350-edb4-49c9-b593-d223f7449a82
2013-02-04 14:38:03 +00:00
Helen Hou-Sandi a38f0e16c5 Remove the long-broken and questionably useful [more]/[less] toggle for hierarchical taxonomies in Quick/Bulk Edit. Nobody seems to have noticed in the nearly 3 years it's been broken. fixes #23006
git-svn-id: https://develop.svn.wordpress.org/trunk@23354 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-28 22:36:15 +00:00
Sergey Biryukov 56f44ff466 Prevent an unintended visibility change from "Password protected" to "Public" when updating the post.
props thomasvanderbeek. fixes #23065.

git-svn-id: https://develop.svn.wordpress.org/trunk@23338 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-23 03:30:04 +00:00
Andrew Ozz f8a254ec56 Autop: <samp> is not a block tag, props toscho, fixes #18807
git-svn-id: https://develop.svn.wordpress.org/trunk@23327 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-22 19:05:21 +00:00
Andrew Ozz 8cf528d255 Main editor: when setting or saving the height, look only at elements that have style="height:..." set. Reset a previously saved erroneous "ed_size" value (over 5000px) to the default height of 360px. Fixes #23042 for trunk.
git-svn-id: https://develop.svn.wordpress.org/trunk@23302 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-16 19:10:38 +00:00
bumpbot 3ef497695d Compress scripts/styles: 3.6-alpha-23279.
git-svn-id: https://develop.svn.wordpress.org/trunk@23279 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 22:34:43 +00:00
Andrew Ozz 9de9019d41 Taxonomy postbox: fix toggling with "Choose from the most used tags" when several postboxes are shown, props SergeyBiryukov, fixes #23112 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@23278 602fd350-edb4-49c9-b593-d223f7449a82
2013-01-04 20:54:11 +00:00
bumpbot 40dad409f4 Compress scripts/styles: 3.5-RC3-23093.
git-svn-id: https://develop.svn.wordpress.org/trunk@23093 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 05:26:39 +00:00
Daryl Koopersmith a4f2112fd3 Add a canonical location for media frames, an alias to fetch attachments, and frame caching to custom header. fixes #22775.
git-svn-id: https://develop.svn.wordpress.org/trunk@23092 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-06 05:06:49 +00:00
bumpbot 6b81fd778d Compress scripts/styles: 3.5-RC3-23059.
git-svn-id: https://develop.svn.wordpress.org/trunk@23059 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 02:58:34 +00:00
Andrew Nacin 426eb50936 Fix inserting of multiple attachments with captions when the first attachment does not have a caption. props azaozz. fixes #22720.
git-svn-id: https://develop.svn.wordpress.org/trunk@23055 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-05 00:59:25 +00:00
Andrew Nacin 39049254ae Move utils.js (cookie and user setting functions) to wp-includes to enable front-end use.
Make it a dependency of media-views (and therefore media-editor). Move its userSettings JS object from admin-header to being paired with the script in script loader.

see #22730.



git-svn-id: https://develop.svn.wordpress.org/trunk@23036 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 19:29:56 +00:00
bumpbot 344ddade55 Compress scripts/styles: 3.5-RC3-23025.
git-svn-id: https://develop.svn.wordpress.org/trunk@23025 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 16:25:14 +00:00
Andrew Nacin e961de8af5 Media: Disable 'Insert gallery' and 'Set featured image' if nothing is queued. Converts selection toolbars to use the newer view manager. props koopersmith, fixes #22714.
git-svn-id: https://develop.svn.wordpress.org/trunk@23024 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 16:21:57 +00:00
bumpbot e171e1c977 Compress scripts/styles: 3.5-RC2-23018.
git-svn-id: https://develop.svn.wordpress.org/trunk@23018 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 06:58:31 +00:00
Andrew Ozz 7bc623ca09 Editor: add sanity limit for editor height of 5000px, save only when resizing the Visual or the Text editor, fixes #22708
git-svn-id: https://develop.svn.wordpress.org/trunk@23016 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 06:01:47 +00:00
Andrew Nacin ebc5376a0d RTL support for Masonry on the custom header page. fixes #22709.
git-svn-id: https://develop.svn.wordpress.org/trunk@23009 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 04:08:32 +00:00
bumpbot 4073eb5ec2 Compress scripts/styles: 3.5-RC2-23007. props koopersmith. :-)
git-svn-id: https://develop.svn.wordpress.org/trunk@23007 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 01:29:58 +00:00
Ryan Boren 00e20a52dc Final round of media UX improvements.
Props koopersmith
fixes #21390 #22502


git-svn-id: https://develop.svn.wordpress.org/trunk@23006 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-04 01:26:03 +00:00
bumpbot c164b8e2c4 Compress scripts/styles: 3.5-RC2-22988.
git-svn-id: https://develop.svn.wordpress.org/trunk@22988 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 05:42:30 +00:00
Andrew Nacin f88b538001 Bring Featured Images back into the main media dialog.
Most users don't realize that the Featured Image meta box exists; if they do, few use it.

Restores the old meta box UI, including the admin_post_thumbnail_html filter. If a plugin is using _wp_post_thumbnail_html() in conjunction with Thickbox elsewhere, it will also magically still work.

Specific underlying changes:
 * Converts the modal view to use the view manager, which means that a call to open() will automatically call render and attach if necessary.
 * Doesn't automatically set a state in wp.media, to allow code to customize the states to be added before activation.

props koopersmith.
fixes #21776.



git-svn-id: https://develop.svn.wordpress.org/trunk@22979 602fd350-edb4-49c9-b593-d223f7449a82
2012-12-03 02:38:10 +00:00
bumpbot 98d7fb5e28 Compress scripts/styles: 3.5-RC2-22953. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22953 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:20:51 +00:00
Ryan Boren 06b9663f58 Refine media state machine methods.
* state( id ) becomes setState( id )
* get( id ) becomes state( id )
* state() stays the same
* previous() becomes lastState()

Props koopersmith
fixes #22652


git-svn-id: https://develop.svn.wordpress.org/trunk@22952 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-30 15:19:11 +00:00
bumpbot 972a3b7e43 Compress scripts/styles: 3.5-RC1-22922.
git-svn-id: https://develop.svn.wordpress.org/trunk@22922 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 16:17:06 +00:00
Andrew Nacin 1119f34331 Use jQuery .html() when processing HTML.
git-svn-id: https://develop.svn.wordpress.org/trunk@22916 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-29 02:42:06 +00:00
bumpbot 8d72af5bfc Compress scripts/styles: 3.5-RC1-22879. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22879 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 20:58:37 +00:00
Andrew Nacin 7f34c3e8ec Media: Introduce wp.media.editor.open(editor_id) and leverage it in distraction-free writing (fullscreen). props azaozz, koopersmith. fixes #22541.
git-svn-id: https://develop.svn.wordpress.org/trunk@22875 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-27 19:09:00 +00:00
bumpbot 6f9025dbf5 Compress scripts/styles: 3.5-beta3-22808.
git-svn-id: https://develop.svn.wordpress.org/trunk@22808 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 04:58:35 +00:00
Daryl Koopersmith ba65b3ffc7 Media: Replace the thumbnail on post.php using a request variable instead of the referer. props ocean90. fixes #21391.
git-svn-id: https://develop.svn.wordpress.org/trunk@22807 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-22 03:43:16 +00:00
bumpbot 94386517ce Compress scripts/styles: 3.5-beta3-22793.
git-svn-id: https://develop.svn.wordpress.org/trunk@22793 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 21:03:21 +00:00
Daryl Koopersmith 8ce1f39c6c Media: Move the new sections of media-upload.js to media-editor.js to allow the media modal to be used on the front end and prevent dependency conflicts with older themes and plugins. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22770 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 16:46:32 +00:00
Daryl Koopersmith 9a2033cabc Media: Backwards compatibility for the many send_to_editor filters. props nacin. see #22186, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22768 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 16:02:20 +00:00
bumpbot fe20fc8ccc Compress scripts/styles: 3.5-beta3-22763.
git-svn-id: https://develop.svn.wordpress.org/trunk@22763 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 14:58:31 +00:00
Daryl Koopersmith 493572fd09 Media: Backwards compatibility for the disable_captions filter. see #22186, #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22761 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 14:27:22 +00:00
Daryl Koopersmith 185c2d1afc Media: Use the wp.media.string functions when generating embed strings. Embed captions now work. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22760 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 14:20:01 +00:00
Daryl Koopersmith 4c2e0d6b45 Media: Make the attachment object optional when using the wp.media.string methods. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22758 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 13:53:15 +00:00
Daryl Koopersmith 663dd97aa8 Customizer: Track the link that was used to open the customizer and restore focus on close. props lessbloat. fixes #21283.
git-svn-id: https://develop.svn.wordpress.org/trunk@22756 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-21 13:17:10 +00:00
bumpbot 265d65f0fd Compress scripts/styles: 3.5-beta3-22734.
git-svn-id: https://develop.svn.wordpress.org/trunk@22734 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 22:58:28 +00:00
Andrew Nacin 0857770a56 Color picker: Instant feedback when typing a color. Strengthens alt + arrows for moving around the palette. props mattwiebe. fixes #22475. fixes #22388.
git-svn-id: https://develop.svn.wordpress.org/trunk@22732 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 22:02:09 +00:00
Andrew Nacin acf2af8cb7 Customizer: Let return/enter fire click events for dropdowns and links. Remove errant focus event. Re-add box shadow and border for the overlay header. props lessbloat. see #21283.
git-svn-id: https://develop.svn.wordpress.org/trunk@22731 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 21:25:54 +00:00
bumpbot 0f21638a91 Compress scripts/styles: 3.5-beta3-22724.
git-svn-id: https://develop.svn.wordpress.org/trunk@22724 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 18:58:31 +00:00
Andrew Nacin 0a830bf46b Fix up the 'Attach' dialog on upload.php.
We are de-emphasising attaching (see [22630]) but this is existing
core functionality and will remain for now. This commit just cleans
it up a bit so as to be less embarrassing.

props lessbloat, helenyhou.
fixes #20164.



git-svn-id: https://develop.svn.wordpress.org/trunk@22723 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 18:50:15 +00:00
bumpbot 2e6be2d063 Compress scripts/styles: 3.5-beta3-22717.
git-svn-id: https://develop.svn.wordpress.org/trunk@22717 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 14:58:32 +00:00
Daryl Koopersmith fb3d44da9b Media: Remove default gallery shortcode attributes when generating shortcode output. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22715 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 14:38:20 +00:00
Daryl Koopersmith f3199b6005 Media: Correctly fetch the default post ID when editing a gallery. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22714 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 14:33:48 +00:00
Daryl Koopersmith 69f9e2a1bf Media: Allow all galleries to be sortable. fixes #22488, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22713 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 14:04:59 +00:00
bumpbot 5881079072 Compress scripts/styles: 3.5-beta3-22701.
git-svn-id: https://develop.svn.wordpress.org/trunk@22701 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 02:58:28 +00:00
Daryl Koopersmith 81bb685bc0 Media: Improve media buttons on the front end.
* Use a less specific selector (the body, actually) to delegate opening the media dialog.
* Allow the editor ID to be the empty string so the `media_buttons` action can be called without arguments.

see #22284, #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22699 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 02:35:30 +00:00
Andrew Nacin 82c724246a Color Picker keyboard accessibility. So awesome. props lessbloat, mattwiebe. see #22475.
git-svn-id: https://develop.svn.wordpress.org/trunk@22697 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-20 02:02:07 +00:00
bumpbot bf46cc71b5 Compress scripts/styles: 3.5-beta3-22678.
git-svn-id: https://develop.svn.wordpress.org/trunk@22678 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 08:58:31 +00:00
Daryl Koopersmith ae2f322e25 Media: Insert each attachment into the editor individually.
This allows the `wpeditimage` plugin to correctly identify `caption` shortcodes.

fixes #22459, see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22672 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 07:30:53 +00:00
bumpbot 94b4a602af Compress scripts/styles: 3.5-beta3-22668.
git-svn-id: https://develop.svn.wordpress.org/trunk@22668 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 06:58:29 +00:00
Daryl Koopersmith 395fd933c9 Media: Blur the "Add Images" button when the media modal is opened. fixes #22445, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22665 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 06:34:41 +00:00
Andrew Nacin f01d10e9ac Re-enable a .wp-upload-form submit button whenever any file input in that form has a file selected, to minimize the potential for issues. props kovshenin. fixes #20855. see [22459].
git-svn-id: https://develop.svn.wordpress.org/trunk@22663 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 06:07:04 +00:00
bumpbot eda9828244 Compress scripts/styles: 3.5-beta3-22657. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22657 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 02:58:28 +00:00
Andrew Nacin 34985fbc7a Revert page on front changes. Reverts [22127] [22129] [22135] [22136]. see #16379.
git-svn-id: https://develop.svn.wordpress.org/trunk@22653 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-19 01:28:32 +00:00
bumpbot 20b307248e Compress scripts/styles: 3.5-beta3-22637.
git-svn-id: https://develop.svn.wordpress.org/trunk@22637 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 20:58:31 +00:00
Andrew Ozz 2ae738083a Make the admin menu and toolbar work well on mobile devices (take 2), props georgestephanis, fixes #20614, fixes #22382
git-svn-id: https://develop.svn.wordpress.org/trunk@22636 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-17 20:14:17 +00:00
bumpbot 4bb9a6150c Compress scripts/styles: 3.5-beta3-22607. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22607 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 00:58:33 +00:00
Andrew Ozz c4622fdbf7 Editor: disable the textarea resizing handle on touch devices (cannot be used there), don't save TinyMCE's height in iOS as the user cannot set/change it there (it expands the iframe to full height), see #21718
git-svn-id: https://develop.svn.wordpress.org/trunk@22606 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-16 00:34:07 +00:00
bumpbot 3db488d2e3 Compress scripts/styles: 3.5-beta3-22596.
git-svn-id: https://develop.svn.wordpress.org/trunk@22596 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 02:58:37 +00:00
Andrew Nacin 2dac32634e Round rather than floor values in image editing JS to avoid decrementing values on each run. props SergeyBiryukov. fixes #22011.
git-svn-id: https://develop.svn.wordpress.org/trunk@22592 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-15 02:20:29 +00:00
bumpbot 78f2bf4c41 Compress scripts/styles: 3.5-beta3-22572. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22572 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-14 15:00:31 +00:00
Daryl Koopersmith 902b910bea Media: Declare wp.media.string methods in a single object. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22569 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-14 09:31:53 +00:00
Daryl Koopersmith f684d6abc2 Media: Make edit gallery button use new media. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22568 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-14 09:06:10 +00:00
Daryl Koopersmith 223eb63b6f Media: Restore 3.4 editor behavior and remove TinyMCE views.
* Reactivates the `wpgallery` and `wpeditimage` TinyMCE plugins. Deactivates the `wpviews` TinyMCE plugin.
* Moves still-relevant logic from `mce-views.js` to `media-upload.js` and `shortcode.js`.
* No longer include `wp-includes/js/mce-views.js`. This code will not be used in 3.5, and should be considered unstable.
* Currently, this is the real 3.4 experience; as such, editing triggers the old modals. Changing this is the next major step.

When reassessing views, we should look over all of these tickets and anticipate these bugs accordingly.

fixes #21813, #22123, #22155, #22161, #22257, #22266, #22318, #22407, see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22567 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-14 07:17:22 +00:00
Andrew Nacin 3841bfba82 Revert accordion-delay code from [22400] that was causing problems. props lessbloat. fixes #21283.
git-svn-id: https://develop.svn.wordpress.org/trunk@22563 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-14 05:03:33 +00:00
bumpbot b73b44b8db Compress scripts/styles: 3.5-beta2-22551. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22551 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-12 22:58:31 +00:00
Daryl Koopersmith f6a737ed34 Media: Add Embed from URL tab.
Note: There is a bug that currently blocks adding several successive embeds.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22547 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-12 05:57:12 +00:00
bumpbot ac3a589c8d Compress scripts/styles: 3.5-beta2-22546.
git-svn-id: https://develop.svn.wordpress.org/trunk@22546 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-11 22:58:32 +00:00
Daryl Koopersmith e672eb2166 Media in QuickPress: Ensure wpActiveEditor is set when the "Add Media" button is clicked. fixes #22021, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22542 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-11 01:40:47 +00:00
bumpbot 9c7e947d79 Compress scripts/styles: 3.5-beta2-22540.
git-svn-id: https://develop.svn.wordpress.org/trunk@22540 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-10 22:58:34 +00:00
Daryl Koopersmith 5096f387d1 Media: Add custom URL as an option to attachment display properties. see #21390, #22206.
git-svn-id: https://develop.svn.wordpress.org/trunk@22537 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-10 20:36:46 +00:00
Andrew Nacin e655cbc2d1 Use event delegation for Add Media, allowing the event to bubble up to #wpbody. Keeps the Add Media button functional on a second use of QuickPress. fixes #22255.
git-svn-id: https://develop.svn.wordpress.org/trunk@22518 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-10 04:39:44 +00:00
Andrew Ozz 8081489c94 QuickPress: add some JS to set wpActiveEditor when the title or content is focused, fixes #22021
git-svn-id: https://develop.svn.wordpress.org/trunk@22517 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-10 03:05:48 +00:00
bumpbot 68f1c2fd82 Compress scripts/styles: 3.5-beta2-22515.
git-svn-id: https://develop.svn.wordpress.org/trunk@22515 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 22:58:35 +00:00
Andrew Nacin 6680184c9e Customizer: Passes focus to the upload tab to avoid focus changing when a drag event occurs from outside the browser. props lessbloat. fixes #21283.
git-svn-id: https://develop.svn.wordpress.org/trunk@22512 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 20:57:09 +00:00
Daryl Koopersmith 1d6fa49ae2 Integrate media with the custom header page. fixes #21820, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22505 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 11:59:05 +00:00
Daryl Koopersmith c4b070dd07 Custom Headers: Ensure the ready event fires before fetching the existing headers to apply jQuery.masonry. see #20346, #21820.
git-svn-id: https://develop.svn.wordpress.org/trunk@22504 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 11:55:20 +00:00
Daryl Koopersmith 9c1f2e577a Integrate media with the custom background page. fixes #21818, see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22502 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 11:37:24 +00:00
Daryl Koopersmith 63dd1ca518 Media JS: Use basic upload/library by default.
`wp.media` now recognizes the `frame` attribute (currently a string; either'select' or 'post') and defaults to using a basic select frame. It also checks for the existence of classes in a safer fashion, as it does not assume the `MediaFrame` property exists.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22495 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 09:59:36 +00:00
Daryl Koopersmith 3da7fa8d1e Customizer: Restrict image control uploaders to only allow image file types. see #22149.
git-svn-id: https://develop.svn.wordpress.org/trunk@22492 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 05:47:02 +00:00
Daryl Koopersmith dd39a3b3d2 Pinking shears. see #21283.
git-svn-id: https://develop.svn.wordpress.org/trunk@22491 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 05:44:00 +00:00
Andrew Nacin a4c23b9423 Properly set upload context when uploading a background image through the customizer. props kovshenin. fixes #22215.
git-svn-id: https://develop.svn.wordpress.org/trunk@22484 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 03:02:54 +00:00
Daryl Koopersmith b9a5374e64 Media: Add batch insertion workflow. see #21390.
git-svn-id: https://develop.svn.wordpress.org/trunk@22480 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-09 01:44:02 +00:00
bumpbot 08a5af03ed Compress scripts/styles: 3.5-beta2-22475.
git-svn-id: https://develop.svn.wordpress.org/trunk@22475 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-08 22:58:34 +00:00
Daryl Koopersmith 68d143d20d Media: Improve sidebar handling and make attachment display properties attachment-specific.
`wp.mce.media`
* Watch all workflows for the `insert` event and attempt to insert the current state's `selection` if it exists.
* Fetch and pass attachment display properties through to `wp.media.string.image()`.

`wp.media.controller.Region`
* Separate the concept of events and modes.
* All events triggered on a `Region` trigger both `event` and `event:mode` callbacks.
* When a mode is deactivated, `deactivate` and `deactivate:mode` events are fired.
* When a mode is activated, `activate` and `activate:mode` events are fired.

`wp.media.controller.Library`
* Remove the `details()`, `buildDetails()`, and `clearDetails()` methods that juggled sidebar views. Instead, handle the sidebar views using modes.

`wp.media.controller.Gallery`
* Shift the overloaded `sidebar()` method to use modes.

`wp.media.view.MediaFrame.Post`
* Declare `activate:mode` event bindings using an nested object to reduce repetition.
* Update sidebar activation callbacks.

`wp.media.view.Settings`
* Refactor to leverage HTML data attributes and implicit values (instead of setting the fallback whenever an object was created). This has the additional benefit that gallery shortcode parameters are not output when the user has left them set to the default.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22466 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-08 14:15:09 +00:00
Andrew Nacin 85efa182f7 Forms with the class .wp-upload-form will now have their submit button disabled until a file is selected. props kovshenin, helenyhou, lessbloat, SergeyBiryukov, tommcfarlin. fixes #20855.
git-svn-id: https://develop.svn.wordpress.org/trunk@22459 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 23:54:03 +00:00
Andrew Nacin 0b66789582 Swatches for the color picker. Improves discoverability of colors especially when the picker is opened with a grayscale color. props mattwiebe. FIXES #21206.
git-svn-id: https://develop.svn.wordpress.org/trunk@22457 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 23:32:03 +00:00
bumpbot 6b78173371 Compress scripts/styles: 3.5-beta2-22455.
git-svn-id: https://develop.svn.wordpress.org/trunk@22456 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 22:58:33 +00:00
Peter Westwood 2bd843f1e7 Post UI: Provide visual feedback to the user if they try to set an invalid date for a post. Fixes #17180 props jkudish.
git-svn-id: https://develop.svn.wordpress.org/trunk@22442 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 21:31:08 +00:00
bumpbot 7ec25963e0 Compress scripts/styles: 3.5-beta2-22438. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22438 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 20:29:58 +00:00
Daryl Koopersmith b636e94e47 Media: Integrate the gallery workflow with the media menu.
`wp.media.model.Query.more()`
* If a request has already been sent out for more attachments, return that request object instead of creating another.

`wp.media.controller.Region`
* A region allows views to be swapped in and out of a section of the page without either view having to know about the other.
* Application components can use the same callbacks and resources by leveraging `Region.mode()`, which triggers a set of callbacks to create or transform the current view, but only if necessary.

`wp.media.view.Frame`
* Leverage `Region` controllers instead of forcing states to swap view objects, which causes states to fit more comfortably in the controller-camp.
* Add `previous()`, a method to fetch the previous state `id`.
* Separate out the default settings over several objects (so blank frames can be instantiated).

`wp.media.view.MediaFrame`
* The base `Frame` used for media management: handles integration with the `Modal` and `UploaderWindow` views.

`wp.media.view.MediaFrame.Post`
* Includes all default media states and callbacks necessary for inserting media into a post.

see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22437 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-07 20:14:41 +00:00
bumpbot 75201ce1e5 Compress scripts/styles: 3.5-beta2-22407.
git-svn-id: https://develop.svn.wordpress.org/trunk@22407 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-06 22:58:35 +00:00
Andrew Nacin b59c8c73f1 Revert [22387]. see #14466. see #22374.
git-svn-id: https://develop.svn.wordpress.org/trunk@22406 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-06 22:36:24 +00:00
Andrew Nacin 67ac51fe73 Keyboard accessibility for the theme customizer. props lessbloat, jorbin, JustinSainton. fixes #21283.
git-svn-id: https://develop.svn.wordpress.org/trunk@22400 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-06 14:47:25 +00:00
Andrew Ozz 330c10d1a9 Kill use of colons in class names, props SergeyBiryukov, fixes #21152
git-svn-id: https://develop.svn.wordpress.org/trunk@22396 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-06 01:01:52 +00:00
Andrew Nacin f10e3e59c5 Prefix sidebar IDs on the widgets screen with "sidebar-". props batmoo. fixes #14466.
git-svn-id: https://develop.svn.wordpress.org/trunk@22387 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-05 23:17:25 +00:00
Ryan Boren f6d899210a Restore keyboard accessibility to the color picker. Props lessbloat. see #21206
git-svn-id: https://develop.svn.wordpress.org/trunk@22385 602fd350-edb4-49c9-b593-d223f7449a82
2012-11-05 23:00:15 +00:00
bumpbot db035ece96 Compress scripts/styles: 3.5-beta2-22326.
git-svn-id: https://develop.svn.wordpress.org/trunk@22326 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-29 22:58:31 +00:00
Daryl Koopersmith 15c451d2f6 Give media a heart transplant.
Revises the concept of the media controller and workspace views (i.e. two central points of control) to be more granular. The main media object is now the `Frame`, which is a hybrid view and state machine.

The state machine is a collection of states, which are just generic instances of `Backbone.Model`. This circumvents the problem of juggling global parameters when changing states. Each state contains its own event loop. All events are also forwarded to the frame itself (as is the case in all model/collection relationships).

The frame view contains several regions, each of which can be overridden without harming or re-rendering the other regions. These work well when used in conjunction with the state machine events.

This removes the upload sidebar (don't worry, visible upload UI will return). Drag and drop uploading still works. The ability to upload has been abstracted into its own view (instead of being attached to the central workspace view).

Editing galleries is temporarily broken — the gallery creation and editing experiences will be unified in a future patch.

Adds events to detect dragging changes in `wp.Uploader` and adds methods to detect and leverage browser support for CSS3 transitions.

see #21390, #21809.


git-svn-id: https://develop.svn.wordpress.org/trunk@22320 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-28 23:29:17 +00:00
bumpbot d69a863ac2 Compress scripts/styles: 3.5-beta2-22269.
git-svn-id: https://develop.svn.wordpress.org/trunk@22269 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-22 22:58:34 +00:00
Andrew Ozz 1380819bfe Improve visible focus in the admin, props lessbloat, fixes #21324
git-svn-id: https://develop.svn.wordpress.org/trunk@22268 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-22 19:51:51 +00:00
bumpbot b270741ecd Compress scripts/styles: 3.5-beta2-22265.
git-svn-id: https://develop.svn.wordpress.org/trunk@22265 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-19 22:58:33 +00:00
Andrew Ozz 469a3d226b Make the admin menu and toolbar work well on mobile devices, props georgestephanis, see #20614
git-svn-id: https://develop.svn.wordpress.org/trunk@22262 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-19 18:31:21 +00:00
bumpbot 7f2fa09f5c Compress scripts/styles: 3.5-beta2-22252. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22252 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-16 22:58:39 +00:00
Andrew Ozz 2f8193421c Tab indexes: when tabbing out of the editors make sure the next focused element is the expected/default action, fix focusing the next field when picking a date for future post, props lessbloat, fixes #21340
git-svn-id: https://develop.svn.wordpress.org/trunk@22250 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-16 21:38:35 +00:00
Andrew Ozz 7c30ff0dcb Accessibility shortcuts: new looks and fix for the WebKit focus bug, props lessbloat, fixes #21471
git-svn-id: https://develop.svn.wordpress.org/trunk@22249 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-16 21:26:59 +00:00
Andrew Nacin bb5d96a722 jQuery Masonry for uploaded custom headers. props zamoose. fixes #20346.
git-svn-id: https://develop.svn.wordpress.org/trunk@22228 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-14 17:05:16 +00:00
bumpbot d1b1bdfe8c Compress scripts/styles: 3.5-beta1-22223. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@22223 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 22:58:48 +00:00
Daryl Koopersmith 4966b15409 Properly align MCE attachment views.
* Adds a `$wrapper` property to MCE views to allow them to manipulate the wrapper on render. This should be used sparingly — only for layout changes that cannot be accomplished through altering the wrapper's children — and likely only for adding/removing classes.
* Uses `wp.html.string()` in `wp.mce.view.toView()`.

see #21390, #21812, #21813.


git-svn-id: https://develop.svn.wordpress.org/trunk@22220 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-12 18:36:21 +00:00
bumpbot 936cf22c7a Compress scripts/styles: 3.5-beta1-22204.
git-svn-id: https://develop.svn.wordpress.org/trunk@22204 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-11 22:58:47 +00:00
Daryl Koopersmith d27568e703 Caption editing in the media modal library.
* Adds a `describe` option to the workflow controller to support inline caption editing.
* For images, descriptions are mapped to the `caption` attribute.
* For other media items, descriptions are mapped to the `title` attribute.
* Descriptions are saved when the textarea's `change` event fires (i.e. when the textarea is blurred).

fixes #21807, see #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22173 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-10 23:32:48 +00:00
bumpbot 2a0622aaba Compress scripts/styles: 3.5-beta1-22172.
git-svn-id: https://develop.svn.wordpress.org/trunk@22172 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-10 22:58:38 +00:00
Daryl Koopersmith a830567a92 Correctly insert non-image attachments as links.
* Adds `wp.media.string.link( attachment )` for printing attachment links.
* Adds the `link` attribute to `Attachment` models that corresponds to the link to the attachment post.

see #21390, #21836.


git-svn-id: https://develop.svn.wordpress.org/trunk@22170 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-10 21:54:21 +00:00
Daryl Koopersmith a04930b340 Reset the media modal to the library view after inserting a gallery. fixes #22151, see #21390, #21809.
git-svn-id: https://develop.svn.wordpress.org/trunk@22156 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-10 08:47:15 +00:00
Daryl Koopersmith db21ce7189 Gallery editing in the media modal.
The edit button on gallery MCE views will open a new instance of the media modal. Images can be removed, uploaded, and reordered. However, the "Add images from media library" button is not yet functional.

see #21390, #21809, #21815.


git-svn-id: https://develop.svn.wordpress.org/trunk@22155 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-10 08:31:12 +00:00
bumpbot 9036d1e57b Compress scripts/styles: 3.5-beta1-22130.
git-svn-id: https://develop.svn.wordpress.org/trunk@22130 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-07 03:46:14 +00:00
Andrew Nacin 5ecb1e0d87 Pass the screen context directly to get_sample_permalink_html(). see #16379.
git-svn-id: https://develop.svn.wordpress.org/trunk@22129 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-07 03:44:30 +00:00
bumpbot 2aab5aa3b0 Compress scripts/styles: 3.5-beta1-22128.
git-svn-id: https://develop.svn.wordpress.org/trunk@22128 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-07 02:27:48 +00:00
Ryan Boren 3368f400e6 Better UI for doing "Page on Front".
Props SergeyBiryukov, lessbloat, nacin.

see #16379


git-svn-id: https://develop.svn.wordpress.org/trunk@22127 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-06 15:19:29 +00:00
Daryl Koopersmith d43c390e2b Use the new media modal to insert galleries into TinyMCE and the text editor.
'''Galleries'''

* Gallery insertion from the new media modal (into TinyMCE, the text editor, etc).
* Gallery previews in TinyMCE now use the `wp.mce.views` API.
* Disables the TinyMCE `wpgallery` plugin.
* Gallery previews consist of the first image of the gallery and the appearance of a stack. This will later be fleshed out to include more images/functionality (including editing the gallery, gallery properties, and showing the number of images in the gallery).
* Multiple galleries can be added to a single post.
* The gallery MCE view provides a bridge between the `wp.shortcode` and `Attachments` representation of a gallery, which allows the existing collection to persist when a gallery is initially created (preventing a request to the server for the query).


'''Shortcodes'''

* Renames `wp.shortcode.Match` to `wp.shortcode` to better expose the shortcode constructor.
* The `wp.shortcode` constructor now accepts an object of options instead of a `wp.shortcode.regexp()` match.
* A `wp.shortcode` instance can be created from a `wp.shortcode.regexp()` match by calling `wp.shortcode.fromMatch( match )`.
* Adds `wp.shortcode.string()`, which takes a set of shortcode parameters and converts them into a string.* Renames `wp.shortcode.prototype.text()` to `wp.shortcode.prototype.string()`.
* Adds an additional capture group to `wp.shortcode.regexp()` that records whether or not the shortcode has a closing tag. This allows us to improve the accuracy of the syntax used when transforming a shortcode object back into a string.

'''Media Models'''

* Prevents media `Query` models from observing the central `Attachments.all` object when query args without corresponding filters are set (otherwise, queries quickly amass false positives).
* Adds `post__in`, `post__not_in`, and `post_parent` as acceptable JS attachment `Query` args.
* `Attachments.more()` always returns a `$.promise` object.

see #21390, #21809, #21812, #21815, #21817.


git-svn-id: https://develop.svn.wordpress.org/trunk@22120 602fd350-edb4-49c9-b593-d223f7449a82
2012-10-05 04:23:59 +00:00
Daryl Koopersmith 1758d1aae3 Add QuickPress support for new media workflow.
* Adds the code required to include the new media scripts, styles, and settings to `media_button()`.
* Improves script dependencies, namely making `media-upload` require `media-views`.
* Some CSS tweaks for the making the new button work well with QuickPress.

see #21390, fixes #22021.


git-svn-id: https://develop.svn.wordpress.org/trunk@22072 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 20:04:34 +00:00
bumpbot b4322b3a60 Compress scripts/styles: 3.5-alpha-22071.
git-svn-id: https://develop.svn.wordpress.org/trunk@22071 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 19:21:47 +00:00
Daryl Koopersmith 6fff91f4d1 Media JS: Move the modal box's title from being stored in the modal view to being stored as an attribute on the workflow. Update modal titles for both the post media and featured image workflows. see #21390, #21776.
git-svn-id: https://develop.svn.wordpress.org/trunk@22044 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 06:20:22 +00:00
Daryl Koopersmith 692d806fff BUTTON.
Add a "Beta Media" button to the post editor. Currently, it is only capable of inserting images. Other attachment types and galleries need not apply... yet.

* Added `wp.media.string.image( attachment, props )` for generating an image as a string from an attachment and relevant attachment display properties.
* Properly localized the gallery workflow.
* Added `Workflow.update()`, which closes the modal, triggers an `update` event, and resets the selection.
* Added `wp.mce.media` to manage the various media workflows for editors.

see #21813, #21814, #21390.


git-svn-id: https://develop.svn.wordpress.org/trunk@22036 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 04:09:43 +00:00
Andrew Nacin 23d545224c Update underlying color picker library. props mattwiebe. see #21206.
git-svn-id: https://develop.svn.wordpress.org/trunk@22033 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 02:18:55 +00:00
Andrew Nacin 4e9d8d363e New color picker, props mattwiebe. see #21206.
Replaces Farbtastic. May change further in response to user testing.



git-svn-id: https://develop.svn.wordpress.org/trunk@22030 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-27 01:57:38 +00:00
bumpbot 04889ca5f0 Compress scripts/styles: 3.5-alpha-22024.
git-svn-id: https://develop.svn.wordpress.org/trunk@22024 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 22:58:46 +00:00
Andrew Nacin e82d5080b8 New HiDPI spinner. Uses clean <span class="spinner"></span> markup.
Be on the lookout for weirdness.
props lessbloat. see #21456.



git-svn-id: https://develop.svn.wordpress.org/trunk@22019 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 19:57:44 +00:00
Andrew Ozz 6238b3140f Make sure TinyMCE is not disabled before adding the size saving functions, see #21718
git-svn-id: https://develop.svn.wordpress.org/trunk@22017 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 19:35:36 +00:00
Andrew Ozz 5ad7fe8cd6 Main editor: maintain the height when switching Visual to Text and back, save the height when resizing as user state, output the height in the textarea tag when loading, (thanks @nacin for the help), fixes #21718
git-svn-id: https://develop.svn.wordpress.org/trunk@22007 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-26 03:30:21 +00:00
bumpbot cb220ab2ba Compress scripts/styles: 3.5-alpha-21989.
git-svn-id: https://develop.svn.wordpress.org/trunk@21989 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 22:58:42 +00:00
Andrew Nacin a7175db279 Hitting return when adding a new category from the category meta box should add the new category, not submit the post form. props wojtek.szkutnik, fixes #14312.
git-svn-id: https://develop.svn.wordpress.org/trunk@21970 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-24 16:25:15 +00:00
bumpbot aa36dd57fe Compress scripts/styles: 3.5-alpha-21950.
git-svn-id: https://develop.svn.wordpress.org/trunk@21950 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-22 15:03:04 +00:00
Andrew Nacin c33b88351b Revert JS from [21921] as it breaks saving when no post date fields are present. see #17180.
git-svn-id: https://develop.svn.wordpress.org/trunk@21947 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 22:27:51 +00:00
Andrew Nacin 1c58ef9f33 Updates and fixes to the new button styles. By default, buttons are now the same size as they were in 3.4. Then there is a smaller button (designed for minor elements) and a larger button (designed for things like Publish and Save Changes). Better focus styles. props lessbloat. see #21598.
git-svn-id: https://develop.svn.wordpress.org/trunk@21944 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-21 19:34:23 +00:00
bumpbot 826daf5daf Compress scripts/styles: 3.5-alpha-21931.
git-svn-id: https://develop.svn.wordpress.org/trunk@21931 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-20 18:59:45 +00:00
Peter Westwood 59dd4b7d2b Posting: Make it much harder to create posts with invalid dates by enforcing the post date tests in the UI and the backend code.
Previously you could quite easily send a new post into the back of beyond by specifying an invalid date like the 30th Feb and this was very confusing.
Sometimes it would seem to work and sometimes the post would end up very far in the past - depending on the mysql version and other factors.

Fixes #17180 props jkudish.


git-svn-id: https://develop.svn.wordpress.org/trunk@21921 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-19 21:43:35 +00:00
bumpbot e4b2e030e3 Compress scripts/styles: 3.5-alpha-21895.
git-svn-id: https://develop.svn.wordpress.org/trunk@21895 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 18:59:37 +00:00
Andrew Nacin 0ed8541439 Replace QuickPress labels with gray prompt texts. Stylish, but also done for localization purposes (string lengths). props ocean90. fixes #21754.
git-svn-id: https://develop.svn.wordpress.org/trunk@21894 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 18:45:44 +00:00
Andrew Nacin 5869cbc05a Synchronize block-level elements between the JS and PHP versions of wpautop. props SergeyBiryukov. fixes #18534.
git-svn-id: https://develop.svn.wordpress.org/trunk@21888 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-18 17:32:44 +00:00
bumpbot 4c9bac8206 Compress scripts/styles: 3.5-alpha-21879. TinyMCE updated.
git-svn-id: https://develop.svn.wordpress.org/trunk@21879 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-17 00:59:40 +00:00
Daryl Koopersmith 1cc9c42bc4 Use JS Attachment models in wp.Uploader. fixes #21868.
Moves the uploading Attachments queue from the media workspace view to the uploader itself. This ensures that all attachments are added to the central attachmnet store.

Updates wp.Uploader to pass Attachment models to callbacks instead of Plupload file objects. Attachments in the process of uploading have a reference to the file object (which can be fetched by calling `attachment.get('file');`).

Also updates the customizer to be compatible with the API changes.


git-svn-id: https://develop.svn.wordpress.org/trunk@21814 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-11 16:55:58 +00:00
Daryl Koopersmith 7d6e53317c New button styles.
Using the new buttons:

* Button classes are now stackable.
* All buttons should use a base class of "button".
* Buttons default to the gray style (formerly "button-secondary"). Buttons can add a style by adding additional classes. To make a primary button, add the "button-primary" class.
* Buttons can be rendered in various sizes. In addition to the default size, you can add "button-large", "button-small", or "button-tiny".

For backwards compatibility reasons, "button-primary" and "button-secondary" both work as standalone classes.

get_submit_button() has been adjusted to handle shorthand button classes (i.e. button classes can be passed without the "button-" prefix).

props lessbloat, helenyhou, trepmal, nacin. see #21598.



git-svn-id: https://develop.svn.wordpress.org/trunk@21789 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-08 04:58:34 +00:00
Andrew Ozz a624cda5c5 Don't try to show the submenu when it's visible (Chrome), part props ericlewis, fixes #21832
git-svn-id: https://develop.svn.wordpress.org/trunk@21787 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-07 22:34:43 +00:00
bumpbot 04e7435945 Compress scripts/styles: -3.5-21751.
git-svn-id: https://develop.svn.wordpress.org/trunk@21751 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 21:59:25 +00:00
Andrew Nacin 3fb49b9ffd 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: https://develop.svn.wordpress.org/trunk@21737 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-04 20:27:14 +00:00
bumpbot 1cf2f96b3c Compress scripts/styles: 3.5-alpha-21698.
git-svn-id: https://develop.svn.wordpress.org/trunk@21698 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 15:59:27 +00:00
Andrew Nacin a7bc84096f Load the meta box sortables JS on the Edit Comment screen. props SergeyBiryukov. fixes #21499.
git-svn-id: https://develop.svn.wordpress.org/trunk@21697 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-03 15:39:06 +00:00
bumpbot 62f79fd6e3 Compress scripts/styles: 3.5-alpha-21690.
git-svn-id: https://develop.svn.wordpress.org/trunk@21690 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 18:59:24 +00:00
Mark Jaquith 02975388bd Fix the adding of link categories through the "Add Link" screen. props yoavf. fixes #21590 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@21688 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-31 18:20:28 +00:00
Andrew Nacin 0dbb4dfb27 Update some code comments from .dev.js to .js. props georgestephanis. see #21633.
git-svn-id: https://develop.svn.wordpress.org/trunk@21659 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-30 02:15:57 +00:00
Andrew Nacin db981a3b27 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: https://develop.svn.wordpress.org/trunk@21592 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-23 00:04:18 +00:00
bumpbot 54c5743c66 Compress scripts/styles: 3.5-alpha-21587.
git-svn-id: https://develop.svn.wordpress.org/trunk@21587 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 18:58:32 +00:00
Andrew Ozz 877e8f6a2a Don't hide the label for the Title on the Edit Post screen, use 'screen-reader-text' instead, props SergeyBiryukov, fixes #21458
git-svn-id: https://develop.svn.wordpress.org/trunk@21584 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-22 17:40:17 +00:00
bumpbot 562ce55e89 Compress scripts/styles: 3.5-alpha-21575.
git-svn-id: https://develop.svn.wordpress.org/trunk@21575 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-21 22:58:27 +00:00
Andrew Ozz 27fdffa9db Improve the layout and accessibility of the admin menu: simplify the HTML structure, move the submenus off the viewport (still visible for screen readers) instead of hiding them with display: none, make it possible to unfold the menu on small/narrow screens, see #21349
git-svn-id: https://develop.svn.wordpress.org/trunk@21574 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-21 22:46:30 +00:00
bumpbot 36a3924822 Compress scripts/styles: 3.5-alpha-21530.
git-svn-id: https://develop.svn.wordpress.org/trunk@21530 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-15 18:58:27 +00:00
Andrew Ozz f0d18a35dd Add :focus style to all links, use JS to blur() them on click so the style is only visible when tabbing, props lessbloat, see #21324
git-svn-id: https://develop.svn.wordpress.org/trunk@21529 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-15 18:40:11 +00:00
bumpbot 9c0e7302fb Compress scripts/styles: 3.5-alpha-21458.
git-svn-id: https://develop.svn.wordpress.org/trunk@21458 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 04:58:26 +00:00
Andrew Ozz de2cabcfb7 Accessibility: enhance the Screen Options and Help tabs open/close, see #21326
git-svn-id: https://develop.svn.wordpress.org/trunk@21457 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-06 04:26:37 +00:00
bumpbot 5273caf79f Compress scripts/styles: 3.5-alpha-21443.
git-svn-id: https://develop.svn.wordpress.org/trunk@21443 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-05 22:58:29 +00:00
Andrew Ozz d3a4604335 Accessibility: fix the Skip to content link, show it on :focus, improve the styling of the skip links when shown, see #21310, see #21471
git-svn-id: https://develop.svn.wordpress.org/trunk@21435 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-05 21:37:57 +00:00
bumpbot 1eebacb690 Compress scripts/styles: 3.5-alpha-21384.
git-svn-id: https://develop.svn.wordpress.org/trunk@21384 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 06:58:20 +00:00
Daryl Koopersmith bf458c2c1a Remove the ability to upload custom headers in the customizer. Properly handle selecting the correct first tab, and removing the control/section if no tabs exist. see #21355.
To check if the control has any potential tabs and headers, added:
* WP_Customize_Image_Control->prepare_control()
* WP_Customize_Header_Image_Control->prepare_control()
* WP_Customize_Header_Image_Control->default_headers
* WP_Customize_Header_Image_Control->uploaded_headers



git-svn-id: https://develop.svn.wordpress.org/trunk@21383 602fd350-edb4-49c9-b593-d223f7449a82
2012-08-01 06:45:54 +00:00
bumpbot e7a8580df5 Compress scripts/styles: 3.5-alpha-21312.
git-svn-id: https://develop.svn.wordpress.org/trunk@21312 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-24 00:58:22 +00:00
Andrew Ozz dda796260d Make it possible to tab out of the plugin and theme editors textareas by pressing Esc followed by Tab, fixes #21347
git-svn-id: https://develop.svn.wordpress.org/trunk@21310 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-23 23:46:27 +00:00
bumpbot 29173ed46c Compress scripts/styles: 3.5-alpha-21309.
git-svn-id: https://develop.svn.wordpress.org/trunk@21309 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-23 22:58:26 +00:00
Andrew Ozz bf65e730f6 Add "Skip to content" link to all screens in the admin, fixes #21361
git-svn-id: https://develop.svn.wordpress.org/trunk@21305 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-23 22:00:06 +00:00
bumpbot f81d86ae2a Compress scripts/styles: 3.5-alpha-21282.
git-svn-id: https://develop.svn.wordpress.org/trunk@21282 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-18 22:58:20 +00:00
Andrew Ozz 9847f571b9 Widgets UI: make the whole "header" clickable to open/close the widget (same as postboxes), remove deprecated jQuery .live(), part props lessbloat, fixes #21247
git-svn-id: https://develop.svn.wordpress.org/trunk@21281 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-18 22:41:43 +00:00
bumpbot 0d795fe1d1 Compress scripts/styles: 3.5-alpha-21220.
git-svn-id: https://develop.svn.wordpress.org/trunk@21220 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 20:58:21 +00:00
Andrew Ozz 757652fe01 Clarify that 'html' refers to the Text editor tab, see #20993
git-svn-id: https://develop.svn.wordpress.org/trunk@21218 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 20:28:01 +00:00
Mark Jaquith 7d1a3effe2 Increase the z-index of widgets so they don't appear behind menu portions while dragging. props jkudish. fixes #20300
git-svn-id: https://develop.svn.wordpress.org/trunk@21214 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 19:24:57 +00:00
Mark Jaquith 5d74a50af4 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: https://develop.svn.wordpress.org/trunk@21212 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 15:28:13 +00:00
bumpbot 34ec1a7c61 Compress scripts/styles: 3.5-alpha-21210.
git-svn-id: https://develop.svn.wordpress.org/trunk@21210 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 14:58:19 +00:00
Mark Jaquith 1f25a79a65 Uncheck the "select all" checkbox when one of the child checkboxes is manually unchecked. props SergeyBiryukov. fixes #20261
git-svn-id: https://develop.svn.wordpress.org/trunk@21209 602fd350-edb4-49c9-b593-d223f7449a82
2012-07-05 14:08:20 +00:00
bumpbot 02a1ccd56b Compress scripts/styles: 3.5-alpha-21148.
git-svn-id: https://develop.svn.wordpress.org/trunk@21148 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 21:50:58 +00:00
Andrew Nacin 26f8f3e504 Refresh nonces in the customizer. props koopersmith. see #20876.
git-svn-id: https://develop.svn.wordpress.org/trunk@21135 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-26 18:48:18 +00:00
bumpbot 41fbe09c9d Compress scripts/styles: 3.5-alpha-21092.
git-svn-id: https://develop.svn.wordpress.org/trunk@21092 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-20 15:58:25 +00:00
Andrew Ozz 033c65820a Respect user settings when auto-switching postbox columns on mobile devices, fixes #21005
git-svn-id: https://develop.svn.wordpress.org/trunk@21091 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-20 05:03:08 +00:00
Andrew Ozz ed33e36b0c Admin menu: reset sub-menus position on mouseleave so they don't break when auto-expanded, props phill_brown SergeyBiryukov, fixes #19562
git-svn-id: https://develop.svn.wordpress.org/trunk@21090 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-20 01:46:05 +00:00
bumpbot 36b3057a77 Compress scripts/styles: 3.4-RC3-21072.
git-svn-id: https://develop.svn.wordpress.org/trunk@21072 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 22:52:24 +00:00
Ryan Boren b84f6e908c Customize: If the preview is not logged in but the admin is, perform a front page request to setup any mapped domain cookies and then retry loading the preview.
Props nacin, koopersmith
fixes #20926


git-svn-id: https://develop.svn.wordpress.org/trunk@21071 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 22:51:55 +00:00
bumpbot 15002daafb Compress scripts/styles: 3.4-RC3-21066.
git-svn-id: https://develop.svn.wordpress.org/trunk@21066 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 16:58:23 +00:00
Daryl Koopersmith 49b038ed59 Prevent hoverIntent from shifting open, expanded admin menus if the entire submenu is not visible. props SergeyBiryukov, fixes #20857.
git-svn-id: https://develop.svn.wordpress.org/trunk@21065 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-12 16:36:32 +00:00
bumpbot 2de04aa4b2 Compress scripts/styles: 3.4-RC2-21038.
git-svn-id: https://develop.svn.wordpress.org/trunk@21038 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 00:32:52 +00:00
Ryan Boren a24c284403 * Introduce remove_header_image(), reset_header_image(), set_header_image(), and get_header_image_data() for Custom_Image_Header.
* Handle all set/get of header theme mod through these methods.
* Use these methods in the customizer.

Props kovshenin, nacin, SergeyBiryukov, koopersmith.
fixes #20871


git-svn-id: https://develop.svn.wordpress.org/trunk@21037 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-10 00:32:19 +00:00
bumpbot 903e720df8 Compress scripts/styles: 3.4-RC2-21034.
git-svn-id: https://develop.svn.wordpress.org/trunk@21034 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-08 23:02:40 +00:00
Daryl Koopersmith 351ecd928f Theme Customizer: Separate message url from preview url in customizer JS Previewer and PreviewFrame objects. fixes #20892.
git-svn-id: https://develop.svn.wordpress.org/trunk@21033 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-08 22:59:48 +00:00
bumpbot 1f86787e1f Compress scripts/styles: 3.4-RC2-21032.
git-svn-id: https://develop.svn.wordpress.org/trunk@21032 602fd350-edb4-49c9-b593-d223f7449a82
2012-06-08 19:40:31 +00:00