Commit Graph

559 Commits

Author SHA1 Message Date
Andrew Ozz
49626f348a Emoji: rename the exclude class to wp-exclude-emoji.
Props Clorith. See #32197.

git-svn-id: https://develop.svn.wordpress.org/trunk@32337 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-04 00:04:15 +00:00
Andrew Ozz
992cc2e796 Emoji: add an exclude class to wp-emoji checked when monitoring for changes with mutationObserver. Use it for the hidden div used for resizing the Text editor.
See #32197.

git-svn-id: https://develop.svn.wordpress.org/trunk@32336 602fd350-edb4-49c9-b593-d223f7449a82
2015-05-03 20:17:38 +00:00
Dominik Schilling (ocean90)
5e371ea458 Don't try to focus disabled input fields in the request filesystem credentials form.
fixes #32064.

git-svn-id: https://develop.svn.wordpress.org/trunk@32267 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-22 16:56:36 +00:00
Helen Hou-Sandi
8ae79e3d33 Customizer: Better experience for widget filtering in desktop and iOS Safari.
Previously, the search field did not appear at all in desktop Safari, and the auto-focus keyboard fly-up in iOS rendered widget adding frustrating at best.

props dsmart, ocean90.
fixes #31987.


git-svn-id: https://develop.svn.wordpress.org/trunk@32243 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-21 14:14:27 +00:00
Gary Pendergast
05710aaa41 Ensure post titles are correctly escaped on the Dashboard.
Props helen, ocean90, dd32, pento.



git-svn-id: https://develop.svn.wordpress.org/trunk@32175 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-20 07:38:29 +00:00
Aaron Jorbin
686b4af44d Move wp-plugin-update-success event to after lock is released
Fixes #31978
See #31819
Props DavidAnderson



git-svn-id: https://develop.svn.wordpress.org/trunk@32133 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-15 14:36:04 +00:00
Aaron Jorbin
73479254bc Use named function instead of anonymous function
The named function is testable and replaceable.

Fixes #31964
Props DavidAnderson, adamsilverstein, jorbin




git-svn-id: https://develop.svn.wordpress.org/trunk@32126 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-14 16:41:24 +00:00
Dominik Schilling (ocean90)
5c1eb9f4f8 Customizer Theme Switcher: Don't re-render a theme control if it has already been rendered.
Move initialization of `$customizeSidebar` to `api.ThemesSection.initialize()` to prevent cases where the result can be undefined.

props westonruter, ocean90.
fixes #31793.

git-svn-id: https://develop.svn.wordpress.org/trunk@32119 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-13 22:09:35 +00:00
Andrew Ozz
301bb0b9da Press This: check the bookmarklet version and add the update notice from PHP.
Fixes #31942.

git-svn-id: https://develop.svn.wordpress.org/trunk@32106 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-10 21:07:42 +00:00
Andrew Ozz
fd6c5e6cbd Press This:
- Fix focusing the Standard Editor link after saving draft, if the user has not focused another element.
- Reset the Save Draft button on node change in the editor.
See #31923.

git-svn-id: https://develop.svn.wordpress.org/trunk@32098 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-09 19:06:41 +00:00
Andrew Ozz
bd8cb111ed Press This:
- When saving a draft change the text of the Save Draft button to Saving...
- On success, hide the button and show Edit Post link in its place. If the user focuses the title or the editor, hide the link and show the button again.
Fixes #31923.

git-svn-id: https://develop.svn.wordpress.org/trunk@32092 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 23:13:35 +00:00
Dominik Schilling (ocean90)
0dee3a771a Customize Headers: Improve handling of the initial header model.
Headers are currently keyed by the basename of the image, see #31786. When two images have the same key only one image will be listed and the current image can be empty in the header control.
To prevent this we now fall back to the raw current header image if the image isn't in `_wpCustomizeHeader.uploads`.

props sirbrillig.
fixes #31742.

git-svn-id: https://develop.svn.wordpress.org/trunk@32091 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 22:27:57 +00:00
Dominik Schilling (ocean90)
e9196a321a Customizer Theme Switcher: Lazy load theme screenshots.
props westonruter, ocean90.
fixes #31793.

git-svn-id: https://develop.svn.wordpress.org/trunk@32088 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 20:51:39 +00:00
Dominik Schilling (ocean90)
c3143d4bd0 Customizer Theme Switcher: Fix tabbing order if section is open.
see #31289.

git-svn-id: https://develop.svn.wordpress.org/trunk@32087 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 19:02:57 +00:00
Dominik Schilling (ocean90)
b74982a479 Customizer Theme Switcher: Don't deactivate section on empty search results.
props westonruter.
fixes #31889.

git-svn-id: https://develop.svn.wordpress.org/trunk@32083 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 17:52:18 +00:00
Aaron Jorbin
583a13344c Disable shiny updates from modal based on parent window
The QS method added in [32067] and modified in [32080] doesn't work when the user changes the tab inside the modal.  Instead, let's use the parent window's location.

Fixes #31739




git-svn-id: https://develop.svn.wordpress.org/trunk@32082 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 17:37:38 +00:00
Aaron Jorbin
7e4fa157a7 Fix logic for details based shiny updates.
This fixes two problems.  TB seems to sometimes strip window.location.search variables after tb ones, so we need to move it forward.  Also fixes logic error.

See #31739



git-svn-id: https://develop.svn.wordpress.org/trunk@32080 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 17:26:05 +00:00
Aaron Jorbin
6078d22a0a Disable modal initiated shiny updates on wp-admin/update-core.php
We don't have links to update a single plugin on wp-admin/update-core.php so we can't initiate a shiny update there.

Fixes #31739



git-svn-id: https://develop.svn.wordpress.org/trunk@32067 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-07 04:47:59 +00:00
Aaron Jorbin
38f0420e12 Use dashes instead of dots as separator for jQuery events in shiny updates
`.` is used for namespaces, so better to use dashes.

see #31819
props iseulde 



git-svn-id: https://develop.svn.wordpress.org/trunk@32063 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-07 03:12:01 +00:00
Aaron Jorbin
43623c464c Enable users to initiate a shiny update from plugin detail modal
The plugin detail modal can contain a link to update a plugin.  When it does, we should initiate a shiny update.

This relies upon postMessage which isn't available in all browsers, specifically it isn't in IE versions below 8 so this is going to be a progressive enhancement that some small percentage of users will miss out on.  These are the same users that can't use the customizer. 

Fixes #31739




git-svn-id: https://develop.svn.wordpress.org/trunk@32062 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-07 03:08:38 +00:00
Aaron Jorbin
c7956dcae0 Trigger events upon the completion of a shiny update
Plugins need to be able to do actions when a shiny update completes. While we don't have complete javascript actions and filters, we do have jQuery events that we can fire to assist plugin authors.  

See #31819



git-svn-id: https://develop.svn.wordpress.org/trunk@32061 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-07 02:31:43 +00:00
Dominik Schilling (ocean90)
d8f439c335 Customizer: Refresh nonces when a session expires and the user logs in again.
This was broken since 4.0 and the introduction of user session tokens. The nonces are now tied to session tokens as opposed to user IDs, and thus they change with each re-login.
Custom nonces can be added through the `customize_refresh_nonces` filter. On a successful refresh request the JavaScript API will trigger a `nonce-refresh` event. See widget's update nonce as an example.

props westonruter for initial patch.
fixes #31294.

git-svn-id: https://develop.svn.wordpress.org/trunk@32054 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-06 15:09:21 +00:00
Aaron Jorbin
f78df13277 Remove Shiny Bulk Updates
Bulk updates don't need to be ajaxified so let's revert.

See #31770, #29820,



git-svn-id: https://develop.svn.wordpress.org/trunk@32053 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-06 01:20:23 +00:00
Aaron Jorbin
91518f0070 Conditionally add AYS to leaving shiny updates
When a shiny update is happening or pending, we should make sure users don't accidentally leave the page. This simple notification should help prevent users from accidentally not updating when they want to update.

See #31769
Props ericlewis and adamsilverstein for initial patch



git-svn-id: https://develop.svn.wordpress.org/trunk@32052 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-06 00:59:16 +00:00
Helen Hou-Sandi
f64bf71719 Update more instances of default admin blues and grays.
props hugobaeta.
fixes #31234.


git-svn-id: https://develop.svn.wordpress.org/trunk@32051 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-05 21:19:54 +00:00
Dominik Schilling (ocean90)
9be177ec95 Customize Widgets: Improve sync logic for select[multiple] inputs.
The current logic doesn't account for the special case of `select[multiple]` inputs which lack a single value to synchronize: The value to synchronize is an array of zero or more values.
This change replaces `_getInputStatePropertyName()` with `_getInputState()`, which returns the state for an input depending on its type, and `_setInputState()`, which updates an input's state based on its type.

props westonruter.
fixes #31885.

git-svn-id: https://develop.svn.wordpress.org/trunk@32012 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 16:33:24 +00:00
Dominik Schilling (ocean90)
b152b46c0e Customizer Theme Switcher: Remove "Add New" reference from customize-controls.js.
see #31837.

git-svn-id: https://develop.svn.wordpress.org/trunk@32004 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 14:13:14 +00:00
Helen Hou-Sandi
6983294161 Spinners: Toggle a class instead of show/hide.
Toggling spinners also now uses visibility instead of display, so that the space is always reserved and nothing moves around unexpectedly.

props cdog, MikeHansenMe, valendesigns.
fixes #22839. see #31875, #30725.


git-svn-id: https://develop.svn.wordpress.org/trunk@31996 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-03 04:51:18 +00:00
Andrew Ozz
ca908b2056 Themes screen: remove extra debounce when searching.
Props evansolomon. Fixes #31812.

git-svn-id: https://develop.svn.wordpress.org/trunk@31995 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-03 02:36:36 +00:00
Andrew Ozz
c3d7fa68ce Accessibility improvements for Themes screen: fix keyboard events and callbacks for the Search field, increase trigger timeout a bit, improve Esc. key handling.
Props joedolson, adamsilverstein, afercia, DrewAPicture. Fixes #26600.

git-svn-id: https://develop.svn.wordpress.org/trunk@31994 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-03 02:31:11 +00:00
Andrew Ozz
eacf52a68a Press This:
- Show a spinner while saving a post.
- Do not redirect after saving a draft.
- Make the unidentified error message clearer.
Fixes #31875.

git-svn-id: https://develop.svn.wordpress.org/trunk@31992 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-03 01:33:30 +00:00
Andrew Ozz
4527b2cbb4 Press This: prevent pasting of HTML in the title H2. Insert the clipboard text instead.
Fixes #31768.

git-svn-id: https://develop.svn.wordpress.org/trunk@31987 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-02 21:10:28 +00:00
Dominik Schilling (ocean90)
2563a4f802 Customizer: Update selector, missed in [31984].
see #28784.

git-svn-id: https://develop.svn.wordpress.org/trunk@31985 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-02 17:17:19 +00:00
Aaron Jorbin
dc502287ef Update aria-label when doing a shiny plugin update
Also updates it again when the shiny plugin update is finished.
Also updates it if the shiny update fails

props mehulkaklotar, afercia
Fixes #31722




git-svn-id: https://develop.svn.wordpress.org/trunk@31982 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-02 05:30:13 +00:00
Dominik Schilling (ocean90)
a05bbf7e7b Customizer Theme Switcher: Navigation streamlining.
* Detach Themes section from other controls
* Move to buttons to navigate back and forth
* Change titles based on current theme status, active/previewing
* Hide the active/previewing theme from the list of available themes

props folletto for the design concepts.
props designsimply, celloexpressions for initial patches.
props Team Gandalf.
see #31289.

git-svn-id: https://develop.svn.wordpress.org/trunk@31975 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 22:50:10 +00:00
Dominik Schilling (ocean90)
d6a590e087 Customizer: Make the available widgets overlay closable on narrow screens.
see #28784.

git-svn-id: https://develop.svn.wordpress.org/trunk@31974 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 22:24:21 +00:00
Helen Hou-Sandi
35df5592f1 Admin notices: Make (most) core notices dismissible.
These no longer return upon refreshing the page when JS is on and working, so users should be able to dismiss them. This is particularly important on the post edit screen when DFW is triggered, but pretty much all notices can be dismissed if needed. A post on Make/Core will follow with information on how this can be leveraged in plugins.

props valendesigns, afercia, paulwilde, adamsilverstein, helen.
fixes #31233. see #23367.


git-svn-id: https://develop.svn.wordpress.org/trunk@31973 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 22:05:17 +00:00
Aaron Jorbin
5b676b4f8e Fix colors for activated and updated plugins
If we don't have the updated class on the TR for he update message, then the message is red and red is scary and they just updated, they should be happy and celebrating, not scared. 

See #31608




git-svn-id: https://develop.svn.wordpress.org/trunk@31969 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 21:30:50 +00:00
Dominik Schilling (ocean90)
b194676876 Customizer Theme Switcher: Switch the details/live preview buttons.
props celloexpressions, ocean90.
fixes #31791.

git-svn-id: https://develop.svn.wordpress.org/trunk@31954 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 12:35:26 +00:00
Aaron Jorbin
9932d7973d Refine UI for FTP modal and shiny updates
Numerous changes to make the FTP modal experience a good one.  These include:
 * Update HTML used by both the form here and the form on the standalone screen
 * Allow users to cancel FTP install
 * Focus locking in the modal
 * Focus on modal form on load
 * ARIA Attributes
 * Style Enhancements
 * Add low screen height (such as phone and some tablets) friendly experience for entering credentials

Props ericlewis, afercia 
Fixes #31608



git-svn-id: https://develop.svn.wordpress.org/trunk@31949 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 02:47:55 +00:00
Dominik Schilling (ocean90)
5283d55271 Customizer: Defer rendering theme controls until the section is displayed.
see #31793.

git-svn-id: https://develop.svn.wordpress.org/trunk@31944 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-31 22:20:13 +00:00
Sergey Biryukov
e2a54a80b5 Use a more specific selector for comment moderation hotkeys after [31513].
props afercia.
fixes #31545.

git-svn-id: https://develop.svn.wordpress.org/trunk@31929 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-30 13:53:30 +00:00
Andrew Ozz
9369d03bc5 Press This: fix accessibility for the post options "sidebar". Fix size of the Add Category button.
Part props afercis, joedolson. Fixes #31575.

git-svn-id: https://develop.svn.wordpress.org/trunk@31925 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-30 03:08:30 +00:00
Dominik Schilling (ocean90)
6a7a92e0ea Customizer: Fix calculation of panel positions when accessing via deep-links.
Make sure that the parent `li` is shown before attempting to calculate its position.
Improve also the logic for focusing on a panel to prevent focusing hidden elements.

props westonruter.
fixes #31014.
see #31794.

git-svn-id: https://develop.svn.wordpress.org/trunk@31920 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-29 11:16:30 +00:00
Andrew Ozz
034a4f20f0 Press This:
- When saving, replace emoji images with chars in the title text.
- Clean up the title text on paste.
See #31768.

git-svn-id: https://develop.svn.wordpress.org/trunk@31919 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-29 03:13:45 +00:00
Dominik Schilling (ocean90)
dad35768cf Theme Switcher: Use the global panel back button instead of adding a new one.
This ensures the back button is visible on iOS devices. Same as in [29610].

see #31794.

git-svn-id: https://develop.svn.wordpress.org/trunk@31918 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-28 22:08:32 +00:00
Dominik Schilling (ocean90)
ed118dc8a3 Customizer: Fix selector for container which includes the controls. Broken since [30102].
see #31794, #31014.

git-svn-id: https://develop.svn.wordpress.org/trunk@31916 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-28 20:46:37 +00:00
Dominik Schilling (ocean90)
a39ae803b6 Theme Switcher: Opening themes details modal shouldn't require two clicks on touch devices.
Inspired by [26838].

see #31794.

git-svn-id: https://develop.svn.wordpress.org/trunk@31914 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-27 22:53:50 +00:00
Helen Hou-Sandi
ee4ba5c926 Admin menu: Revert [31720] for swipe open/closed.
This is problematic on any device that uses swipe for history navigation, particularly iOS. It's also quite unrefined from an interaction point of view and would not be material for this release either way.

see #31187.


git-svn-id: https://develop.svn.wordpress.org/trunk@31910 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-27 17:47:55 +00:00
Andrew Ozz
01faa39cfd Fix focusing in the plugin and theme editors. Update the help.
Props afercia, Cheffheid. Fixes #31415.

git-svn-id: https://develop.svn.wordpress.org/trunk@31908 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 22:34:40 +00:00