Commit Graph

29760 Commits

Author SHA1 Message Date
Gary Pendergast
dcfb3532c1 Emoji: Tidy up the wp_encode_emoji() regex, and clarify the function comment on Unicode 8 support.
git-svn-id: https://develop.svn.wordpress.org/trunk@32096 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-09 04:36:57 +00:00
Andrew Ozz
01da3522f6 TinyMCE: disable the wp-autoresize plugin in iOS. All iframes there are already expanded to the height of the content document.
Fixes #31937.

git-svn-id: https://develop.svn.wordpress.org/trunk@32095 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-09 00:10:23 +00:00
Lance Willett
a00cfeb4f6 Twenty Fourteen: update editor styles to better account for adaptive images in small screens.
Fixes #31934, props iamtakashi.

git-svn-id: https://develop.svn.wordpress.org/trunk@32094 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 23:28:55 +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
Lance Willett
bc3e4176a0 Twenty Fifteen: update editor styles to better account for adaptive images in small screens.
See #31934, props iamtakashi.

git-svn-id: https://develop.svn.wordpress.org/trunk@32090 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 22:00:14 +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)
379393651b Customizer Theme Switcher: Fix preview URL for subfolder installs.
Use `$_SERVER['HTTP_HOST']` and `$_SERVER['REQUEST_URI']` instead of `site_url()` and `$_SERVER['REQUEST_URI']`.

fixes #31896.

git-svn-id: https://develop.svn.wordpress.org/trunk@32086 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 18:58:08 +00:00
Drew Jaynes
30f14afe10 Post-beta4 bump
git-svn-id: https://develop.svn.wordpress.org/trunk@32085 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 18:48:33 +00:00
Dominik Schilling (ocean90)
2445c10ab2 Theme Compat: Make string translatable and add translator comments. Added in [31941].
props dimadin.
see #28502.
fixes #31921.

git-svn-id: https://develop.svn.wordpress.org/trunk@32084 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 18:14:31 +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
Dominik Schilling (ocean90)
af4f52bf40 Don't print the custom-background class in body_class() when a default color is in use.
`.custom-background` should only be added if a background color or an image divert from their defaults. This behavior exists already in `_custom_background_cb()`.

props slobodanmanic, nitkr, valendesigns, obenland.
see [21054], [21001].
fixes #28687.

git-svn-id: https://develop.svn.wordpress.org/trunk@32081 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 17:28:23 +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
Dominik Schilling (ocean90)
1ad5acb6a1 Merge strings that describe the same command.
props iseulde.
fixes #31776.

git-svn-id: https://develop.svn.wordpress.org/trunk@32078 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 16:58:13 +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
34ebf98f36 Toolbar: Search item consistency for focus state and IE8.
props afercia.
fixes #31322.


git-svn-id: https://develop.svn.wordpress.org/trunk@32074 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-08 16:07:51 +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 Hou-Sandi
c316465e03 Media: Fix focus and selected state for the selected attachments set.
props iseulde.
fixes #31898.


git-svn-id: https://develop.svn.wordpress.org/trunk@32072 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-07 21:28:15 +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
Boone Gorges
bffb632183 Improve handling of incomplete From and Content-Type headers in wp_mail().
When an incomplete header is provided (eg, 'From' with an email address but no
name), ensure that the WP defaults are filled in properly.

Props valendesigns.
Fixes #30266.

git-svn-id: https://develop.svn.wordpress.org/trunk@32070 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-07 20:09:46 +00:00
Helen Hou-Sandi
5606e42df4 Pointers: Make the dismiss icon a consistent size.
fixes #31915.


git-svn-id: https://develop.svn.wordpress.org/trunk@32069 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-07 19:13:45 +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
e2d5237851 Don't override minified libraries included in core
A number of libraries that we include in core come with minified versions that we also include in core. The build process shouldn't override them.

Fixes #31477
Props ocean90, jorbin



git-svn-id: https://develop.svn.wordpress.org/trunk@32066 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-07 04:37:24 +00:00
Aaron Jorbin
5f56394da3 Don't reference underscore.js source map
We don't bundle the source map, so we shouldn't reference it.  This prevents a 404.

Props ocean90
See #31477



git-svn-id: https://develop.svn.wordpress.org/trunk@32065 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-07 04:34:44 +00:00
Jeremy Felt
babd623e15 Avoid an unexpected object error when syncing global terms
Pass the expected single value, rather than object, when recursively calling `global_terms()`.

Props hauvong.

See #31914, Fixes #31149.


git-svn-id: https://develop.svn.wordpress.org/trunk@32064 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-07 04:13:04 +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
Andrew Ozz
9c92833a1c TinyMCE: update the "Keyboard Shortcuts" modal.
Fixes #29558.

git-svn-id: https://develop.svn.wordpress.org/trunk@32060 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-06 23:16:59 +00:00
Andrew Ozz
d9fe0232fb TinyMCE: fix our shortcuts on Mac, use Ctrl + Opt + letter.
Props iseulde. See #29558.

git-svn-id: https://develop.svn.wordpress.org/trunk@32059 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-06 22:50:28 +00:00
Andrew Ozz
2edb7aace9 TinyMCE: update to 4.1.9+. Changes:
- Fixed bug where extra empty paragraphs would get deleted in WebKit/Blink due to recent Quriks fix.
- Fixed bug where the editor wouldn't work properly on IE 12 due to some required browser sniffing.
- Fixed bug where formatting shortcut keys where interfering with Mac OS X screenshot keys.
Fixes #31895.

git-svn-id: https://develop.svn.wordpress.org/trunk@32058 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-06 20:37:38 +00:00
Drew Jaynes
e0fe25d49d Post-beta4 bump.
git-svn-id: https://develop.svn.wordpress.org/trunk@32057 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-06 19:06:25 +00:00
Andrew Ozz
e28afd4f46 TinyMCE wpView: resize sandbox iframes on load. Fixes a problem with resizing after all images are loaded.
Props iseulde, mattheu. Fixes #31480.

git-svn-id: https://develop.svn.wordpress.org/trunk@32056 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-06 18:54:22 +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
Drew Jaynes
868d12ef38 Remove unnecessary inline @see tags from a variety of parameter and return descriptions in wp-includes/wp-db.php.
See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32050 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-05 17:16:20 +00:00
Drew Jaynes
131b3d08d2 Remove unnecessary inline @see tags from the wpdb::process_field_charsets() DocBlock.
See [30345]. See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32049 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-05 17:14:14 +00:00
Drew Jaynes
cabc9a964a Add a missing return description for has_header_image().
See [31224]. See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32048 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-05 17:10:12 +00:00
Drew Jaynes
bec2445b11 Fix a variety of inline documentation syntactical issues in wp-includes/taxonomy.php.
See #31888.


git-svn-id: https://develop.svn.wordpress.org/trunk@32047 602fd350-edb4-49c9-b593-d223f7449a82
2015-04-05 17:07:54 +00:00