Commit Graph

29303 Commits

Author SHA1 Message Date
Andrew Ozz 2707b39c63 PressThis: add inline comments and some cleanup for the images and embeds regex.
Props stephdau. Fixes #31373.

git-svn-id: https://develop.svn.wordpress.org/trunk@31739 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 23:36:23 +00:00
Andrew Ozz 6d9c5ea526 TinyMCE: remove blocking of commands on placeholder images. Breaks some execCommand.
Props iseulde. Fixes #31571.

git-svn-id: https://develop.svn.wordpress.org/trunk@31738 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 23:32:44 +00:00
Andrew Ozz 962ba7c52e PressThis: update _limit_url(), use esc_url_raw(). Fixes checking of urlencoded strings.
See #31373.

git-svn-id: https://develop.svn.wordpress.org/trunk@31737 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 23:22:21 +00:00
Dominik Schilling (ocean90) 62dd55f7d7 Administration: Remove single-use URL parameters and create canonical link based on new URL.
The default removable query args are 'message', 'settings-updated', 'saved', 'update', 'updated','activated', 'activate', 'deactivate', 'locked', 'deleted', 'trashed', 'untrashed', 'enabled', 'disabled', and 'skipped'. 

props morganestes.
fixes #23367.

git-svn-id: https://develop.svn.wordpress.org/trunk@31736 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 23:08:56 +00:00
Andrew Ozz 62b4dd45d7 TinyMCE: remove block_formats setting, this is now the default in TinyMCE 4.1.9.
Props iseulde. Fixes #31585.

git-svn-id: https://develop.svn.wordpress.org/trunk@31735 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 22:56:17 +00:00
Gary Pendergast 1357e7fc2e Add emoji URL support, and Twemoji fallback for displaying slugs in wp-admin, when the browser doesn't natively support emoji.
Props pento, SergeyBiryukov and boonebgorges.

Fixes #31328



git-svn-id: https://develop.svn.wordpress.org/trunk@31734 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 22:54:49 +00:00
Gary Pendergast ae391ec226 Add emoji support, with Twemoji fallback.
Replace exisiting smilies with equivalent emoji, or with shiny new smiley images where no emoji existed.

Props batmoo, joen and mkaz for the original plugin upon which this is based.

Props pento, iseulde, kraftbj and peterwilsoncc for making the internet's dreams come true.

See #31242



git-svn-id: https://develop.svn.wordpress.org/trunk@31733 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 22:48:16 +00:00
Andrew Ozz 1c1e5f377f TinyMCE: initialize the floating toolbars on preinit so we can attach other events on init.
Props iseulde. Fixes #30619.

git-svn-id: https://develop.svn.wordpress.org/trunk@31732 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 22:40:56 +00:00
Andrew Ozz 976e548ef7 TinyMCE wpViews: use the real attribute value instead of the cached jQuery data. Fixes updating of the wpView text strings.
Props iseulde. Fixes #31601.

git-svn-id: https://develop.svn.wordpress.org/trunk@31731 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 22:39:29 +00:00
John Blackbourn 82ac76c0a7 Introduce a new algorithm for displaying a hierarchical list of post objects in the `WP_Posts_List_Table`. This reduces processing time, reduces database queries, and substantially reduces memory use on sites with a high number of Pages.
Props nofearinc, rodrigosprimo, nacin, johnbillion.
Fixes #15459


git-svn-id: https://develop.svn.wordpress.org/trunk@31730 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 20:45:17 +00:00
Dominik Schilling (ocean90) bea0628880 Introduce HTML5 widgets support.
When a theme supports HTML5 widgets via `add_theme_support( 'html5', 'widgets' )`, aside will be used instead of list markup.

props LeoPeo, valendesigns.
fixes #30556.

git-svn-id: https://develop.svn.wordpress.org/trunk@31729 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 20:43:25 +00:00
Helen Hou-Sandi 22f174c106 Fix a unit test after [31721].
props jipmoors.
see #22329.


git-svn-id: https://develop.svn.wordpress.org/trunk@31728 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 20:11:38 +00:00
Andrew Ozz 3b585cd9ca TinyMCE, floating toolbars: return early if no selected element in the editor. See #30619.
git-svn-id: https://develop.svn.wordpress.org/trunk@31727 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 20:07:54 +00:00
Helen Hou-Sandi 8f9bef790e Enable more flexibility for non-URL GUIDs.
props stevenkword.
fixes #31080.


git-svn-id: https://develop.svn.wordpress.org/trunk@31726 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 19:59:03 +00:00
Andrew Ozz 2c9a5e3b8b TinyMCE:
- Abstract the code for creating floating toolbars.
- Introduce `editor.wp` namespace to hold exported methods from our plugins.
- Create the wpView toolbar(s) with the new method. This makes them work the same as the image toolbar: shortcuts, esc key, etc.
Props iseulde. See #30619.

git-svn-id: https://develop.svn.wordpress.org/trunk@31725 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 19:11:02 +00:00
Dominik Schilling (ocean90) 9a350f7f36 JSHint: Remove an unused variable.
see #28206.

git-svn-id: https://develop.svn.wordpress.org/trunk@31724 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 17:39:48 +00:00
Dominik Schilling (ocean90) 416628ccd4 Update hoverIntent to 1.8.1.
props rachelbaker, jesin.
fixes #31505.

git-svn-id: https://develop.svn.wordpress.org/trunk@31723 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 17:14:34 +00:00
Helen Hou-Sandi debd0092cb Gravatars: Remove redundant 1x srcset.
props miqrogroove.
see #22329.


git-svn-id: https://develop.svn.wordpress.org/trunk@31722 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 16:55:22 +00:00
Helen Hou-Sandi 13c503d15a Gravatars: Enable HiDPI versions for browsers that support srcset.
props iseulde.
see #22329.


git-svn-id: https://develop.svn.wordpress.org/trunk@31721 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 16:31:50 +00:00
Andrew Ozz 019a6dee36 Allow swiping of the admin menu on touch devices.
Props iseulde, ninnypants. See #31187.

git-svn-id: https://develop.svn.wordpress.org/trunk@31720 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 16:28:21 +00:00
Helen Hou-Sandi 2d8bfdea8f Plugin details: Ensure banner image doesn't repeat.
props senff, valendesigns.
fixes #30773.


git-svn-id: https://develop.svn.wordpress.org/trunk@31719 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 16:11:15 +00:00
Dominik Schilling (ocean90) 137634176f Editor: Hide TinyMCE help button on mobile.
props MattyRob, iseulde.
fixes #31161.

git-svn-id: https://develop.svn.wordpress.org/trunk@31718 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 16:01:07 +00:00
Dominik Schilling (ocean90) f29a9083fc Merge three similar strings.
props pavelevap.
see #31013.

git-svn-id: https://develop.svn.wordpress.org/trunk@31717 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 15:24:04 +00:00
Dominik Schilling (ocean90) 5b7bd930c6 Update jQuery UI to 1.11.4.
Changelog:
* https://jqueryui.com/changelog/1.11.4/
* https://github.com/jquery/jquery-ui/compare/1.11.3...1.11.4

props scott.gonzalez for arranging this release.
fixes #31597, #30998.

git-svn-id: https://develop.svn.wordpress.org/trunk@31716 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 15:11:52 +00:00
Helen Hou-Sandi 507eab72c2 wpLink: Title case "Link Text", as it's an existing string.
see #28206.


git-svn-id: https://develop.svn.wordpress.org/trunk@31715 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 03:02:34 +00:00
Andrew Ozz df6e920a87 wpLink: change the text label to Link text, always focus the URK field, fix Ctrl/Cmd + K shortcut. See #28206.
git-svn-id: https://develop.svn.wordpress.org/trunk@31714 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 03:00:15 +00:00
Andrew Ozz bfbcfe3e6a wpLink: replace the "Title" field with a "Text" field and populate it with the link text when editing an existing link or with the selected text if any.
Props iseulde. See #28206.

git-svn-id: https://develop.svn.wordpress.org/trunk@31713 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 02:39:02 +00:00
John Blackbourn 62c89ae8b5 RIP3 Revision3
Fixes #31592


git-svn-id: https://develop.svn.wordpress.org/trunk@31712 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 02:06:32 +00:00
John Blackbourn 60eb837e3d Some updates to the oEmbed provider table.
See #28507


git-svn-id: https://develop.svn.wordpress.org/trunk@31711 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 02:02:54 +00:00
John Blackbourn 1d0bac31fb Allow `https` URLs for Instagram embeds, and switch to `https` for its oEmbed API endpoint.
See #28507.


git-svn-id: https://develop.svn.wordpress.org/trunk@31710 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 01:06:00 +00:00
Sergey Biryukov c29e63fdf7 Restore `<title>` tag on Posts and Pages screens after [31696].
fixes #31349.

git-svn-id: https://develop.svn.wordpress.org/trunk@31709 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-11 00:48:56 +00:00
Sergey Biryukov 8c5057119e Revert the part of [31168] that [31701] was trying to fix.
`default-filters.php` is loaded before the `$current_site` global is set, so `is_main_site()` cannot be used there.

fixes #30947.

git-svn-id: https://develop.svn.wordpress.org/trunk@31708 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 23:19:02 +00:00
Dominik Schilling (ocean90) 32a124a884 Customizer: Return the original value when filtering theme mods/options and the current blog has changed.
props westonruter.
fixes #31428.

git-svn-id: https://develop.svn.wordpress.org/trunk@31707 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 23:04:12 +00:00
Dominik Schilling (ocean90) 72fcd6e2ce Customizer: Prevent a race condition when attempting to publish too soon after updating widget form fields with multiple edits.
props westonruter.
fixes #31501.

git-svn-id: https://develop.svn.wordpress.org/trunk@31706 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 22:44:25 +00:00
Dominik Schilling (ocean90) 63502a8a01 Customizer: Fix previewing and applying widgets when previewing another theme.
* Unset `wp_get_sidebars_widgets()`' non-admin cache var `$_wp_sidebars_widgets` in Customize theme preview.
* Add `WP_Customize_Setting::$dirty` so that settings can be initially-dirty when the Customizer loads.
* Mark `old_sidebars_widgets_data` setting initially-dirty.
* Mark all `sidebars_widgets` settings as initially-dirty during theme switch.

props westonruter.
see #31484.

git-svn-id: https://develop.svn.wordpress.org/trunk@31705 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 22:38:30 +00:00
Dominik Schilling (ocean90) 4aeeb0e0f0 Customizer: Add title attributes to iframes.
props afercia.
fixes #31202.

git-svn-id: https://develop.svn.wordpress.org/trunk@31704 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 21:19:14 +00:00
Andrew Ozz 2f41519c46 TinyMCE: Remove old placeholder functions and callbacks.
Props iseulde. Fixes #31576.

git-svn-id: https://develop.svn.wordpress.org/trunk@31703 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 20:27:48 +00:00
Dominik Schilling (ocean90) 39e1f112cf Theme Details: Hide admin toolbar on smaller screens.
props obenland.
fixes #31381.

git-svn-id: https://develop.svn.wordpress.org/trunk@31702 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 20:03:30 +00:00
Sergey Biryukov 8f0910aee4 Don't run update checks for AJAX requests after [31168].
fixes #30947.

git-svn-id: https://develop.svn.wordpress.org/trunk@31701 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 19:29:31 +00:00
Andrew Ozz 9aba4766fc TinyMCE: update to 4.1.9. Fixes #31551.
git-svn-id: https://develop.svn.wordpress.org/trunk@31700 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 19:19:56 +00:00
Boone Gorges 8072fe7db6 Improved customizability for the Submit button in `comment_form()`.
The new 'submit_button' and 'submit_field' parameters for `comment_form()`
allow developers to modify the markup of the submit button and its wrapper.
These params are accompanied by targeted 'comment_form_submit_button' and
'comment_form_submit_field' filters on the concatenated markup.

Props coffee2code, morpheu5, DrewAPicture, boonebgorges.
Fixes #15015.

git-svn-id: https://develop.svn.wordpress.org/trunk@31699 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 19:07:31 +00:00
Dominik Schilling (ocean90) 179a1b7a4c Customizer: Introduce `WP_Customize_Media_Control`.
`WP_Customize_Media_Control` is a new base class for all Customizer media controls. If used directly it supports the ID of an attachment instead of an URL like `WP_Customize_Upload_Control`.

props celloexpressions.
fixes #29215.

git-svn-id: https://develop.svn.wordpress.org/trunk@31698 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 18:01:42 +00:00
Dominik Schilling (ocean90) 557ecd19c6 Customizer: Add loading indicators for the Customizer preview.
props Fab1en, westonruter.
fixes #31196.

git-svn-id: https://develop.svn.wordpress.org/trunk@31697 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 15:55:28 +00:00
Dominik Schilling (ocean90) 3bb3d2f1a5 Screen Options: Improve items per page option label.
Previously the label just said "Posts", "Pages", or "Comments". This was bad in terms of accessibility and internationalization because of missing context.
This change adds a default label "Number of items per page:" to `WP_Screen->render_per_page_options()` and removes all the existing one-word labels.

props afercia.
fixes #31349, #15576.

git-svn-id: https://develop.svn.wordpress.org/trunk@31696 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 15:31:54 +00:00
Dominik Schilling (ocean90) b1bbce3f6e Comments: Fix undefined `$comment_url` variable notice, introduced in [31641].
see #23988.

git-svn-id: https://develop.svn.wordpress.org/trunk@31695 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 14:50:50 +00:00
Sergey Biryukov 5fe8182c7f EXIF/IPTC captions should populate Caption (`post_excerpt`) on upload, not Description (`post_content`).
Make sure the caption is always set if found. Previously, if the caption was less than 80 characters, only the Title field would be set.

props beaulebens, ericlewis, bendoh, SergeyBiryukov.
fixes #22768.

git-svn-id: https://develop.svn.wordpress.org/trunk@31694 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-10 05:06:39 +00:00
Andrew Ozz e0f843cd81 PressThis:
- Filter and select the content on the PHP side. Then pass only the needed data to JS.
- Add the suggested post title and contend directly to the HTML.
- Standardise the data type names.
- Some cleanup/reduction of the code in the bookmarklet.
See #31373.

git-svn-id: https://develop.svn.wordpress.org/trunk@31693 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 21:48:38 +00:00
Helen Hou-Sandi 7c60125e15 Media library: Revert [31582], as it introduces navigation difficulties for many users.
see #30333.


git-svn-id: https://develop.svn.wordpress.org/trunk@31692 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 21:16:47 +00:00
Andrew Ozz 7baa0da965 TinyMCE: when pasting an URL over a selection, insert a link with the URL instead of replacing the selection with it. Props iseulde. Fixes #31571.
git-svn-id: https://develop.svn.wordpress.org/trunk@31691 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 19:59:14 +00:00
Scott Taylor 69c449963e Replace flagrant instances of `.html('')` with `.empty()`.
Props OriginalEXE, SergeyBiryukov.
Fixes #27034.


git-svn-id: https://develop.svn.wordpress.org/trunk@31690 602fd350-edb4-49c9-b593-d223f7449a82
2015-03-09 19:43:49 +00:00