Commit Graph

7175 Commits

Author SHA1 Message Date
Konstantin Obenland
62da20af9e Passwords: Add trailing periods in new strings.
Props akibjorklund.
See #32589.



git-svn-id: https://develop.svn.wordpress.org/trunk@33208 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 18:29:58 +00:00
Drew Jaynes
794b64438d Fix summaries for two methods added to WP_Terms_List_Table in 4.3.
See [32644]. See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33207 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 18:21:24 +00:00
Konstantin Obenland
71ffa6195e Passwords: Improve display of show/hide toggle for touch and small-screen devices.
See #32589.



git-svn-id: https://develop.svn.wordpress.org/trunk@33206 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 18:20:21 +00:00
Drew Jaynes
5df16d63ac Re-add parameter names to the add() DocBlock in wptextpattern accidentally replaced only with descriptions in [33200].
Props iseulde.
See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33205 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 18:08:48 +00:00
Drew Jaynes
c68c1ade16 Add missing summaries, @access tags, and some parameter descriptions for methods added to WP_Links_List_Table in 4.3.
See [32753]. See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33204 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 18:02:38 +00:00
Drew Jaynes
9f10dd65fb Add a true return description to the test() method added to wpEmoji in 4.3.
See [32335]. See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33203 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 17:58:36 +00:00
Konstantin Obenland
804a008eb1 Site Icon: Add Android-specific app icon.
Falling back to Apple app icons is deprecated behavior and will not work
forever. 192px is the recommended size for that icon.

Props kraftbj.
Fixes #32964.



git-svn-id: https://develop.svn.wordpress.org/trunk@33202 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 17:57:19 +00:00
Drew Jaynes
b1a3776a86 Minor documentation fixes for the wp.a11y.speak() and addContainer() DocBlocks.
See [33000]. See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33201 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 17:57:01 +00:00
Drew Jaynes
5b766e2082 Add true descriptions to parameters for the add() method for wptextpattern, added in 4.3.
See [32703]. See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33200 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 17:54:42 +00:00
Drew Jaynes
5251b3406a Add missing summaries, @access tags, and some parameter descriptions for methods added to WP_MS_Sites_List_Table in 4.3.
See [32755]. See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33199 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 17:52:43 +00:00
Drew Jaynes
60d32793d4 Improving formatting for various pieces of inline documentation in the new WP_Site_Icon class added in 4.3.
See [32994]. See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33198 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 17:50:41 +00:00
Drew Jaynes
f43e6e1d38 Add missing summaries, @access tags, and some parameter descriptions to methods added to WP_Posts_List_Table in 4.3.
See [32740]. See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33197 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 17:48:07 +00:00
Drew Jaynes
32c3c59944 Fix the DocBlock summary for WP_Plugins_List_Table->get_primary_column_name(), added in 4.3.
See [32644]. See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33196 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 17:45:16 +00:00
Drew Jaynes
79422e9136 Add missing summaries and parameter descriptions to new methods added to WP_MS_Users_List_Table in 4.3.
See [32757]. See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33195 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 17:42:41 +00:00
Jeremy Felt
867f582b16 Handle MS Sites bulk action verification separately from individual actions.
After [33173], bulk actions would not process due to broken verification of the `bulk-sites` action. This reintroduces the proper action and treats bulk actions differently than individual site actions.

See #32963.


git-svn-id: https://develop.svn.wordpress.org/trunk@33194 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 17:23:55 +00:00
Drew Jaynes
4d1e0e26bb Add missing summaries to new methods added to WP_MS_Themes_List_Table in 4.3.
See [32756]. See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33193 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 16:12:58 +00:00
John Blackbourn
28ef7b69e5 Place the locale inside the md5 hash in the dashboard RSS feed widget transient key to prevent the transient timeout option name becoming longer than the allowed field size.
Props andg
Fixes #32804


git-svn-id: https://develop.svn.wordpress.org/trunk@33192 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 15:31:54 +00:00
Dominik Schilling (ocean90)
89770100d3 Customizer: Fix broken cap check in WP_Customize_Nav_Menus::ajax_search_available_items.
see #33163.

git-svn-id: https://develop.svn.wordpress.org/trunk@33191 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 14:30:21 +00:00
John Blackbourn
82787b5842 Correct a parameter name in the docs for wp_insert_category().
git-svn-id: https://develop.svn.wordpress.org/trunk@33190 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 12:58:07 +00:00
Weston Ruter
4a849e7c24 Customizer: Disambiguate a menu's auto-add pages option from preceding menu location checkboxes.
Creates a separate `nav_menu_auto_add` control type following the pattern of the `nav_menu_name` control type.

Props valendesigns.
Fixes #32820.


git-svn-id: https://develop.svn.wordpress.org/trunk@33189 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 08:39:17 +00:00
Andrew Ozz
698faf3b17 TinyMCE:
- Go back to encoding the editor content only when TinyMCE is used.
- Add check and encode `</textarea>` if present.
See #32425.

git-svn-id: https://develop.svn.wordpress.org/trunk@33187 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 03:18:47 +00:00
Jeremy Felt
9f3cf9026d Network Admin: Improved header information in Edit Site tabs.
* Use the site's name rather than URL in the Edit Site header.
* Provide "Visit" and "Dashboard" links for the site on all tabs.

Props @Fab1en, @jeremyfelt.
Fixes #32525.


git-svn-id: https://develop.svn.wordpress.org/trunk@33186 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 00:26:21 +00:00
Jeremy Felt
6df1337645 Exclude individual site directories when calculating space used for the main site.
* Add an `$exclude` parameter to `recurse_dirsize()`.
* Use this parameter in `get_dirsize()` to exclude `/sites` when on the main site.
* Add tests for main site and switched site.

Props @earnjam, @jeremyfelt.
Fixes #30202.


git-svn-id: https://develop.svn.wordpress.org/trunk@33184 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-13 00:06:39 +00:00
John Blackbourn
9889311217 Append the current locale to dashboard RSS widget cache keys so they refresh accordingly when the locale is changed.
Fixes #32804
Props andg


git-svn-id: https://develop.svn.wordpress.org/trunk@33183 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-12 22:06:56 +00:00
Konstantin Obenland
3ead3aa25f Site Icon: Improve a11y in Settings.
Props afercia.
Fixes #32970.



git-svn-id: https://develop.svn.wordpress.org/trunk@33180 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-12 19:42:24 +00:00
Drew Jaynes
47502713ec Add missing summaries and @access tags to methods added to WP_Media_List_Table in 4.3.
See [32754]. See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33179 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-12 18:33:59 +00:00
Drew Jaynes
9429edbd60 Fix the summaries for a few methods and hooks added to WP_List_Table in 4.3.
See [32644]. See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33178 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-12 18:31:09 +00:00
Drew Jaynes
484cc0db21 Fix the summary and add a missing variable in the hook docs for the edit_comment_misc_actions filter.
See [32929]. See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33177 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-12 18:28:28 +00:00
Drew Jaynes
c2cd7bfc2f Fix filter doc vernacular for the new wp_ajax_cropped_attachment_id hook added in 4.3.
See #32891.


git-svn-id: https://develop.svn.wordpress.org/trunk@33176 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-12 18:25:17 +00:00
Dominik Schilling (ocean90)
9824007fc3 Nav menus: Add an ID attribute to the menu select box to link it with the label.
see #31816.
fixes #32699.

git-svn-id: https://develop.svn.wordpress.org/trunk@33174 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-12 12:07:15 +00:00
Jeremy Felt
ca0aa3f19a Add better handling for actions and messaging in MS Sites List Table row actions
* Simplify URLs used for row actions to remove messaging and site domain/path.
* Use confirmation messaging from a managed list of actions when handling the request.
* Find the site address from the site ID rather than using information passed in the URL.

Fixes #32963.


git-svn-id: https://develop.svn.wordpress.org/trunk@33173 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-12 02:35:11 +00:00
Jeremy Felt
02b67f6dcc Restrict search inputs in network dashboard's Right Now to max width of 100%.
This prevents the fields from bleeding outside of the widget area on smaller mobile devices.

See #32846.


git-svn-id: https://develop.svn.wordpress.org/trunk@33172 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-11 23:16:55 +00:00
Jeremy Felt
a9da66e853 Restrict textarea fields in network setup to a max width of 100%.
This avoids the content overrunning the screen on mobile devices.

See #32846.


git-svn-id: https://develop.svn.wordpress.org/trunk@33171 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-11 22:52:01 +00:00
Andrew Ozz
b780b94487 TinyMCE, shortcuts help popup: do not use translatable strings for the keys.
See #31441.

git-svn-id: https://develop.svn.wordpress.org/trunk@33170 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-11 22:36:58 +00:00
Jeremy Felt
9a61e7bc6c s/nestwork/network/ for network dashboard Right Now styles.
Fix misspelled ID from [33168]. A reminder to watch your cmd-s when saving a file.

See #32962.


git-svn-id: https://develop.svn.wordpress.org/trunk@33169 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-11 21:43:30 +00:00
Jeremy Felt
b29c597a98 Improve formatting of network dashboard's Right Now actions on 320px screens.
Prevents default `.subsubsub` change to center alignment and a large font that is applied at 782px.

Fixes #32962.


git-svn-id: https://develop.svn.wordpress.org/trunk@33168 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-11 21:37:57 +00:00
Dominik Schilling (ocean90)
8b757743c4 Customizer: Remove unused string.
see #32576.

git-svn-id: https://develop.svn.wordpress.org/trunk@33167 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-11 20:52:04 +00:00
Dominik Schilling (ocean90)
e5cc94a45e Password UI: The non-breaking space doesn't need to be translatable. Add some context to password strength strings.
see #32589.

git-svn-id: https://develop.svn.wordpress.org/trunk@33166 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-11 20:47:57 +00:00
Jeremy Felt
7a238fe2d6 Improve styling of .themes-php header on mobile devices.
The Themes page title does not need to be forced to 100% width on smaller devices. This fixes width issues for network admin, site admin, and single site admin theme pages.

See #32846.


git-svn-id: https://develop.svn.wordpress.org/trunk@33165 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-11 20:06:25 +00:00
Dominik Schilling (ocean90)
c9b863c636 Customizer: Merge two strings.
see #32576.

git-svn-id: https://develop.svn.wordpress.org/trunk@33164 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-11 20:04:53 +00:00
Dominik Schilling (ocean90)
74c38e0e94 Customizer: Replace non-visible error messages for nav menus with error codes.
see #32576.

git-svn-id: https://develop.svn.wordpress.org/trunk@33163 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-11 19:59:25 +00:00
Jeremy Felt
9ae86a2080 Improve styling of #adduser text inputs on mobile devices.
In [26134], `#createuser` inputs were made responsive, but `#adduser` was a straggler. This assigns the proper mobile style to the add user inputs and moves the initial declaration alongside create user for future maintenance ease.

See #32846.


git-svn-id: https://develop.svn.wordpress.org/trunk@33162 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-11 19:27:50 +00:00
Konstantin Obenland
528d30b9a8 Nav menus: Restore menu id in hidden input.
`wp-admin/js/nav-menu.js` uses the value as context for quick searches and when
adding menu items.

Reverts [32695], see #31816.
Fixes #32699.



git-svn-id: https://develop.svn.wordpress.org/trunk@33161 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-11 06:10:42 +00:00
Jeremy Felt
79b7fec957 Set autocapitalize to none, autocorrect to off for new username inputs on iOS.
This corrects both the standard wp-admin new user form and the network new user form.

Props @brad2dabone, @sunnnyratilal.
Fixes #32644.


git-svn-id: https://develop.svn.wordpress.org/trunk@33160 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-11 02:34:47 +00:00
Andrew Ozz
daf944fa25 Press This: make the font size in the Text editor similar to the Visual editor. Fix buttons padding.
Fixes #32706.

git-svn-id: https://develop.svn.wordpress.org/trunk@33159 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-10 22:36:39 +00:00
Konstantin Obenland
4f606c1bb3 Better context for autofocused elements for screen readers.
Props joedolson for initial patch.
Fixes #30706.



git-svn-id: https://develop.svn.wordpress.org/trunk@33158 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-10 22:22:32 +00:00
Dominik Schilling (ocean90)
d53063731f Customizer: Force top margin to be zero for a new created nav menu to avoid extra spacing.
props valendesigns.
fixes #32662.

git-svn-id: https://develop.svn.wordpress.org/trunk@33157 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-10 22:17:26 +00:00
Andrew Ozz
c215d8ad37 Press THis: do not change the split button box-shadow on hover.
Fixes #32757.

git-svn-id: https://develop.svn.wordpress.org/trunk@33156 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-10 22:09:33 +00:00
Helen Hou-Sandi
3e0f839eca List tables: Better accessibility and design for the comments bubble.
It is now plain text in the comments list table's "In Response To" column, where it was visually a bit confusing to have the bubble. For other list tables, it now shows a little notification bubble with the number of pending comments. The bubble and notification become plain text in the responsive list table view. It also shows no bubble when there are no comments at all, reducing some of the visual noise.

props picard102, afercia, karinchristen.
fixes #32152.


git-svn-id: https://develop.svn.wordpress.org/trunk@33155 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-10 21:43:32 +00:00
Konstantin Obenland
68cd0bc870 Site Icon: Add Customizer UI.
Second part of the Site Icon feature after [32994] introduced it for Settings.

Props celloexpressions.
See #16434.



git-svn-id: https://develop.svn.wordpress.org/trunk@33154 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-10 21:32:23 +00:00
Dominik Schilling (ocean90)
0730240b9a Customizer: Use a <button> for the collapse sidebar … button.
props afercia.
fixes #32819.

git-svn-id: https://develop.svn.wordpress.org/trunk@33153 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-10 21:21:07 +00:00
Dominik Schilling (ocean90)
0d63add172 Customizer: Replace the plus icon for #available-menu-items .item-add with a thinner one, see [33126].
fixes #32734.

git-svn-id: https://develop.svn.wordpress.org/trunk@33152 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-09 22:08:44 +00:00
Dominik Schilling (ocean90)
e0e83f8608 Customizer: Improve markup for available menu items.
* Use lists for available menu items.
* Remove unused template for available item types.
* Hide the type label and title from screen readers and instead include them in the add button.

props celloexpressions, afercia.
fixes #32724.

git-svn-id: https://develop.svn.wordpress.org/trunk@33151 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-09 21:59:47 +00:00
Dominik Schilling (ocean90)
cf6504c787 Customizer: Use the new dashicon for the Preview/Customize toggle in narrow screens.
see #30902, #28784.

git-svn-id: https://develop.svn.wordpress.org/trunk@33150 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-09 21:04:36 +00:00
Dominik Schilling (ocean90)
32ed996622 List tables: Remove a black colored separator in Quick Edit for pages.
fixes #32842.

git-svn-id: https://develop.svn.wordpress.org/trunk@33149 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-09 20:56:30 +00:00
Scott Taylor
a9874b9416 Revert [32851] and [32850] for now, tl;dr encoding issues.
See #17780.



git-svn-id: https://develop.svn.wordpress.org/trunk@33148 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-09 20:55:26 +00:00
Helen Hou-Sandi
29e0f5c3b7 Toolbar: Don't show the customize link in the admin.
props afragen.
fixes #32945.


git-svn-id: https://develop.svn.wordpress.org/trunk@33147 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-09 19:18:39 +00:00
Helen Hou-Sandi
17a5f9f494 List tables: Better focus styling for the row toggle.
This circular focus styling could probably be expanded to other areas of the admin.

props hugobaeta.
see #32395.


git-svn-id: https://develop.svn.wordpress.org/trunk@33146 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-09 19:11:19 +00:00
Jeremy Felt
035ae948d5 Fix missing period in missing site error.
Props @ocean90.
See #32934.


git-svn-id: https://develop.svn.wordpress.org/trunk@33145 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-09 16:32:26 +00:00
Jeremy Felt
8b9b56f59f Avoid PHP notice when attempting to edit a site that does not exist.
Show a more explicit error - "The requested site does not exist."

Fixes #32934.


git-svn-id: https://develop.svn.wordpress.org/trunk@33144 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-09 16:28:42 +00:00
Jeremy Felt
bb7f147703 Do not allow deletion of a super admin user through wpmu_delete_user().
In step with the UI provided by `wp-admin/network/users.php`, super admin privileges must be removed before a user can be deleted through the API.

Props @johnjamesjacoby, @jeremyfelt.
Fixes #32935.


git-svn-id: https://develop.svn.wordpress.org/trunk@33143 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-09 16:15:30 +00:00
Dominik Schilling (ocean90)
b9ef1b8533 Remove debug cruft from [33124].
see #28909.

git-svn-id: https://develop.svn.wordpress.org/trunk@33142 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-09 07:55:44 +00:00
Andrew Ozz
128557239f TinyMCE: when deleting an image, ensure the wrapping link (if any) is deleted too. Fixes the erroneous showing of the link toolbar after deleting an image. Also small readability fix.
See #32604. 

git-svn-id: https://develop.svn.wordpress.org/trunk@33141 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-09 00:24:34 +00:00
Konstantin Obenland
3e5e085bb0 4.3-beta2-33140
git-svn-id: https://develop.svn.wordpress.org/trunk@33140 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 22:05:19 +00:00
Konstantin Obenland
6ce24e8d5d 4.3-beta2
git-svn-id: https://develop.svn.wordpress.org/trunk@33139 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 21:38:57 +00:00
Weston Ruter
2a8973f117 Customizer: Remove additional wrapper element around wp_nav_menu() which broke some theme designs.
Also includes these related changes:
* Export `oldContainer` and `newContainer` among the `customize-preview-menu-refreshed` event params for themes to be able to more easily re-initialize the DOM elements.
* Improve performance for partial refresh by only sending settings related to the menu being previewed.
* Fix previewing of menu assigned to Custom Menu by exporting a menu `term_id` as opposed to an object, as the former is more stable for comparing in in args hashes.
* Do full refresh of preview when nav menu unassigned so that the layout can be updated.
* Harden conditions for when partial refresh is eligible for a `wp_nav_menu()` instance.

Fixes #32841.


git-svn-id: https://develop.svn.wordpress.org/trunk@33138 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 21:29:53 +00:00
Dominik Schilling (ocean90)
55de610283 Add/Edit User: Move weak password label to the checkbox.
props paulwilde.
fixes #32908.

git-svn-id: https://develop.svn.wordpress.org/trunk@33137 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 21:27:25 +00:00
Dominik Schilling (ocean90)
790b60ffb2 Customizer: Use visibility to hide available widgets and menu items panels from screen readers and to move them out of tab order.
props afercia.
fixes #32883.

git-svn-id: https://develop.svn.wordpress.org/trunk@33136 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 21:20:54 +00:00
Boone Gorges
002dd563e0 Improvements to responsive styling on my-sites.php.
* Ensure that floated elements break to a new line at the end of a row.
* Allow enough vertical space for long site titles.
* Give more breathing room to cells at narrow widths.

Fixes #31685.

git-svn-id: https://develop.svn.wordpress.org/trunk@33135 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 21:01:40 +00:00
Weston Ruter
ccbd855021 Customizer: Defer listening to nav menu setting changes until active.
Defer the preview starting to listen to setting changes until after the Customizer has synced settings into the preview. This ensures that any differences between the JS and PHP representations of the settings won't cause an infinite refresh.

See #32911.
Fixes #32894.


git-svn-id: https://develop.svn.wordpress.org/trunk@33134 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 20:41:18 +00:00
Dominik Schilling (ocean90)
55ffb38e28 Updates: Select All should not be a column header.
See #31654.

props tywayne.
fixes #32905.

git-svn-id: https://develop.svn.wordpress.org/trunk@33133 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 20:37:33 +00:00
Helen Hou-Sandi
013e8d2263 Spinners: Ensure one appears in the lost connection notice.
fixes #32914.


git-svn-id: https://develop.svn.wordpress.org/trunk@33132 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 20:19:44 +00:00
Weston Ruter
3c0e4d3860 Customizer: Prevent loss of walker and fallback_cb args for wp_nav_menu.
These args only need to be cleared out when exported to JavaScript, when they are not JSON-serializable. So the filter now clears these when gathering args for exporting to JS, but otherwise now leaves the original values to be passed through to `wp_nav_menu()`.

Fixes #32781.


git-svn-id: https://develop.svn.wordpress.org/trunk@33131 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 20:17:52 +00:00
Helen Hou-Sandi
f5043ab022 Toolbar: Disambiguate links to the dashboard vs. to the customizer.
All links in the site name menu now point to admin screens, and Customize is its own top-level link. This makes it clear which context you are about to enter.

fixes #32924. see #32678.


git-svn-id: https://develop.svn.wordpress.org/trunk@33130 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 20:02:44 +00:00
Andrew Ozz
6cfda41066 TinyMCE, Press This: add the wptextpattern plugin to the Press This editor.
See #31441.

git-svn-id: https://develop.svn.wordpress.org/trunk@33128 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 19:52:07 +00:00
Andrew Ozz
093a19b6d9 TinyMCE: add help for the text patterns to the shortcuts help popup.
See #31441.

git-svn-id: https://develop.svn.wordpress.org/trunk@33127 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 19:42:59 +00:00
Dominik Schilling (ocean90)
f54070a08e Dashicons: Update to the latest files.
Revert the updates to .dashicons-plus (f132) in [33108] and instead introduce a new icon, .dashicons-plus-alt2 (f543).

props liljimmi, melchoyce, empireoflight.
see #30902.

git-svn-id: https://develop.svn.wordpress.org/trunk@33126 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 19:37:04 +00:00
ocean90
94e3540dcc Update PHPMailer to 5.2.10 from 5.2.7.
Includes two modifications for WordPress:
* Removes support for NTLM in `class-smtp.php` since the required client (`extras/ntlm_sasl_client.php`) is not distributed as part of WordPress.
* Requires `class-smtp.php` for backwards compatibility with direct (non-wp_mail()) uses of PHPMailer, as the autoloader isn't used. See [27385].

This also includes a change to our `MockMailer` for unit tests. It now overrides `postSend() instead of `send()`, and `preSend()`.
`preSend()` resets `$this->Encoding` because PHPMailer doesn't clean up after itself / presets all variables. This becomes an issue when `PHPMailer::createBody()` sets `$this->Encoding = 'quoted-printable'` (away from it's default of 8bit) when it encounters a line longer than 998 characters. `Tests_Comment::test_comment_field_lengths` is such a case.

props MattyRob, dd32.
fixes #28909.

git-svn-id: https://develop.svn.wordpress.org/trunk@33124 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 17:15:02 +00:00
Helen Hou-Sandi
3762069f89 Move get_default_comment_status() to wp-includes/comment.php to sit alongside get_comment_statuses().
props nacin.
see #31168.


git-svn-id: https://develop.svn.wordpress.org/trunk@33122 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 15:43:24 +00:00
Sergey Biryukov
863ce98362 Menus: Restore visibility of up/down arrows for reordering menu items with JS disabled.
props afercia.
fixes #32916.

git-svn-id: https://develop.svn.wordpress.org/trunk@33121 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-08 06:47:45 +00:00
John Blackbourn
063637755b Allow shortcode parameter names (attributes) to contain dashes.
Props aaroncampbell, tyxla, izem
Fixes #9405


git-svn-id: https://develop.svn.wordpress.org/trunk@33118 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 23:58:49 +00:00
Helen Hou-Sandi
41705c3e7c Ensure error messages look like, well, errors.
props obenland, rachelbaker.
fixes #32475.


git-svn-id: https://develop.svn.wordpress.org/trunk@33117 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 23:10:57 +00:00
Scott Taylor
5de7ee67ce After [32980], update the docs to reflect that display_name is now included when searching for users in some scenarios.
Fixes #27304.


git-svn-id: https://develop.svn.wordpress.org/trunk@33116 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 19:38:30 +00:00
Scott Taylor
138d68a58a In wp_insert_user(), comparing an email address against the user's old email address should not be case-sensitive.
Adds unit tests.

Props tyxla.
Fixes #32158.


git-svn-id: https://develop.svn.wordpress.org/trunk@33115 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 19:28:46 +00:00
Scott Taylor
a297e1532e In install_dashboard() (plugin-install, FWIW), make sure slug is populated and degrease the unfortunate whitespace that was present.
Props tyxla.
Fixes #32889.


git-svn-id: https://develop.svn.wordpress.org/trunk@33114 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 19:18:03 +00:00
Konstantin Obenland
312f5179cb Hide notices introduced in [30505] on about page.
See #19237.

Props jadpm.
Fixes #32625.



git-svn-id: https://develop.svn.wordpress.org/trunk@33113 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 18:46:13 +00:00
Konstantin Obenland
36a9b5b0d4 Menus: Respect context when linking to the Customizer.
`Manage in Customizer` will now link to menu locations or the menus panel in
the customizer, depending on whether the user is editing menus or managing
locations.

Props rabmalin for initial patch.
Fixes #32852.



git-svn-id: https://develop.svn.wordpress.org/trunk@33112 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 17:48:23 +00:00
Konstantin Obenland
a399fb0b38 Respect the special case of having only one theme.
If there is only one theme, the Pointer won't show and the overlay is active by
default. In that case the overlay covered submenu flyouts, after [33068].
Without the Pointer active, there is no need to bump the `z-index`, so it can
remain at 10.

Fixes #31544.



git-svn-id: https://develop.svn.wordpress.org/trunk@33111 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 17:13:59 +00:00
Dominik Schilling (ocean90)
daa477e3b8 Transients: If get_option( $transient_timeout ) returns false, don't bother trying to delete the transient in get_transient().
props jamesgol, ericmann.
fixes #30380.

git-svn-id: https://develop.svn.wordpress.org/trunk@33110 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 16:44:08 +00:00
Helen Hou-Sandi
68b5d643d0 Better styling for .form-invalid inputs.
props liljimmi.
fixes #32490.


git-svn-id: https://develop.svn.wordpress.org/trunk@33109 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 16:40:34 +00:00
Dominik Schilling (ocean90)
dbbe2627d4 Dashicons: Update to the latest files.
New icons:
* .dashicons-admin-customizer (f540)
* .dashicons-admin-multisite (f541)
* .dashicons-editor-table (f535)
* .dashicons-filter (f536)
* .dashicons-hidden (f530)
* .dashicons-image-filter (f533)
* .dashicons-image-rotate (f531)
* .dashicons-layout (f538)
* .dashicons-sticky (f537)
* .dashicons-thumbs-down (f542)
* .dashicons-thumbs-up (f529)
* .dashicons-unlock (f528)
* .dashicons-warning (f534)

Updated icons:
* .dashicons-plus (f132)
* .dashicons-yes (f147)

props liljimmi, melchoyce, empireoflight.
fixes #30902.

git-svn-id: https://develop.svn.wordpress.org/trunk@33108 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 16:02:58 +00:00
Helen Hou-Sandi
62670c5adb Menu customizer: Ensure item type doesn't collide with the handle focus glow.
props andg, metodiew.
fixes #32813.


git-svn-id: https://develop.svn.wordpress.org/trunk@33107 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 15:51:50 +00:00
Helen Hou-Sandi
8209a24d85 Show row actions on focus for the dashboard comment list.
see #25408.


git-svn-id: https://develop.svn.wordpress.org/trunk@33106 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 15:25:03 +00:00
Helen Hou-Sandi
0e6e1e6612 List tables: Ensure special CSS for the title column gets applied.
This could have some side effects if a custom list table has a title column with a strong element inside that is not the post title, but that is fairly edge and we can address that if it comes up. Also moves the rules into `list-tables.css`.

see #25408.


git-svn-id: https://develop.svn.wordpress.org/trunk@33105 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 15:20:45 +00:00
Helen Hou-Sandi
8f024536c1 List tables: Add a fallback for the primary column.
Without a primary column defined, nothing shows in the responsive view at all, which is bad.

props mordauk.
see #25408.


git-svn-id: https://develop.svn.wordpress.org/trunk@33104 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 15:11:54 +00:00
Dion Hulse
70ab756043 Ensure that Custom Links in menu's are marked as current regardless of their scheme.
Props McGuive7, marsjaninzmarsa.
Fixes #32221


git-svn-id: https://develop.svn.wordpress.org/trunk@33103 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 09:56:19 +00:00
Helen Hou-Sandi
6d8f6f8d11 List tables: Account for comments being reused on the post edit screen.
Adding the `.wp-list-table` class gets us a few responsive goodies for free. And now it won't show a strange button outline.

see #32395.


git-svn-id: https://develop.svn.wordpress.org/trunk@33101 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 00:08:46 +00:00
Jeremy Felt
dabe7ab9c3 Assign proper active class when showing plugin updates in network admin
Previously, a plugin would trigger an active class if it was active on the network's main site.

Fixes #32901.


git-svn-id: https://develop.svn.wordpress.org/trunk@33100 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-07 00:01:31 +00:00
Helen Hou-Sandi
9c1265181c List tables: Get rid of double borders for plugins and themes on narrow screens.
see #32395.


git-svn-id: https://develop.svn.wordpress.org/trunk@33099 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-06 23:48:16 +00:00
Helen Hou-Sandi
94cd2d47eb List tables: Ensure the no items message appears on narrow screens.
fixes #32900. see #32395.


git-svn-id: https://develop.svn.wordpress.org/trunk@33098 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-06 23:29:44 +00:00
Jeremy Felt
69239d86f9 Remove unused $current_site global in MS Sites list table
Found itself unused after [32719].

See #32434.


git-svn-id: https://develop.svn.wordpress.org/trunk@33097 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-06 22:50:59 +00:00
Konstantin Obenland
2cafc0d787 Check for all required caps before (un)sticking a post.
In cases where a user has the `edit_others_posts` capability but not
`publish_posts`, it was possible for that user to unstick a post after editing,
since the input field was never made available in that context.

Props ericmann, chriscct7.
Fixes #24153.



git-svn-id: https://develop.svn.wordpress.org/trunk@33096 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-06 22:40:59 +00:00
Boone Gorges
53021ef6fe In WP_Query::parse_tax_query(), allow taxonomy querystring to be formatted as an array.
Props Veraxus.
Fixes #32454.

git-svn-id: https://develop.svn.wordpress.org/trunk@33095 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-06 20:36:18 +00:00
Weston Ruter
17854c6464 Customizer: Register controls and settings for nav_menu_locations even when there are no menus yet.
This change ensures that the first menu created can be assigned to a location without first saving and reloading the Customizer.

Props markoheijnen.
Fixes #32858.


git-svn-id: https://develop.svn.wordpress.org/trunk@33094 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-06 19:12:48 +00:00
Lance Willett
63f025a07b Twenty Fifteen: don't hyphenate input elements. Fixes #32880.
git-svn-id: https://develop.svn.wordpress.org/trunk@33093 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-06 18:02:34 +00:00
obenland
4ba9e8a062 Twenty Fifteen: Display sidebar background color with Header Image.
If the header image has a transparent background, the sidebar background color
should be visible. With the `background` shorthand it could never be over set
on the front-end however.

Props valendesigns.
Fixes #31460.



git-svn-id: https://develop.svn.wordpress.org/trunk@33092 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-06 17:26:02 +00:00
Scott Taylor
3eaaa104b5 In wp.media.model.Attachments.filters.type(), return true earlier if type isn't set.
Props vivekbhusal.
Fixes #32746.


git-svn-id: https://develop.svn.wordpress.org/trunk@33091 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-06 15:33:53 +00:00
Sergey Biryukov
345521666e Merge two class attributes in WP_Customize_Media_Control::content_template() and wp_print_media_templates().
props nicholas_io.
fixes #32896.

git-svn-id: https://develop.svn.wordpress.org/trunk@33090 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-06 14:18:03 +00:00
Weston Ruter
1b02636793 Customizer: Ensure that a newly-added nav menu item gets the Original link populated in its control.
Props valendesigns.
Fixes #32858.



git-svn-id: https://develop.svn.wordpress.org/trunk@33089 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-06 05:52:59 +00:00
Andrew Ozz
0f7208a1ee Fix opening closed widget areas when dragging a widget over them.
Props polevaultweb. Fixes #13524.

git-svn-id: https://develop.svn.wordpress.org/trunk@33088 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-05 18:19:44 +00:00
Sergey Biryukov
ade1ffde80 Plugins list table: Add an aria-label attribute with the plugin name to plugin action links to provide context for screen reader users.
props bramd, rianrietveld, afercia.
fixes #26167.

git-svn-id: https://develop.svn.wordpress.org/trunk@33087 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-05 15:02:04 +00:00
Konstantin Obenland
c35f5f16b0 Remove deprecated constructor notice.
Since Twenty Eleven can be used with WordPress releases prior to 4.3, it can't
contain calls to functions that were introduced after its initial release.

Props ocean90.
Fixes #32881.



git-svn-id: https://develop.svn.wordpress.org/trunk@33086 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-04 20:42:43 +00:00
Konstantin Obenland
9b40a4f79f Deprecate PHP4 style contructor in Twenty Eleven's Ephemera widget.
See #31982.

Props Frank Klein.
Fixes #32881.



git-svn-id: https://develop.svn.wordpress.org/trunk@33085 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-04 20:28:17 +00:00
Konstantin Obenland
9d101ee78e Site Icon: Switch to using H1 headings.
See #31650.

Props afercia.
Fixes #32885.



git-svn-id: https://develop.svn.wordpress.org/trunk@33084 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-04 18:48:37 +00:00
Jeremy Felt
14f39faab1 Usernames in multisite should be restricted to 60 characters or fewer.
Only 60 characters can be stored in the database for a username, which could cause lookup issues when attempting to use similar usernames of extreme length.

Props @DJPaul.
See #17904, Fixes #26784.


git-svn-id: https://develop.svn.wordpress.org/trunk@33083 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-04 05:52:46 +00:00
Jeremy Felt
d8df19141a Don't autocapitalize or autocorrect domain or path when adding a new site in iOS.
Props @ohryan.
Fixes #32646.


git-svn-id: https://develop.svn.wordpress.org/trunk@33082 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-04 04:39:48 +00:00
Jeremy Felt
ea4baac6e8 Use the full site URL in choose_primary_blog() when a user is a member of only one site.
Aligns with the output used when a user is a member of multiple sites.

Fixes #32884.


git-svn-id: https://develop.svn.wordpress.org/trunk@33081 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-04 04:20:18 +00:00
Jeremy Felt
4a785cbeb0 Only output Save Changes in My Sites when a user is a member of more than one site.
The conditional also checks for the existence of filters that may otherwise alter the HTML in My Sites to include extra form inputs for these users. If a filter is in use, the Save Changes button will display.

Props @Oxymoron, @obenland.
Fixes #32645.


git-svn-id: https://develop.svn.wordpress.org/trunk@33080 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-04 04:00:48 +00:00
Sergey Biryukov
e03c9a769a Don't capitalize words in a sentence after comma.
props bjornjohansen, netweb.
fixes #31927.

git-svn-id: https://develop.svn.wordpress.org/trunk@33079 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-04 00:49:52 +00:00
Sergey Biryukov
313c416f6c Customizer: Remove HTML tags from two translatable strings.
props henrikakselsen.
fixes #32817.

git-svn-id: https://develop.svn.wordpress.org/trunk@33078 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 22:28:29 +00:00
Dominik Schilling (ocean90)
45e6228070 Customizer: Fix tabindex of reorder buttons for menu items with depth 1 and 10.
props celloexpressions.
fixes #32767.

git-svn-id: https://develop.svn.wordpress.org/trunk@33077 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 22:20:04 +00:00
Sergey Biryukov
056fcf6162 Plugins list table: Use case-insensitive sorting.
props GaryJ.
fixes #32735.

git-svn-id: https://develop.svn.wordpress.org/trunk@33076 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 21:52:46 +00:00
Konstantin Obenland
e7c286551f Site Icon: Remove date dropdown from media modal.
This also allows us to leverage the builtin `suggestedWidth` and
`suggestedHeight` parameters to convey the expected image size.

Props ocean90.
Fixes #32860.



git-svn-id: https://develop.svn.wordpress.org/trunk@33075 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 21:27:06 +00:00
Dominik Schilling (ocean90)
787016376a Customizer: Improve descriptive text and focus for menu items reorder button.
props afercia.
fixes #32725.

git-svn-id: https://develop.svn.wordpress.org/trunk@33074 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 21:23:12 +00:00
Konstantin Obenland
e33229a237 Synchronize star ratings of themes and plugins.
Makes themes ratings look like plugins ratings already do.

Props helen.
Fixes #32782.
 


git-svn-id: https://develop.svn.wordpress.org/trunk@33073 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 20:53:18 +00:00
Boone Gorges
02bd602dfe Improve the display of my-sites.php on small screens.
Props tryon.
Fixes #31685.

git-svn-id: https://develop.svn.wordpress.org/trunk@33072 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 20:46:54 +00:00
Weston Ruter
a21c6e76d6 Customizer: Fix saving menus with empty names or names that are already used.
Adds validation for initially-supplied nav menu name, blocking empty names from being supplied. If later an empty name is supplied and the nav menu is saved, the name "(unnamed)" will be supplied instead and supplied back to the client. If a name is supplied for the menu which is currently used by another menu, then the name conflict is resolved by adding a numerical counter similar to how `post_name` conflicts are resolved. Includes unit tests.

Fixes #32760.



git-svn-id: https://develop.svn.wordpress.org/trunk@33071 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 20:46:48 +00:00
Dominik Schilling (ocean90)
55d7ab3da5 Customizer: Remove some non-functional code.
props afercia.
fixes #32839.

git-svn-id: https://develop.svn.wordpress.org/trunk@33070 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 20:36:59 +00:00
Dominik Schilling (ocean90)
e430245d00 Customizer: Accessibility enhancements.
* Move tabindex/focus code into `onChangeExpanded` so that it works for cases where `expand()` is called directly.
* Use `visibility: hidden` to hide hidden elements from keyboard focus and screen readers.

props celloexpressions.
fixes #31336.

git-svn-id: https://develop.svn.wordpress.org/trunk@33069 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 20:18:17 +00:00
Konstantin Obenland
1757c3f4d4 Don't let wp-pointers cover the theme detail modal.
Fixes #31544.


git-svn-id: https://develop.svn.wordpress.org/trunk@33068 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 17:04:33 +00:00
Konstantin Obenland
8d40cdcb1b Use a less element-specific class name for links within page titles.
After [32974] these links are no longer within an `h2`, making the class name
inaccurate. `add-new-h1` has the potential to expose the same problem for in a
possible future change.

Fixes #31650.



git-svn-id: https://develop.svn.wordpress.org/trunk@33067 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 16:41:18 +00:00
Konstantin Obenland
04a01d7354 Check if commentReply exists before trying to work with it.
Fixes a bug that caused the save/publish flow to be interrupted by an AYS.

Introduced in [33024].
See #29457.



git-svn-id: https://develop.svn.wordpress.org/trunk@33066 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 15:31:38 +00:00
Aaron Jorbin
3baf370b28 Remove accidental change to embed
Reverts about.php change from [33064]




git-svn-id: https://develop.svn.wordpress.org/trunk@33065 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 14:29:37 +00:00
Aaron Jorbin
a547d6fed1 Don't strip newline in esc_url() when protocol is mailto:
The mailto protocol is a bit different than the other protocols in that new lines are something you might realistically want to include. Includes tests to make sure that http protocol urls that contain mailto: aren't affected. Tests for stripping newlines in general already exist.

Fixes #31632
Props danielbachhuber



git-svn-id: https://develop.svn.wordpress.org/trunk@33064 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 14:27:11 +00:00
Dion Hulse
12168b78d5 Press This: Rewrite WP_Press_This::fetch_source_html() to utilise the HTTP API better without the need for a local temporary file.
This reverts [33061] but keeps it's custom UA string.

See #32864


git-svn-id: https://develop.svn.wordpress.org/trunk@33062 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 12:00:10 +00:00
Sergey Biryukov
9cfb72615c Press This: Set explicit user agent.
props kraftbj.
fixes #32864.

git-svn-id: https://develop.svn.wordpress.org/trunk@33061 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 11:16:08 +00:00
Ella Iseulde Van Dorpe
220121249a Editor: refresh word count quicker
2 seconds is a bit slow. Debouncing with 1 second means it can only run maximum once per second. In reality it won't run us much. Even people who type slow will usually type faster than 1 character per second.

See #30966.



git-svn-id: https://develop.svn.wordpress.org/trunk@33060 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 09:14:08 +00:00
Dion Hulse
2fbb13be21 Don't upgrade global tables to utf8mb4 when wp_should_upgrade_global_tables() says not to.
Additionally fixes an incorrect conditional in [33057] which would result in the usermeta index being altered twice on Multisite updates.

See #32154


git-svn-id: https://develop.svn.wordpress.org/trunk@33058 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 05:43:28 +00:00
Dion Hulse
947825f326 Introduce wp_should_upgrade_global_tables() to determine if global tables should be upgraded automatically. Use it throughout the existing upgrade routines.
Props johnjamesjacoby for initial patch
Fixes #32154 for trunk


git-svn-id: https://develop.svn.wordpress.org/trunk@33057 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 04:33:14 +00:00
Helen Hou-Sandi
e7a184a832 Toolbar: Allow submenus to be closed with a second tap on touch devices.
Also closes submenus when the admin menu is toggled open, as it opens below and thus can be obscured.

props stephdau, seanchayes.
see #29906.


git-svn-id: https://develop.svn.wordpress.org/trunk@33056 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 03:28:15 +00:00
Dion Hulse
e709e91218 Enable utf8mb4 for MySQL extension users. Previously utf8mb4 was limited to MySQLi users only unintentionally.
This change does the following things
 * Allows utf8mb4 for the MySQL extension
 * Re-runs the utf8->utf8mb4 conversion for single sites, this will do nothing for tables already converted
 * Re-runs the utf8->utf8mb4 conversion for global tables in multisite when the environment supports utf8mb4
 * Removes upgrade_420() calling as upgrade_430() will perform those changes now instead

The index shortenings should have still taken place on utf8 sites previously, so there's no need to run those again. 

Props kovshenin, pento, dd32
Fixes #32127 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@33055 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-03 03:25:07 +00:00
Konstantin Obenland
bfbdb6f0b2 Use get_default_comment_status() globally.
Also makes the filter name static and passes the post type for context.

Props valendesigns.
Fixes #31168.



git-svn-id: https://develop.svn.wordpress.org/trunk@33054 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-02 22:31:58 +00:00
Konstantin Obenland
9532df3c9f Site Icon: Improve responsiveness for small screen devices.
Using Jcrop's `trueSize` argument also allows us to get rid of all that behind
the scenes temp image creating and back and forth calculating of image sizes.

Props tyxla for initial patch.
See #16434.



git-svn-id: https://develop.svn.wordpress.org/trunk@33053 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-02 21:15:52 +00:00
Sergey Biryukov
07ee7f1ef7 Replace @returns with @return in PHP docblocks.
props kraftbj.
fixes #32865.

git-svn-id: https://develop.svn.wordpress.org/trunk@33052 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-02 21:04:57 +00:00
Konstantin Obenland
3d71278f58 Site Icon: Skip cropping if image has the correct size.
Props jipmoors for initial patch.
See #16434.



git-svn-id: https://develop.svn.wordpress.org/trunk@33051 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-02 20:39:23 +00:00
Konstantin Obenland
40b504fffc Add missing prefixed attributes, introduced in [33023].
See ##32589.


git-svn-id: https://develop.svn.wordpress.org/trunk@33050 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-02 17:39:31 +00:00
Konstantin Obenland
8f4774104b Site Icon: Show correct background preview for transparent images.
iOS will show transparent parts as black, where as the icon itself stays
transparent when used as a favicon.

See #16434.


git-svn-id: https://develop.svn.wordpress.org/trunk@33049 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-02 17:15:47 +00:00
Sergey Biryukov
f8cbb8fde8 Make "Preformatted" string in TinyMCE translatable.
props iseulde.
fixes #32862.

git-svn-id: https://develop.svn.wordpress.org/trunk@33048 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-02 12:01:00 +00:00
Sergey Biryukov
dcc6fb838f Restore rel='nofollow' for comment reply links to reduce extra crawling by search engines.
This reverts [16230], which didn't have enough review at the time of commit.

props joostdevalk.
see #22889, #18547, #16881.

git-svn-id: https://develop.svn.wordpress.org/trunk@33047 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-02 11:08:42 +00:00
Konstantin Obenland
5c531b9969 4.3-beta1-33046
git-svn-id: https://develop.svn.wordpress.org/trunk@33046 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-02 01:35:01 +00:00
Helen Hou-Sandi
b896a4e31b Customizer: Build flips the panel arrow for RTL on our behalf.
see #31336.


git-svn-id: https://develop.svn.wordpress.org/trunk@33045 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-02 01:28:43 +00:00
Konstantin Obenland
83f8f62739 4.3-beta1
git-svn-id: https://develop.svn.wordpress.org/trunk@33044 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-02 01:21:05 +00:00
Mark Jaquith
fcd4f3ea0f Revert [33038] because of objections raised on #22889 and #31590
git-svn-id: https://develop.svn.wordpress.org/trunk@33042 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-02 00:46:28 +00:00
Konstantin Obenland
efdce1da51 Turn of comments for pages by default.
Pages are static content, for which comments are not expected out of the box.

Props valendesigns, rachelbaker.
Fixes #31168.



git-svn-id: https://develop.svn.wordpress.org/trunk@33041 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-02 00:21:28 +00:00
Konstantin Obenland
dd28f15179 Prevent link to customizer from wrpping on small screens.
Fixes #32808.


git-svn-id: https://develop.svn.wordpress.org/trunk@33040 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 23:35:57 +00:00
Mark Jaquith
165b3fccaa Restore $noreplytext default value in comment_form_title()
props ocean90
see #22889

git-svn-id: https://develop.svn.wordpress.org/trunk@33039 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 21:50:13 +00:00
Mark Jaquith
bac0e68b48 Say goodbye to ?replytocom=123 links and their URL pollution.
* Comment reply links continue to use JS as before.
* ?replytocom=123 links are deprecated.

props joostdevalk
fixes #22889

git-svn-id: https://develop.svn.wordpress.org/trunk@33038 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 21:41:17 +00:00
Dominik Schilling (ocean90)
d0728bf768 Site icon: Remove option name from $whitelist_options for the general options screen.
The option gets saved in `WP_Site_Icon->set_site_icon()`.

fixes #32859.

git-svn-id: https://develop.svn.wordpress.org/trunk@33037 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 21:40:40 +00:00
Weston Ruter
552879c842 Customizer: Add link to Widgets panel from Menus panel description.
Props celloexpressions.
Fixes #32742.



git-svn-id: https://develop.svn.wordpress.org/trunk@33036 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 19:34:17 +00:00
Sergey Biryukov
2ef2ac5e93 Customizer: Avoid PHP notices after [32806].
props adamsilverstein, westonruter.
fixes #32781.

git-svn-id: https://develop.svn.wordpress.org/trunk@33035 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 19:07:20 +00:00
Mark Jaquith
ef9f9c1a24 Fix small typo from [33019].
see #32429

git-svn-id: https://develop.svn.wordpress.org/trunk@33034 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 18:15:42 +00:00
Mark Jaquith
a288fe93f3 Slow down on calling zxcvbn if it isn't loaded.
see #32589

git-svn-id: https://develop.svn.wordpress.org/trunk@33033 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 18:12:04 +00:00
Konstantin Obenland
3bda728420 Add additional escaping to credits page.
Props Viper007Bond, gtuk for initial patch.
Fixes #21523.



git-svn-id: https://develop.svn.wordpress.org/trunk@33032 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 17:21:55 +00:00
Mark Jaquith
82150c08f2 Add a missing "var". see #32589
git-svn-id: https://develop.svn.wordpress.org/trunk@33031 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 17:15:43 +00:00
Dominik Schilling (ocean90)
d1bedc6769 Customizer: Make reordering menu items via drag and drop easier.
Introduce `wpNavMenu.options.targetTolerance` to define a tolerance when dragging items where no margins between the sortable items exists.

props adamsilverstein.
fixes #32821.

git-svn-id: https://develop.svn.wordpress.org/trunk@33030 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 16:43:02 +00:00
Jeremy Felt
568721eef1 Trim trailing space from string in site delete confirmation
Props yoavf.
Fixes #32853.


git-svn-id: https://develop.svn.wordpress.org/trunk@33029 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 16:30:34 +00:00
Dominik Schilling (ocean90)
54cd46c1d0 Customizer: Fix height calculation of placeholders when dragging menu items.
props adamsilverstein.
fixes #32857.

git-svn-id: https://develop.svn.wordpress.org/trunk@33028 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 16:19:51 +00:00
Dominik Schilling (ocean90)
caab22e5b2 l10n: Update wp_get_installed_translations() to support variants of a language.
* A variant of a language has its own locale, for example the locale of the formal variant of German is `de_DE_formal`.
* Update `remove_accents()` and some CSS rules to support `de_DE_formal`.
* Add tests for `get_bloginfo( 'language' )`.
* API changes will be deployed over the next few days.

see #28303.

git-svn-id: https://develop.svn.wordpress.org/trunk@33027 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 15:42:32 +00:00
Konstantin Obenland
b32cf591c2 Improve the tone of key/salts recommendation message.
Also adds some inline comments to make it easier to understand how it
is determined whether to show the message or not.

Props helen.
Fixes #20779.



git-svn-id: https://develop.svn.wordpress.org/trunk@33026 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 15:38:09 +00:00
Scott Taylor
f8841653ef wp_audio|video_shortcode() doesn't allow you to pass id, the docs shall reflect that.
Props thorbrink.
See #32855.


git-svn-id: https://develop.svn.wordpress.org/trunk@33025 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 15:00:54 +00:00
Konstantin Obenland
238d5a78a6 Close comment quick edit before updating a post.
Fixes a bug where the user gets redirected to the All Posts screen, after
updating a post while quick editing a comment.

Props polevaultweb.
Fixes #29457.



git-svn-id: https://develop.svn.wordpress.org/trunk@33024 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 14:53:48 +00:00
Mark Jaquith
cc23659078 New password change/set UI.
* Generate the password for the user
* More tightly integrate password strength meter
* Warn on weak passwords

see #32589

props MikeHansenMe, adamsilverstein, binarykitten

git-svn-id: https://develop.svn.wordpress.org/trunk@33023 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 14:47:24 +00:00
Boone Gorges
f7b8ff5a2e Don't allow $field param to be passed to get_term_link().
The new parameter creates inconsistencies in the signatures of the various
functions for fetching term links (`get_term_feed_link()`,
`get_edit_term_link()`, etc.).

Reverts [32553].

See #14156.

git-svn-id: https://develop.svn.wordpress.org/trunk@33022 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 12:53:05 +00:00
Boone Gorges
e8a16ec322 Allow 'comment_agent' and 'comment_author_IP' to be set via wp_new_comment().
Props mrutz, wonderboymusic, rachelbaker.
Fixes #14601.

git-svn-id: https://develop.svn.wordpress.org/trunk@33021 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 12:07:28 +00:00
Dion Hulse
1cccb02930 Split upgrade_430() into two so that split_all_shared_terms() runs when upgrade_430_fix_comments() bails early.
See [32814], #30261, [32364], #32165


git-svn-id: https://develop.svn.wordpress.org/trunk@33020 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 07:34:26 +00:00
Dion Hulse
5b58664439 Expire password reset links after 24 hours (by default). This causes existing password reset links to become invalid.
Props markjaquith, voldemortensen, johnbillion, MikeHansenMe, dd32
See #32429


git-svn-id: https://develop.svn.wordpress.org/trunk@33019 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 06:32:07 +00:00
Konstantin Obenland
b04ea26df1 After [32866], change filter name.
While filter names generally don't have to be tied to the function in which they 
are applied, the API for media display generally seems to use the
`wp_get_attachment_*` pattern.

Props DrewAPicture.
Fixes #32363.



git-svn-id: https://develop.svn.wordpress.org/trunk@33018 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 03:46:23 +00:00
Helen Hou-Sandi
cf9b82dd14 Fire the check_admin_referer action on failure as well as success.
This enables things like logging nonce failures in the admin.

props markjaquith.
fixes #32207.


git-svn-id: https://develop.svn.wordpress.org/trunk@33017 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 03:36:58 +00:00
Helen Hou-Sandi
e5c4c584c0 List tables: A better responsive view.
Instead of truncating columns, the data that's already in the markup can now be toggled into view. Only seems appropriate to celebrate four years of contributing by finally doing the first thing I ever mocked up.

Known issues / concerns:
* Custom list tables that don't define a primary column will show nothing at all. These are not extremely common, as `WP_List_Table` isn't really recommended for plugin consumption, but it happens. We need to come up with some kind of fallback.
* Some visual elements, particularly whitespace, could use refining.
* Needs a11y review.
* Touch performance on iOS feels sluggish - is there anything we can do about that?
* Would this be better accordion-style (only one expanded at a time)?
* Is `wp_strip_all_tags()` good enough for column titles that have HTML in them? It's essentially a workaround for the fact that core's comments column does that for the icon, which maybe it shouldn't. Perhaps worth another ticket, as a markup change would be fairly independent.
* Visual hierarchy is not great when expanded (also worthy of another ticket).
* Quick edit now becomes noticeably more annoying to cancel out of, as you have to scroll all the way down and you lose your position from before it was opened. Again, worthy of another ticket.

props Michael Arestad, helen.
see #32395.


git-svn-id: https://develop.svn.wordpress.org/trunk@33016 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 01:30:23 +00:00
Helen Hou-Sandi
6130ea5a0b Bulk/quick edit: Set the correct colspan.
`thead` can contain `td`s now, too.

props afercia.
fixes #31654.


git-svn-id: https://develop.svn.wordpress.org/trunk@33015 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 01:05:29 +00:00
Konstantin Obenland
016ebf43ed Open closed widget areas when dragging onto them.
Allows dropping Widgets into the correct spot of a given sidebar, no matter
whether that sidebar is open or closed. Removes a step from the setup process
for closed sidebars.

Props polevaultweb.
Fixes #13524.



git-svn-id: https://develop.svn.wordpress.org/trunk@33014 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 00:57:03 +00:00
Andrew Ozz
58f914004d TinyMCE: update to 4.2.1. Changelog: https://github.com/tinymce/tinymce-dist/blob/master/changelog.txt.
Fixes #32801.

git-svn-id: https://develop.svn.wordpress.org/trunk@33013 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 00:51:22 +00:00
Konstantin Obenland
f733d8a91d Customizer: Fresh colors for Reorder Done button.
When reordering Widgets or Menus, the red colorcould suggest
it would cancel the changes, rather than save them. The blue
suggests it's clickable and is more in line with the Close
link on open Widgets.

Fixes #32811.



git-svn-id: https://develop.svn.wordpress.org/trunk@33012 602fd350-edb4-49c9-b593-d223f7449a82
2015-07-01 00:18:46 +00:00
Konstantin Obenland
7718755e2e Site Icon: Move admin icon filter to its rightful place.
The action is unrelated to `WP_Site_Icon` itself.

Props kraftbj.
See #16434.



git-svn-id: https://develop.svn.wordpress.org/trunk@33011 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-30 23:25:46 +00:00
Dominik Schilling (ocean90)
454d8682d0 Plugins list table: Sort plugins by Name by default so translated plugin names get correctly sorted.
props swissspidy.
fixes #32735.

git-svn-id: https://develop.svn.wordpress.org/trunk@33010 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-30 22:30:19 +00:00
Andrew Ozz
9d22c89199 Squish that .png a bit more. See [32994].
git-svn-id: https://develop.svn.wordpress.org/trunk@33009 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-30 22:03:53 +00:00
Dominik Schilling (ocean90)
05e0f92632 Remove unnecessary feedback message from WP_Importer::is_user_over_quota().
fixes #32021.

git-svn-id: https://develop.svn.wordpress.org/trunk@33008 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-30 20:31:13 +00:00
Dominik Schilling (ocean90)
86bd177222 Make WP_Locale::rtl_src_admin_notice() translatable.
props jrf.
see #32021.

git-svn-id: https://develop.svn.wordpress.org/trunk@33007 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-30 20:20:40 +00:00
Dominik Schilling (ocean90)
9db82ab3a7 wpdb: Make "WordPress database error:" translatable.
props jrf.
see #32021.

git-svn-id: https://develop.svn.wordpress.org/trunk@33006 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-30 19:59:28 +00:00
Konstantin Obenland
b5c9418d88 Twenty Fifteen: Add missing textdomain.
Props pavelevap.
See #32001.



git-svn-id: https://develop.svn.wordpress.org/trunk@33005 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-30 19:22:10 +00:00
Konstantin Obenland
4a59595cf3 Use correct panel id for menus when linking to the customizer.
Props swissspidy.
Fixes #32808.



git-svn-id: https://develop.svn.wordpress.org/trunk@33004 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-30 16:23:29 +00:00
Konstantin Obenland
3092f5a638 Twenty Fifteen: Use default strings for comments link.
Also adds context for screen readers, like in default strings.

Props pavelevap for initial patch.
Fixes #32001.



git-svn-id: https://develop.svn.wordpress.org/trunk@33003 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-30 15:38:31 +00:00
Helen Hou-Sandi
e681cb8ba7 Image edit: Consistent whitespace for the side boxes.
props tyxla.
fixes #31845.


git-svn-id: https://develop.svn.wordpress.org/trunk@33002 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-30 15:18:29 +00:00
Konstantin Obenland
26c766c0a7 Use existing nomenclature pattern for Site Icon class.
Props kraftbj.
Fixes #32834.



git-svn-id: https://develop.svn.wordpress.org/trunk@33001 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-30 14:36:09 +00:00
Andrew Ozz
41c512a202 Add assertive capability to wp.a11y.speak().
Props afercia. See #32600.

git-svn-id: https://develop.svn.wordpress.org/trunk@33000 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-30 04:34:15 +00:00
azaozz
f27883ce42 Press This:
- Add support for the Text editor.
- Add auto-scrolling when the caret moves out of the viewport while the user is typing (similarly to editor-expand).
- Add auto-resize for the textarea.
See #32706.

git-svn-id: https://develop.svn.wordpress.org/trunk@32999 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-30 03:57:42 +00:00
Konstantin Obenland
6872d9122e Provide alt text for uploaded header images.
The custom header screen will use it rather then the description,
if an alt text is set.

Props francoeurdavid, voldemortensen, valendesigns.
Fixes #27959.



git-svn-id: https://develop.svn.wordpress.org/trunk@32998 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-29 21:31:21 +00:00
Boone Gorges
10d81a3fe5 Introduce 'wp_generate_tag_cloud_data' filter.
This filter allows developers to modify the data that is used to create tag
clouds, without having to manipulate the tag cloud markup directly.

As part of the refactor, this changeset also adds a few unit tests for the way
`wp_generate_tag_cloud()` generates the 'title' attribute, as well as
improvements to output escaping.

Props flixos90, ysalame.
Fixes #24656.

git-svn-id: https://develop.svn.wordpress.org/trunk@32996 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-29 14:15:59 +00:00
Konstantin Obenland
ffa682bee4 Introducing Site Icon, favicon management for WordPress.
This v1 marries Jetpack's Site Icon module with the Media Modal, reusing code
from the Custom Header admin. For now, the core-provided icons will be limited
to a favicon, an iOS app icon, and a Windows tile icon, leaving `.ico` support
and additional icons to plugins to add.

Props obenland, tyxla, flixos90, jancbeck, markjaquith, scruffian.
See #16434.



git-svn-id: https://develop.svn.wordpress.org/trunk@32994 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-29 12:57:35 +00:00
Dion Hulse
2959d58c91 XML-RPC: Only escape what we need to in wp.editPage, this allows for passwords with the special characters "' to work in a request.
Props redsweater for initial Patch.
Fixes #32703


git-svn-id: https://develop.svn.wordpress.org/trunk@32993 602fd350-edb4-49c9-b593-d223f7449a82
2015-06-29 02:06:25 +00:00