Commit Graph

2666 Commits

Author SHA1 Message Date
Andrew Ozz
6cf43dfc06 Press This: add ARIA attributes to the alerts container.
Props afercia. Fixes #31942.

git-svn-id: https://develop.svn.wordpress.org/trunk@32102 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-09 23:44:50 +00:00
Andrew Ozz
02a5d32641 Revert [32099] per discussion in #core: https://wordpress.slack.com/archives/core/p1428608303003309.
See #30900.

git-svn-id: https://develop.svn.wordpress.org/trunk@32100 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-09 19:55:54 +00:00
Andrew Ozz
5eb6128f8e Remove z-index from #adminmenuback.
Fixes #30900.

git-svn-id: https://develop.svn.wordpress.org/trunk@32099 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-09 19:25:27 +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
47754dfc55 Press This: change the link text to Standard Editor.
Props Michael-Arestad. See #31923.

git-svn-id: https://develop.svn.wordpress.org/trunk@32093 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 23:27:04 +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
Andrew Ozz
543a9d052e Fix flickering of the admin menu on over-scrolling.
Props joemcgill, mindrun. Fixes #30900.

git-svn-id: https://develop.svn.wordpress.org/trunk@32089 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 21:38:16 +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
Boone Gorges
7d18785497 Don't allow whitespace-only image captions from the Media modal.
Captions containing only whitespace trick `image_add_caption()` into thinking
a caption is required, but the empty caption text confuses wpeditimage into
stripping the 'align' class specified by the user.

Fixes #21848.

git-svn-id: https://develop.svn.wordpress.org/trunk@32079 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 17:10:53 +00:00
Aaron Jorbin
852937d006 Update placeholder for FTP credentials
Two changes:
 * Remove superfluous __ function call
 * Update domain used

Fixes #31922
Props Tmeister



git-svn-id: https://develop.svn.wordpress.org/trunk@32077 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 16:49:22 +00:00
Helen Hou-Sandi
7e87edf5c2 Dashboard: Ensure images other than avatars (such as emoji replacements) in recent comments are not incorrectly positioned.
props SergeyBiryukov.
fixes #31919.


git-svn-id: https://develop.svn.wordpress.org/trunk@32076 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 16:48:48 +00:00
Helen Hou-Sandi
aa24b6d94f Admin menu: fix colors for focus state and in IE8.
props afercia.
fixes #31345.


git-svn-id: https://develop.svn.wordpress.org/trunk@32075 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 16:37:13 +00:00
Helen Hou-Sandi
1ad6f40e53 Modals: Significantly improve the touch scrolling experience.
This particularly fixes the attachment and plugin details modals, but also improves other modals such as wpLink and interim login.

props iseulde.
fixes #31609, #31611. see #31610, #31612.


git-svn-id: https://develop.svn.wordpress.org/trunk@32073 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 03:18:58 +00:00
helen
e7adde0551 Ensure post title input is not shortened for non-public post types.
props tyxla.
fixes #30968.


git-svn-id: https://develop.svn.wordpress.org/trunk@32071 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-07 20:43:01 +00:00
Helen Hou-Sandi
96bd504d60 Dismissible notices: more precise positioning across browsers.
props valendesigns.
fixes #31233.


git-svn-id: https://develop.svn.wordpress.org/trunk@32068 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-07 18:43:11 +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
Helen Hou-Sandi
2f368bf396 Insert from URL: Make sure the link text is actually used.
Turns out there were more pieces to renaming the field.

props iseulde.
fixes #29476.


git-svn-id: https://develop.svn.wordpress.org/trunk@32055 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-06 18:24:53 +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
Sergey Biryukov
b2a468c1fc After [31941], use the decoupled strings from wp-admin/network/themes.php in wp-admin/network/site-themes.php as well.
fixes #28502.

git-svn-id: https://develop.svn.wordpress.org/trunk@32029 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-05 14:57:35 +00:00
Sergey Biryukov
0e236b6e72 wp_install_maybe_enable_pretty_permalinks() should have a consistent @return value.
props DrewAPicture.
fixes #6481. see #31888.

git-svn-id: https://develop.svn.wordpress.org/trunk@32027 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-05 14:48:23 +00:00
Drew Jaynes
fd8d9c5883 Correct grammar when referring to "a user" vs "an user" in several places.
Props ocean90.
Fixes #31894.


git-svn-id: https://develop.svn.wordpress.org/trunk@32025 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-05 14:43:57 +00:00
Drew Jaynes
08a897b58c Clarify the DocBlock summary and parameter description for wp_edit_attachments_query_vars().
See [31037]. See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32019 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 21:51:36 +00:00
Drew Jaynes
c7fee4fab0 Add proper descriptions for the @global and @param tags in the wp_media_attach_action() DocBlock.
See [31619]. See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32018 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 21:34:15 +00:00
Drew Jaynes
8d8ea0c529 Clarify the DocBlock description for wp_print_request_filesystem_credentials_modal().
See [31811]. See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32016 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 21:12:10 +00:00
Drew Jaynes
2a44016ef8 Clarify 4.2.0 changelog entry, add global description to the DocBlock for WP_Users_List_Table->single_row().
See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32015 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 21:08:57 +00:00
Drew Jaynes
3e36e59646 Add missing @since versions from a variety of methods in WP_Press_This.
See [31693]. See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32014 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 19:45:48 +00:00
Drew Jaynes
4d751d4e98 Add missing DocBlocks for the _limit_array(), _limit_string(), _limit_url(), _limit_img(), _limit_embed(), and _process_meta_entry() utility methods in WP_Press_This.
See [31609]. See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32013 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 18:22:30 +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
Drew Jaynes
58ee5beced Fix filter doc vernacular for the quick_edit_show_taxonomy filter.
See [31308]. See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32011 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 16:07:48 +00:00
Drew Jaynes
d0d60543ae Fix syntax for the $to_display parameter description in the DocBlock for WP_Posts_List_Table->_page_rows().
See [31730]. See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32010 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 16:03:20 +00:00
Drew Jaynes
472b335948 Add a return description to the DocBlock for WP_Posts_List_Table->is_base_request().
See [31828]. See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32009 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 16:00:08 +00:00
Dominik Schilling (ocean90)
d5c14c102b Customizer: Fix spinners after [31996].
props westonruter.
fixes #31884.

git-svn-id: https://develop.svn.wordpress.org/trunk@32008 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 15:41:45 +00:00
Drew Jaynes
f937bdc6ce Fix typos in the function summaries for wp_ajax_press_this_save_post() and wp_ajax_press_this_add_category().
See [31534]. See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32007 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 14:37:16 +00:00
Drew Jaynes
5394bd31a0 Add an @see mention for Plugin_Upgrader, plus spacing to the wp_ajax_update_plugin() delcaration.
See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32006 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 14:18:52 +00:00
Drew Jaynes
3e5eeaf6f0 Add a more descriptive function summary for options_discussion_add_js().
See [31095]. See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32005 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 14:15:49 +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
Drew Jaynes
f76ed758b8 Fix Docblock syntax for the taxonomy_parent_dropdown_args filter.
See [30998]. See #31888


git-svn-id: https://develop.svn.wordpress.org/trunk@32003 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 14:12:04 +00:00
Boone Gorges
ddb33c9aed After [31114] and [31323], 'View Post' generated in get_sample_permalink_html() should go to pretty permalink.
`get_permalink()` will return a non-pretty permalink for future posts, which
breaks some user workflows that expect View Post to lead to a page with the
pretty permalink.

Fixes #30910.

git-svn-id: https://develop.svn.wordpress.org/trunk@32002 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-04 01:26:08 +00:00
Sergey Biryukov
667899569f Remove hidden user_id input from wp_comment_reply().
Since [31172], it caused the comment's `user_id` field to be unexpectedly changed to the user who edits the comment.

See [31776] for Edit Comment screen.

props dllh.
fixes #30307.

git-svn-id: https://develop.svn.wordpress.org/trunk@31999 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-03 13:27:32 +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
04fbf4cd60 Accessibility improvements for Options general screen: add missing labels and aria attributes.
Props DrewAPicture, afercia. Fixes #31144.

git-svn-id: https://develop.svn.wordpress.org/trunk@31993 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-03 01:54:47 +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
John Blackbourn
a0bd96bafb Introduce a string representing bulk plugin update success, ready for string freeze. Not used yet.
See #31770.


git-svn-id: https://develop.svn.wordpress.org/trunk@31991 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-03 00:17:20 +00:00
Dion Hulse
248c73b1cf Plugins Browser: Replace the download count with the number of Active installs of the plugin.
Fixes #31865


git-svn-id: https://develop.svn.wordpress.org/trunk@31990 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-02 23:48:26 +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
Sergey Biryukov
08e6f5306e Remove unnecessary echo(), add translator comment.
props ramiy.
fixes #31873.

git-svn-id: https://develop.svn.wordpress.org/trunk@31986 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-02 19:00:08 +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
Dominik Schilling (ocean90)
340cb573ae Customizer: Improve the overlay close button for iOS.
see #28784.

git-svn-id: https://develop.svn.wordpress.org/trunk@31984 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-02 17:15:08 +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
Sergey Biryukov
b8b33293e1 Press This: Use more accurate wording on Tools screen.
props kraftbj.
see #31836.

git-svn-id: https://develop.svn.wordpress.org/trunk@31980 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-02 01:29:41 +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
Sergey Biryukov
f898c8bd3d Merge title strings on Edit Site screens.
props ramiy.
fixes #31844.

git-svn-id: https://develop.svn.wordpress.org/trunk@31962 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 17:59:25 +00:00
Sergey Biryukov
02253bbcb6 Remove unused printf() on network setup screen.
props ramiy.
fixes #31841.

git-svn-id: https://develop.svn.wordpress.org/trunk@31961 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 17:00:49 +00:00
Scott Taylor
8f8c526a56 In WP_Posts_List_Table::get_views(), don't add the current class to the all status link if ->user_posts_count has a value, which triggers the additional mine status.
See [31828].
Fixes #24869.


git-svn-id: https://develop.svn.wordpress.org/trunk@31959 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 16:17:01 +00:00
Sergey Biryukov
3ecaee903e Add translator comments for placeholders in network-related strings.
props ramiy.
fixes #31834.

git-svn-id: https://develop.svn.wordpress.org/trunk@31956 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 13:25:55 +00:00
Dominik Schilling (ocean90)
14dc44fb83 Accessibility: Add landmark roles to WordPress admin areas.
props afercia, joedolson.
fixes #31450.

git-svn-id: https://develop.svn.wordpress.org/trunk@31955 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 13:16:47 +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
Dominik Schilling (ocean90)
5f8c60d79d Themes: Improve focus styling of add-new-theme link.
props celloexpressions, mrahmadawais.
fixes #31203.

git-svn-id: https://develop.svn.wordpress.org/trunk@31952 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 12:21:08 +00:00
Sergey Biryukov
8e9a5a7156 After [31941], use the decoupled strings from WP_Customize_Manager::register_controls() on the Menus screen.
see #28502.

git-svn-id: https://develop.svn.wordpress.org/trunk@31951 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-01 11:36:46 +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
78469b71b0 Themes: Add a filter to short-circuit wp_prepare_themes_for_js().
props mattwiebe, DrewAPicture.
fixes #31789.

git-svn-id: https://develop.svn.wordpress.org/trunk@31943 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-31 20:03:55 +00:00
Sergey Biryukov
dcc75b1202 Media Library: Add a label for attachment type select in list mode.
props afercia.
fixes #31795.

git-svn-id: https://develop.svn.wordpress.org/trunk@31942 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-31 19:56:08 +00:00
Sergey Biryukov
0d55562fd7 Decouple strings where the singular and plural form are not just the same string with different numbers, but essentially two different strings.
This allows for using proper plural forms in languages with more than two forms, and also resolves string conflicts when the same string is present in both singular and plural form.

fixes #28502.

git-svn-id: https://develop.svn.wordpress.org/trunk@31941 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-31 18:44:46 +00:00
Dion Hulse
842d6a9b39 Add some logic into wp_tempnam to prevent it creating 'falsey' directory names that might get used elsewhere within WordPress.
Although this logic looks a little strange at this low level, it's the best location within the Upgrades code for it to happen.
Fixes #31811


git-svn-id: https://develop.svn.wordpress.org/trunk@31936 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-31 02:10:06 +00:00
ocean90
c0104d6cc2 Customizer: Revert [31911]. We want to preserve url and return URL parameters to make the experience smoother.
see #31782.

git-svn-id: https://develop.svn.wordpress.org/trunk@31933 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-30 19:21:01 +00:00
Sergey Biryukov
3e9c664a9b Press This: Use the error message returned by wp_update_post() instead of a generic one.
props stephdau.
fixes #31808.

git-svn-id: https://develop.svn.wordpress.org/trunk@31930 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-30 14:38:35 +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
Sergey Biryukov
2b55dfcb8b Make sure the update button in "At a Glance" dashboard widget does not overlap with long strings.
props SergeyBiryukov, afercia, tyxla.
fixes #30766.

git-svn-id: https://develop.svn.wordpress.org/trunk@31928 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-30 12:49:38 +00:00
Sergey Biryukov
dadbb9713c Fix duplicate ID for Save Menu button on Menus screen.
props sagarjadhav.
fixes #31803.

git-svn-id: https://develop.svn.wordpress.org/trunk@31927 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-30 09:48:15 +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)
bb57072f82 Customizer: Increase initial-scale viewport specification to 1.0.
see #31794, #28784.

git-svn-id: https://develop.svn.wordpress.org/trunk@31921 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-29 12:22:33 +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)
da2d5c4039 Customizer: Increase size of search field and disable text size adjustment to prevent auto zooming.
see #31794.

git-svn-id: https://develop.svn.wordpress.org/trunk@31917 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-28 21:02:36 +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)
1811a80eff Remove a stray > introduced in [31905].
see #31776.

git-svn-id: https://develop.svn.wordpress.org/trunk@31915 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-27 23:19:26 +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
Dominik Schilling (ocean90)
b64b88d03b Customizer: Use responsive button styles if screen is max-width 640px.
see #31794, #28784.

git-svn-id: https://develop.svn.wordpress.org/trunk@31913 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-27 22:16:10 +00:00
Dominik Schilling (ocean90)
c5cd434a72 Theme Switcher: Don't hide action buttons on narrow screens.
see #31794.

git-svn-id: https://develop.svn.wordpress.org/trunk@31912 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-27 21:52:23 +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
Andrew Ozz
2c2951d2c0 Press This: remove role="application" from the Categories list wrapper. This doesn't make it work better in screen readers.
See #31443.

git-svn-id: https://develop.svn.wordpress.org/trunk@31907 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 21:48:42 +00:00
Dominik Schilling (ocean90)
9e59690d03 Improve newly added strings for i18n:
* Add context to "Format" string.
* Use "Format" with context for "Post format".

see #31776.

git-svn-id: https://develop.svn.wordpress.org/trunk@31906 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 21:18:25 +00:00
Dominik Schilling (ocean90)
4b3cc5c55e Improve newly added strings for i18n:
* Use a placeholder for the theme name to be able to reorder words.
* Uppercase D for "Theme Details" to match existing strings.
* Merge two revision date formats.
* Add translator comment to strings with placeholders.

props obenland.
see #31776.

git-svn-id: https://develop.svn.wordpress.org/trunk@31905 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 20:55:34 +00:00
Aaron Jorbin
9ab336e309 More clean up from removal of Shiny Plugin Installs
See #31773, #29820
Unprops Jorbin, Pento



git-svn-id: https://develop.svn.wordpress.org/trunk@31900 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 16:29:09 +00:00
Aaron Jorbin
359ba47700 Remove Shiny Plugin Installs
See #31773, #29820



git-svn-id: https://develop.svn.wordpress.org/trunk@31897 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 02:29:52 +00:00
Boone Gorges
151520ee02 Check that $_POST array index is set before comparing it in post_preview().
This prevents PHP notices in cases where a user with 'edit_others_posts' but
without 'publish_posts' previews another user's posts.

Props tyxla.
Fixes #31760.

git-svn-id: https://develop.svn.wordpress.org/trunk@31896 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 01:44:03 +00:00
Boone Gorges
5d50b55c7e When saving post, ensure that non-hierarchical taxonomy input is defined before attempting to parse it.
Taxonomy metaboxes that are disabled for the current user are included in the
post.php markup, but do not contain the 'newtag' field, and so should be
skipped when looping through the metaboxes to avoid invoking String methods
on a variable of type `undefined`.

Props MikeNGarrett, A5hleyRich.
Fixes #30859.

git-svn-id: https://develop.svn.wordpress.org/trunk@31895 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 01:22:01 +00:00
Andrew Ozz
fed67453a1 Press This: on sites that support oEmbed, if the user has selected some text, quote it below the embed.
Props stephdau. Fixes #31763.

git-svn-id: https://develop.svn.wordpress.org/trunk@31894 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-26 01:16:58 +00:00
Dominik Schilling (ocean90)
e1353e1fe8 Customizer: [31885] actually hasn't fixed the SecurityErrors. This one does.
props mattwiebe.
fixes #31687.

git-svn-id: https://develop.svn.wordpress.org/trunk@31893 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 23:35:37 +00:00
ocean90
f5ea31e389 Customizer Theme Switcher: Reset font size of theme names in overlay. Apply left position only to themes section.
see #31303.

git-svn-id: https://develop.svn.wordpress.org/trunk@31892 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 22:57:03 +00:00
Dominik Schilling (ocean90)
501aeeaaa6 Improve alignment of labels and inputs in Quick Edit.
props mattheu, valendesigns.
fixes #31408.

git-svn-id: https://develop.svn.wordpress.org/trunk@31890 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 22:24:37 +00:00
Dominik Schilling (ocean90)
e7195da11a Comments List: Don't let "Quick Edit" break on smaller screens.
Other class-wp-*-list-table.php files already contain a non-breaking space for the Quick Edit row action.

props kraftbj.
fixes #31482.

git-svn-id: https://develop.svn.wordpress.org/trunk@31889 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 22:14:24 +00:00
Dominik Schilling (ocean90)
7a5073020d Customizer: Avoid SecurityErrors when the Customizer is embedded in an origin other than wp-admin.
props mattwiebe.
fixes #31687.

git-svn-id: https://develop.svn.wordpress.org/trunk@31885 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 17:25:01 +00:00
Drew Jaynes
bd2d4c8d14 Clean up DocBlock information and syntax for get_filesystem_method().
Props ericlewis, HarishChaudhari, valendesigns.
Fixes #31267.


git-svn-id: https://develop.svn.wordpress.org/trunk@31884 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 16:31:15 +00:00
Dion Hulse
b179fe8e95 When altering the admin URL to reflect the canonical location, keep the existing hash (if present) in the URL.
Fixes #31758. See #23367


git-svn-id: https://develop.svn.wordpress.org/trunk@31882 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 04:31:21 +00:00
Andrew Ozz
9ef45a7200 Do not output empty name and id HTML attributes in get_submit_button().
Props afercia. Fixes #31749.

git-svn-id: https://develop.svn.wordpress.org/trunk@31880 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 03:22:18 +00:00
Gary Pendergast
87e372299d Emoji: Revert [31877], and print the emoji shim and styles during admin_print_scripts and admin_print_styles, instead. This is a few milliseconds slower, but easier to reuse in Press This, and any other code that uses admin scripts and styles, without using admin-header.php.
See #31701.



git-svn-id: https://develop.svn.wordpress.org/trunk@31879 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 01:42:25 +00:00
Gary Pendergast
12070176d9 Emoji: Print the emoji support shim in wp-admin, too.
See #31701.



git-svn-id: https://develop.svn.wordpress.org/trunk@31877 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-25 01:13:35 +00:00
Sergey Biryukov
ecad13044d Fix a typo in [31872].
see #31738.

git-svn-id: https://develop.svn.wordpress.org/trunk@31873 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-24 17:32:47 +00:00
Aaron Jorbin
0d35447647 Fill $plugins['upgrade'] with extra info for use in list table
Shiny updates depends upon information from the update_plugins site transient in order to set data- attributes which are used by JavaScript. Since /wp-admin/plugins.php?plugin_status=upgrade uses `$plugin['upgrade']` rather than `$plugins['all']`, we need to fill that information in both places.   

Fixes #31738.



git-svn-id: https://develop.svn.wordpress.org/trunk@31872 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-24 17:29:32 +00:00
Andrew Ozz
defa8b0f96 Press This:
- Fix the links on inserted images to point to the source site.
- Fix inserting of images above the blockquote when the editor has not been focused.
Fixes #31745.

git-svn-id: https://develop.svn.wordpress.org/trunk@31868 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-24 01:32:17 +00:00
Gary Pendergast
1676dd43b1 Taxonomy List Tables: On mobile devices, hide the slug column, to avoid cramping the action links into two rows.
Props MikeNGarrett.

Fixes #29992.



git-svn-id: https://develop.svn.wordpress.org/trunk@31865 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-23 12:20:11 +00:00
Dion Hulse
f0849242d3 Upgrader: When creating a temporary working directory, strip off .tmp as well as .zip incase we end up using that directory as the items main directory.
Fixes #30945


git-svn-id: https://develop.svn.wordpress.org/trunk@31863 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-23 04:39:56 +00:00
Dion Hulse
9eb9342a54 Remove ambiguity in the time display format in core, switches to using 24hr notation where am/pm isn't specified.
* `H:i - 09:54`
* `g:i a - 9:54 am`
* `F j, Y - January 3, 2015`

These shouldn't be used without a/A (am/AM)
* `h:i - 01:23`
* `G:i - 1:23`

Props iseulde. Fixes #31121


git-svn-id: https://develop.svn.wordpress.org/trunk@31862 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-23 02:13:50 +00:00
Helen Hou-Sandi
9822d05f72 Media: Show filename instead of extension in the list table.
This helps differentiate between files with the same or similar image or icon. Extension shows as a part of the filename, and so is not separately needed anymore.

fixes #30943.


git-svn-id: https://develop.svn.wordpress.org/trunk@31857 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-22 11:02:00 +00:00
Sergey Biryukov
630aac94a3 Remove leading newlines from two translatable strings.
fixes #29480.

git-svn-id: https://develop.svn.wordpress.org/trunk@31844 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 02:41:33 +00:00
Sergey Biryukov
5a080ea40f Use bold Arial for RTL headings.
props valendesigns.
fixes #30807.

git-svn-id: https://develop.svn.wordpress.org/trunk@31843 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 02:19:02 +00:00
Sergey Biryukov
850e6b2278 After [31730], replace one more instance of array_shift() with reset() for better performance.
see #31259, #15459.

git-svn-id: https://develop.svn.wordpress.org/trunk@31841 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 01:56:10 +00:00
Sergey Biryukov
71aa4b15f6 Make a comment clearer (without implying inversed logic) and fix a typo.
see #31645.

git-svn-id: https://develop.svn.wordpress.org/trunk@31837 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 00:44:21 +00:00
Andrew Ozz
f2aa089166 Press This: small clean-up when generating the suggested content. Ensure all keys are always set in the array that is passed through the filter.
See #31637.

git-svn-id: https://develop.svn.wordpress.org/trunk@31836 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-20 00:18:00 +00:00
Aaron Jorbin
757ee0684c Fix notice that exists for plugins with no slug
Not all plugins have a slug, especially plugins not from the WordPress.org repository. 

Props imath for initial patch. 
Fixes #31694



git-svn-id: https://develop.svn.wordpress.org/trunk@31834 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 17:47:30 +00:00
Jeremy Felt
86e155b34e Make dates in multisite site and user list tables translatable.
Props pavelevap.

Fixes #22302.


git-svn-id: https://develop.svn.wordpress.org/trunk@31833 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 16:21:46 +00:00
Aaron Jorbin
cc0e582a67 Ensure that we target the correct plugin row for update updates
The DOM traversal of the plugins list table was less than ideal. By switching to data attributes, we can better target the DOM elements we want to update.

Props ericlewis
Fixes #31621




git-svn-id: https://develop.svn.wordpress.org/trunk@31831 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 05:26:00 +00:00
Scott Taylor
1392d272c2 In the "Send Trackbacks" meta box, the description of how pingbacks work was missing a comma after the introductory clause.
Props cfinke.
Fixes #31668.


git-svn-id: https://develop.svn.wordpress.org/trunk@31830 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 04:05:33 +00:00
Scott Taylor
2f20da29b5 Replace array_shift() with reset() where appropriate for performance.
Props SergeyBiryukov.
Fixes #31259.


git-svn-id: https://develop.svn.wordpress.org/trunk@31829 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 03:55:39 +00:00
Scott Taylor
c74d9e6d1c Add WP_Posts_List_Table::is_base_request() to determine if the current "view" is the "All" (default) view.
Fixes #24869.


git-svn-id: https://develop.svn.wordpress.org/trunk@31828 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 02:25:05 +00:00
Andrew Ozz
8d392d4568 Press This: check if the URL is to embeddable content on a site that supports oEmbed. Then insert only the URL in the editor. It will trigger a wpView with the embedded content.
Fixes #31637.

git-svn-id: https://develop.svn.wordpress.org/trunk@31827 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-19 00:51:43 +00:00
Dominik Schilling (ocean90)
74e404140d Edit Terms: Show error messages actually as error messages.
props rahulbhangale, SergeyBiryukov.
fixes #31241.

git-svn-id: https://develop.svn.wordpress.org/trunk@31823 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 21:58:52 +00:00
Helen Hou-Sandi
6a273462e8 List tables: Go back to inserting quick edit rows after, as some plugins rely on that assumption. Results are the same.
fixes #26060.


git-svn-id: https://develop.svn.wordpress.org/trunk@31820 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 21:49:26 +00:00
Andrew Ozz
1a067a5e4c Press This: prepend the site domain to root-relative URLs. Reject other relative URLs.
Part props stephdau, kraftbj. Fixes #31645.

git-svn-id: https://develop.svn.wordpress.org/trunk@31818 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 20:42:38 +00:00
Dominik Schilling (ocean90)
f288ec0581 Customizer: Remove a throw error call which prevents further actions, like jqxhr.always().
props westonruter.
fixes #31501.

git-svn-id: https://develop.svn.wordpress.org/trunk@31816 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 19:28:14 +00:00
Dominik Schilling (ocean90)
e9da1dc1f2 WP_Filesystem: Change WP_Filesystem_FTPext::exists() and WP_Filesystem_ftpsockets::exists() to return true for empty directories.
Both methods are using *nlist() which returns a list of files in a given directory or the file itself for a given file. If the result was an empty list we assumed that the file doesn't exists. This includes also cases where $file is actually an empty directory. To prevent this we now check if $file is a directory before returning the result of an empty list.
Other filesystem methods are using `file_exists()` which already checks whether a file or directory exists.

fixes #30815.

git-svn-id: https://develop.svn.wordpress.org/trunk@31815 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 19:21:33 +00:00
Aaron Jorbin
08ac58e160 Request FTP and SSH credentials when needed during shiny updates
This is a restoration of [31749] which was reverted in [31755].

It includes a number of enhancements from the original version.  Namely:
 * Not doing a credential check in src/wp-includes/script-loader.php
 * Add new function `wp_print_request_filesystem_credentials_modal`
 * update the version number in the list table when a plugin is updated

UI still needs further work, but this basic version should enable more testing

Props ericlewis, jorbin
See #31528



git-svn-id: https://develop.svn.wordpress.org/trunk@31811 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 03:17:59 +00:00
Andrew Ozz
533aefdf13 Press This: ignore site descriptions that end with an ellipsis. These are most likely auto-generated.
Props kraftbj. Fixes #31639.

git-svn-id: https://develop.svn.wordpress.org/trunk@31810 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 02:50:17 +00:00
Andrew Ozz
09dd0b59c9 Press This: fix editor buttons visibility on mobile.
Props Michael Arestad. Fixes #31622.

git-svn-id: https://develop.svn.wordpress.org/trunk@31809 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 02:24:38 +00:00
Andrew Ozz
e875feafbb Press This: add aria-describedby to the new tag field.
Props afercia. Fixes #31546.

git-svn-id: https://develop.svn.wordpress.org/trunk@31808 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 02:18:00 +00:00
Andrew Ozz
34ff5cd2d2 Press This: fix the header styling and add a logo.
Props Michael-Arestad. Fixes #31472.

git-svn-id: https://develop.svn.wordpress.org/trunk@31807 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 02:09:00 +00:00
Andrew Ozz
df2c74e878 Press This: fix styling on the Tools screen.
Props Michael-Arestad, see #31462.

git-svn-id: https://develop.svn.wordpress.org/trunk@31806 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 01:57:18 +00:00
Andrew Ozz
f1ce621be7 Press This: fix styling of the "Scan" button. Fixes #31444.
git-svn-id: https://develop.svn.wordpress.org/trunk@31805 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-18 01:39:52 +00:00
Dominik Schilling (ocean90)
f812217753 Set svn:eol-style to native for press-this-editor.css.
git-svn-id: https://develop.svn.wordpress.org/trunk@31801 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-17 12:05:31 +00:00
Andrew Ozz
21da2ccd85 Press This: bump bookmarklet's version. See #31657.
git-svn-id: https://develop.svn.wordpress.org/trunk@31800 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-17 01:18:01 +00:00